|
Dear Arkadiy,
I made the steps you have proposed.
But matlab gived the error "cannot trim" while trying to linearize my simulink system.
my nonlinear system is open loop unstable. but when controller is put in it becomes stable.
can the reason of the trim error could be the unstableness of my ssytem?
thank you.
> Hi Ben,
>
> If you add MPC Controller block from the Simulink library of Model Predictive Control Toolbox to your Simulink model, and wire the inputs and outputs to the rest of the model, you can just open the block, and press "Design" button. This will linearize your Simulink model and open the GUI for designing the MPC controller. Once you are done with the design, simply run your Simulink model to test controller against your nonlinear model.
>
> This is shown in detail here: http://www.mathworks.com/products/demos/mpc/MPC_Intro/index.html
>
> HTH.
> Arkadiy
|