Can YALMIP solve the following problem?

34 views
Skip to first unread message

jujie zhang

unread,
Apr 17, 2013, 5:21:15 AM4/17/13
to yal...@googlegroups.com
Hi,

I want to solve the following problem (MATLAB script)

A=[1 0;0 1];
P=sdpvar(2,2);
tmp=P*A;
g=sum(tmp(:));

Can YALMIP settle this problem with a matrix to be determined?

Johan Löfberg

unread,
Apr 17, 2013, 5:29:42 AM4/17/13
to yal...@googlegroups.com
Wherein lies the problem? As you written it now, it is a trivial problem with no constraints and a linear objective, so of course it can be "solved" (solved in quotes since there is no solution to the problem since it is unbounded)

jujie zhang

unread,
Apr 17, 2013, 5:46:10 AM4/17/13
to yal...@googlegroups.com
I want to ask: if the solution to  is a matrix instead of a vector, can YALMIP solve the problem on matrix basis?

Johan Löfberg

unread,
Apr 17, 2013, 5:58:36 AM4/17/13
to yal...@googlegroups.com
Of course, otherwise it would not be possible to define a matrix variable
Reply all
Reply to author
Forward
0 new messages