Display when Yalmip is implemented in Simulink & Change the max. Iteration

80 views
Skip to first unread message

Liting Lu

unread,
Oct 31, 2014, 3:48:35 PM10/31/14
to yal...@googlegroups.com
Hello Johan and everyone,

I'm implementing Yalmip for MPC in Simulink. And it works without any display. I have set verbose as 1, but there is no change. What could I do further?

Furthermore I want to change the default max. iteration. How can I do that?

ps: When the problem is infeasible in some point, can changing the max. iteration help? I have also set relax as 1. With another solver the problem at this point is feasible.

Thank you very much! Have a nice weekend!

Liting Lu

unread,
Oct 31, 2014, 3:50:10 PM10/31/14
to yal...@googlegroups.com
With another solver means with another tool...

Johan Löfberg

unread,
Oct 31, 2014, 3:53:18 PM10/31/14
to yal...@googlegroups.com
Which solver are you using? some solvers don't display anything. try increasing verbose to higher numbers

increasing iterations will not help if you get infeasibility. the problem is most likely simply infeasible. if it had hit the iteration limit, you would get error code 3.

if you set relax to 1, you skip all integrality constraints, and treat all nonlinearities as independent linear terms
Message has been deleted

Liting Lu

unread,
Oct 31, 2014, 4:12:31 PM10/31/14
to yal...@googlegroups.com
I use mosek as my solver. When I set verbose as 2, there is display. Thanks!
Message has been deleted
Message has been deleted

Liting Lu

unread,
Nov 1, 2014, 11:45:11 AM11/1/14
to yal...@googlegroups.com
Dear Johan,

now I find out, the infeasibility can be solved by replacing the upper constraint for x1 in soft constraint, as what I have done with the lower constraint for x2. So I guess, maybe it can be infeasible in the neighbourhoods of all the constraints (I have never tested). But I really don't want to change both of the constraints in soft constraints. What could I do for the rest? Changing another solver should be tried? Thank you for your suggestion in advance.

Best regards,
Liting
Message has been deleted

Liting Lu

unread,
Nov 1, 2014, 2:15:42 PM11/1/14
to yal...@googlegroups.com
I have checked, and the infeasiblity came from my model. Now it was solved.
Reply all
Reply to author
Forward
0 new messages