distributionnetwork-power2c.../FormLw.m

5 lines
107 B
Matlab

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