Does YALMIP cause a problem with MPC toolbox?

55 views
Skip to first unread message

july

unread,
Mar 20, 2014, 9:27:31 AM3/20/14
to yal...@googlegroups.com
My Simulink model which use MPC block to control the system has stoped working after the install of YALMIP and MPT solver. 
The MPC design  tool can't any more linearize the simulink model!
Does YALMIP cause a problem with MPC toolbox? 
And how can I fix that problem?

Johan Löfberg

unread,
Mar 20, 2014, 9:31:11 AM3/20/14
to yal...@googlegroups.com
Yes, most likely a name-clash on the function linearize (available both in YALMIP and simulink). Most likely you never use the command linearize in YALMIP, so you can delete it (extras/linearize.m)

july

unread,
Mar 20, 2014, 11:29:00 AM3/20/14
to yal...@googlegroups.com
I deleted (linearize.m) from YALMIP folder but it is still not working!

Johan Löfberg

unread,
Mar 20, 2014, 11:56:11 AM3/20/14
to yal...@googlegroups.com
You would have to show more precisely in what sense it doesn't work

july

unread,
Mar 20, 2014, 12:16:07 PM3/20/14
to yal...@googlegroups.com
Thanks M.Johan Lofberg,

Finaly the MPC model works without the problem of linearization.

As YALMIP spread many subfolders also named (yalmip), so I had to delete (linearize.m) in the following the path:
\YALMIP\yalmip\tbxmanager\toolboxes\yalmip\R20140221\all\yalmip\extras

Not only that one in the path:
\YALMIP\yalmip\extras


Johan Löfberg

unread,
Mar 20, 2014, 12:54:07 PM3/20/14
to yal...@googlegroups.com
You should not have multiple versions of YALMIP in your path. That is a recipe for problems (as you just noticed)
Reply all
Reply to author
Forward
0 new messages