how i can find value of uncertain variable

28 views
Skip to first unread message

mohmmed ahmed

unread,
Apr 23, 2014, 4:04:31 PM4/23/14
to yal...@googlegroups.com

how i can find value of uncertain variable 
at the end of program
for example this is simple code to get value of P1
with uncertain t1,t2
my Question now  i can get the value of t1 and t2 to calculate A
is it possiblle??
clear
A1=[1.3 0.9; 1 0];
A2=[1.3 1.1; 1 0];;
   sdpvar  t1 t2
A = A1*t1 + A2*t2;
P1  = sdpvar(2,2,'symmetric');
F = lmi(P1>0) ;
F =F + lmi([A'*P1+P1*A ]<0) ;
F = [F, -1<=[t1 t2] <=1, t1+t2==1,uncertain([t1  t2])];
solvesdp(F)

Johan Löfberg

unread,
Apr 24, 2014, 1:39:39 AM4/24/14
to yal...@googlegroups.com
You cannot.

BTW, the command lmi is very very obsolete. Don't use it.
F = P1 >=0;
F = [F, [A'*P1+P1*A ]<=0];
Reply all
Reply to author
Forward
0 new messages