Error in Truetime integration with MPC controller in 'highway lane following model'
2 ビュー (過去 30 日間)
古いコメントを表示
I have found this error when I implemeting highway lane following model with truetime . the error states as "Variable-step model 'HighwayLaneFollowingTestBench' references (via Model block 'HighwayLaneFollowingTestBench/Lane Following Controller') fixed-step model 'LaneFollowingController', which contains blocks with continuous and discrete sample times. Referencing a fixed-step model that contains both discrete and continuous components from a variable-step model is not supported."![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/960310/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/960310/image.png)
Any pathway how to solve this?
0 件のコメント
回答 (1 件)
Pratik
2024 年 2 月 5 日
Hi Ashiqur,
As per my understanding, you are implementing highway lane following model with truetime. But there is an error when trying to run the model.
Referencing a fixed-step model with discrete and continuous states from a variable-step model is not supported as stated by the error message. Therefore, this is a limitation of Simulink, and your best workaround option is to set the top-level model to use a fixed-step solver, with the time step equivalent to the smallest step the variable-step solver would have used.
I hope this helps.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Model Predictive Control Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!