function Lw=FormLwstate1(Loadi,Mat_G,Init_U,I1measurement) upper=0.2.*sparse(ones(length(Loadi)*2,1)); Lw=Mat_G+Init_U-upper; end