function Lw=FormLw(Loadi,Mat_G,Init_U) upper=0.1*sparse(ones(length(Loadi)*1,1)); Lw=Mat_G+Init_U-upper; end