필터 지우기
필터 지우기

How to make a dynamic state-space model for MPC controller?

조회 수: 2 (최근 30일)
Mustafa Rawash
Mustafa Rawash 2018년 8월 17일
댓글: Haritha 2018년 8월 19일
Hello everyone, I'm building a stability controller for a vehicle using Model Predictive control (MPC). I'm using Simulink to simulate the vehicle and the controller, and using a the "MPC controller" block from the Simulink library. This block requires an MPC controller object that includes the state-space prediction model. I create this object before the simulation by running the attached m.file. My problem is as follows: my prediction model must have a state-space matrices with variable elements, for example the "A" matrix includes elements that are provided to the controller during the simulation because they are dynamic THEY CAN'T BE CONSTANT. I tried using "realp" as shown in the m.file to create generalized matrices and generalized state-space models, and placed "to workspace" blocks in the simulink model that captures the value of these elements, but for some reason the values of these elements do not update during the simulation. How can I build MPC object with dynamic state-space model for the "MPC controller" block?
  댓글 수: 3
Mustafa Rawash
Mustafa Rawash 2018년 8월 18일
do you mean I should customize the QP solver for the already used "MPC controller" block, or should I create my own MPC controller algorithm with a custom QP solver?
Haritha
Haritha 2018년 8월 19일
In mpc controller block only we can create our objective function by using custom option.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Controller Creation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by