%nodes
% 1 2 3 4
Node = [1 1.15 0.85 28;
2 1.15 0.85 28;
3 1.15 0.85 28;
4 1.15 0.85 28;
5 1.15 0.85 28;
6 1.15 0.85 28];
NodeCount = size(Node,1);
z_n = sdpvar(NodeCount,NodeCount);%self-reactance of nodes
CommonConstraints = [ ,...%many other constraints
1./repmat(Node(:,4),1,NodeCount) <= z_n
];
above is a part of my model, when I solve it by cplex 12.6 in matlab 2014a, yalmip reports -4 error with information "Warning: Solver not applicable (cplex)".
then I change it:
for i=1:NodeCount
CommonConstraints = [CommonConstraints,...
z_n2(:,i).*Node(:,4) >= 1,...
];
end
then the model can be solved successfully.
I don't know why. Please help me, johan. Thanks