error report

55 views
Skip to first unread message

Liting Lu

unread,
Oct 13, 2014, 2:25:17 PM10/13/14
to yal...@googlegroups.com
Hello,

Firstly I really thank you to develop such a good optimization toolbox.

I'm a beginner with YALMIP, and I have installed 'mosek' as my solver with MATLAB.

Now I meet a problem. Everytime when there is any error, the error report has no information about the line in the command. It's very difficult for me to debug the programming. I'm sure that I have set the 'debug' as 1, but nothing changs.

So I would like as you guys, what problem it can be. Thank you very much!

Cheers,
Liting 

Johan Löfberg

unread,
Oct 13, 2014, 2:26:53 PM10/13/14
to yal...@googlegroups.com
Don't understand. Give an example

Liting Lu

unread,
Oct 13, 2014, 2:27:59 PM10/13/14
to yal...@googlegroups.com
Sorry, I forgot to say, that actually I use YALMIP in Simulink.

Liting Lu

unread,
Oct 13, 2014, 3:49:35 PM10/13/14
to yal...@googlegroups.com
Thanks for so quick answering! 

The error report from MATLAB includes no information about, in which line the error is. 

I'm sorry that I can only show the example of errors when I'm in the lab tomorrow. 

Wish you have a nice day!

Liting Lu

unread,
Oct 14, 2014, 12:10:25 PM10/14/14
to yal...@googlegroups.com
c=0;
constraints
= [constraints, x{k+1}(2) == x{k}(2) - c{k}*u{k}(2)];
For example I define c as a constant, but in the command below it is wrongly used as a cell arry.

The error report in MATLAB is:

Simulation gestoppt
Error using manoever_init (line 829)
Error due to multiple causes.

Error in template_open_loop_manuell (line 318)
manoever_init;%(driver, params, config, road);

Error in run (line 64)
evalin('caller', [script ';']);
Caused by:
    Error using manoever_init (line 829)
    Cell contents reference from a non-cell array object.
    Error using manoever_init (line 829)
    Error in 'meCarSim/Regelsysteme/regler_library/MPC
    Hybrid_YALMIP/Subsystem/MPC_YALMIP/Signal Conditioning and MPC/MPC/MPC
    Controller/YALMIP' while evaluating expression.

line 829 in 'manoever_init' is the 'sim('Mymodel')', which is to run the model in Simulink.
Sometimes I need several minutes or even more to find out the error in the MPCController script. Before I used MATLAB Function (Embedded Matlab) frequently, with which the error report always includes the information of the number of the line. So I'm not sure now whether it is because of characteristics of the Interpreted MATLAB fcn or the solver.

Another stupid question: When my system is time variant (The system and the constraints are both time variant.), so I must use the MPT toolbox?

Thanks a lot!
 

Johan Löfberg

unread,
Oct 14, 2014, 12:17:19 PM10/14/14
to yal...@googlegroups.com
I guess MATLAB cannot keep track of that info due to some compilation or some stuff like that when used in simulink. Not really YALMIP related and not anything I can do.
Reply all
Reply to author
Forward
0 new messages