MPC toolbox - Model parameter must be a string
조회 수: 4 (최근 30일)
이전 댓글 표시
I´m trying to tune a MPC controller.
So, I've created the MPCobject and run the simulation. Until here, no problem. The simulation run perfectly.
When I've created a function to optmize my parameteres, with the 'sim' function inside, I've got the "'model' parameter must be a string" problem inside the function created.
Reading the forum, I discovered that the problem is related to matlab tries to call the simulink sim function. I've tried to use the pathtool command to put MPCtool at the top, but no result.
How can I fix it? It´s freaking my mind!!
Thanks and sorry for the poor english.
댓글 수: 0
답변 (1개)
Kaustubha Govind
2011년 3월 13일
What is the exact SIM command that you are using? The error points to the 'model' parameter, which is the first argument to the command. Check the value that you are passing to see if it is valid.
댓글 수: 3
Kaustubha Govind
2011년 3월 14일
When the debugger stops in the breakpoint in your optimization function, try running "which -all sim" at the MATLAB command prompt. Does this list the MPC version?
참고 항목
카테고리
Help Center 및 File Exchange에서 Refinement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!