MATLAB: The project is about optimal pmu location considering zero injection bus & observability of pmu increament with pmu outages.nw i hv 2 getting into new thing.in this with matlab coding shown below.pls anyone suggest me the coding part of matrix…..

pmu ilp

f=[1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1; 1]
A=[-1 -1 0 0 -1 0 0 0 0 0 0 0 0 0;
-1 -1 -1 -1 -1 0 0 0 0 0 0 0 0 0;
0 -1 -1 -1 0 0 0 0 0 0 0 0 0 0;
0 -1 -1 -1 -1 0 -1 0 -1 0 0 0 0 0;
-1 -1 0 -1 -1 -1 0 0 0 0 0 0 0 0;
0 0 0 0 -1 -1 0 0 0 0 -1 -1 -1 0;
0 0 0 -1 0 0 -1 -1 -1 0 0 0 0 0;
0 0 0 0 0 0 -1 -1 0 0 0 0 0 0;
0 0 0 -1 0 0 -1 0 -1 -1 0 0 0 -1;
0 0 0 0 0 0 0 0 -1 -1 -1 0 0 0;
0 0 0 0 0 -1 0 0 0 -1 -1 0 0 0;
0 0 0 0 0 -1 0 0 0 0 0 -1 -1 0;
0 0 0 0 0 -1 0 0 0 0 0 -1 -1 -1;
0 0 0 0 0 0 0 0 -1 0 0 0 -1 -1]
b=[-1;-1;-1;-1;-1;-1;-1;-1;-1;-1;-1;-1;-1;-1];
lb=zeros(14,1);
ub=ones(14,1);
[x,fval,exitflag,output] = bintprog(f,A,b,[],[],lb,ub)

Best Answer

See https://www.mathworks.com/help/optim/ug/intlinprog.html#btxncn9-6 on how to rewrite the calls to bintprog to more modern functions.
Related Question