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