function Lw=FormLw(Loadi,Mat_G,Init_U,I1measurement) upper=abs(I1measurement).^2.*1.1.*sparse(ones(length(Loadi)*1,1)); Lw=Mat_G+Init_U-upper; end