Get nonlinear model from Simulink to Matlab
조회 수: 2 (최근 30일)
이전 댓글 표시
Daniel
2022년 11월 29일
답변: Emmanouil Tzorakoleftherakis
2023년 1월 25일
Is there a way to get my nonlinear Simulink into a Matlab object that I can than use to create a nonlinear MPC? The model is additionally time variant, but it would already help me to just get a nonlinear model in Matlab.
I only found the way of either creating linearized state space models for multiple snapshots that represent the time varying aspect good enough, or alternatively describe my whole model in Matlab directly and create a nlmpc object.
댓글 수: 0
채택된 답변
Emmanouil Tzorakoleftherakis
2023년 1월 25일
Hi Daniel,
Unfortunately Model Predictive Control Toolbox does not currently support using a Simulink model directly as a prediction model in MPC. However, as a workaround, you can train a data-driven model with neural ODEs to capture the dynamics that you need, and use this data-driven model for prediction. This functionality requires System Identification Toolbox and Deep Learning Toolbox.
Here is a video and some code that shows how this works for a simple pendulum system
댓글 수: 0
추가 답변 (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!