function deltG=func_deltGstate1(busNum,Loadi,boundedLoadi,I1r,I1i) ind_=find(ismember(Loadi,boundedLoadi)); deltG=[ zeros(busNum*2,length(boundedLoadi)*2); sparse(ind_,1:length(boundedLoadi),1,length(I1r),length(boundedLoadi)),zeros(length(I1i)*1,length(boundedLoadi)); zeros(length(I1r)*1,length(boundedLoadi)),sparse(ind_,1:length(boundedLoadi),1,length(I1i),length(boundedLoadi)); % 1*eye(length(Loadi)*1),zeros(length(I1i)*1);%I1r % zeros(length(Loadi)*1),1*eye(length(Loadi)*1);%I1i ]; end