MPC FOR LPV SYSTEM

57 views
Skip to first unread message

asemeh k

unread,
Jan 28, 2016, 5:26:35 AM1/28/16
to YALMIP
Hello

I'm design a mpc controller for my model according to  http://users.isy.liu.se/johanl/yalmip/pmwiki.php?n=Examples.LPVMPC  , but I have a error 

Index exceeds matrix dimensions.

Error in lpv_yalmip2 (line 114)
S = unique(([reshape([sol{k+1}{1}.Bi{:}]' ,nx,[])'  reshape([sol{k+1}{1}.Ci{:}]' ,[],nu)]),'rows');

and I don't why in the first step does not to show any region ?
lpv_yalmip2.m

Johan Löfberg

unread,
Jan 28, 2016, 6:26:04 AM1/28/16
to YALMIP
It is a bug in mpt which causes mpt to fail on this model now. It has been reported, and has been discussed before here.

asemeh k

unread,
Jan 28, 2016, 6:28:55 AM1/28/16
to YALMIP
Thank you for your response again , but I want to know ,are there any soulation for this problem?


Best

Johan Löfberg

unread,
Jan 28, 2016, 6:33:39 AM1/28/16
to YALMIP
No, unless you fix the bug in mpt.
Reply all
Reply to author
Forward
0 new messages