Error using constraint/horzcat (line 11)
One of the constraints evaluates to a FALSE LOGICAL variable. Your model is infeasible
Error in main1 (line 78)
C = [0.4<=soc(25)<=1.0,-0.02<=soc(1)-soc(25)<=0.02,];
Where soc is a 1*24 sdpvar and soc(1)&&soc(25) were initialized to 0.4.
Then I changed it to the following shape:
C = [0.4<=soc(25)<=1.0,-0.02<=soc(1)-soc(25),soc(1)-soc(25)<=0.02,];
The program could be run. However, the number of constraints is 97, which should be 99 if current.
Obviously the constraints -0.02<=soc(1)-soc(25),soc(1)-soc(25)<=0.02 was ignored.
I had thought about everything I could but didn't work. I really need your help.