thank you
thank you
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
"ben harper" <contr...@gmail.com> wrote in message <hcuhph$rb3$1...@fred.mathworks.com>...
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.