How to make the right constraint settings #1353
Unanswered
yunjiandaiju
asked this question in
General discussion
Replies: 2 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
7 replies
-
Okay, thank you very much for answering my question |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's my code.
`clc;
clear;
X=[1 0.5 -0.25;0 1 1];
U=[-1 -1];
X_0=[1 0.5;
0 1];
X_1=[0.5 -0.25;
1 1];
T1=inv(X_0)
X_1T1
K1=UT1
P = sdpvar(2,2,'full');
A=X_0P;
B=X_1P;
LMI1=[A B
B' A]
LMI2=[A-A']
Cons = [LMI1>=0,LMI2==0]
objective = [];
sol = optimize(Cons,objective);
P=double(P)
`
My LMI1 should be a matrix inequality constraint, why am I viewing it as an elemental constraint.
Beta Was this translation helpful? Give feedback.
All reactions