Plotting of feasable sets

15 views
Skip to first unread message

JT

unread,
May 24, 2016, 1:27:45 PM5/24/16
to YALMIP
Hi,

I wanted to start using the plot function with simple examples. However, I did not manage to get any example running (except the example from the wiki). 


Example 1:

x = sdpvar(2,1);
F = 0<= x <= 4;
plot(F,[x(1);x(2)])


Example 2:

x = sdpvar(3,1);
F = [x(2)^2 + x(1)^2 + x(3)^2 <= 10];
plot(F,[x(1);x(2)])

I do neither get plots nor error messages.
What am I doing wrong?


Johan Löfberg

unread,
May 24, 2016, 2:06:42 PM5/24/16
to YALMIP
Do you really have a working solver?

optimize(F,[],sdpsettings('debug',1))


JT

unread,
May 25, 2016, 5:19:18 AM5/25/16
to YALMIP
You are right, there are some issues with the solver. When selecting cplex it works.

Thank you!
Reply all
Reply to author
Forward
0 new messages