I want to use MPT toolbox in matlab in order to design MPC controller for a nonlinear system. My efforts lead to mpt_nonlinfcn function. I follow the template of mpt_nonlinfcn but it doest work.
I work with Nonlinear Model Predictive control to control nonlynear systems. The MPT is a linear MPC and to control a nonlinear system you would need to linearize it first. Anyhow, I do not like to used these toolboxes because they take the hability to debug the controller's code. Usually I use a simple MatLab Sub-System and creat an m-file with the controller's code. It works much better becouse I can tune it and modify it as I want to.