Thank you so much! I modified the code based on your guidance, to change the variable to real
obj2=0;
Ur=sdpvar(31,1);Ui=sdpvar(31,1);
Ir=sdpvar(31,1);Ii=sdpvar(31,1);
Qstat=intvar(30,1); con=[];
and using
FIN=[real(AFIN) -imag(AFIN);imag(AFIN) real(AFIN)];
b4=[real(b0);imag(b0)];
to change the cofficient,
and (Ur(21,1))^2+(Ui(21,1))^2-1==0 to replace abs and also other abs used
the real(Ubus(busnumber,1)*conj(Istat(busnumber,1)))==0 is also transformed
as Ir(busnumber,1)*Ur(busnumber,1)+Ii(busnumber,1)*Ui(busnumber,1)==0
the error model creation failed disappeared but Solver not applicable
So is this because of the non-convexity of Ir(busnumber,1)*Ur(busnumber,1)+Ii(busnumber,1)*Ui(busnumber,1)==0?
Is it possible I could use other solvers to solve this model?
Thank you so much for your help! Really appreciated?