You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: propagate_downforce.m
    path of file: ./repos/YALMIP/modules/global
    
    the code of the file until where you have to start completion: function p = propagate_downforce(p)

% Find inconsistency of x1 + x2 + ... <= y
if p.feasible

    
function p = propagate_downforce(p)

% Find inconsistency of x1 + x2 + ... <= y
if p.feasible
    for i = 1:length(p.downForce)
        forcing = p.downForce{i}.forcing;
        if p.ub(forcing)==0
            forced = p.downForce{i}.forced;
            if any(p.lb(forced)==1)
                p.feasible = 0;
                return
            else
                p.ub(forced)=0;
            end