How to judge whether C is an equality constraint or inequality one? #1450
Unanswered
styw1234
asked this question in
General discussion
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to judge whether C is an equality constraint or inequality one?
For example:
a=sdpvar(1,5);
C=[];
C=[C, a>=0];
C=[C, a==2];
we can use the following command if we want to see the expression of C
sdisplay(sdpvar(C(1:end,:))
then how to judge whether the expression, e.g., C(1,:), is an equality constraint or inequality one?
Beta Was this translation helpful? Give feedback.
All reactions