Note: This page has been translated by MathWorks. Click here to see

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Convert `nlmpc`

object into one or more `mpc`

objects

In practice, when producing comparable performance, linear MPC is preferred over
nonlinear MPC due to its higher computational efficiency. Using the
`convertToMPC`

function, you can convert a nonlinear MPC controller into
one or more linear MPC controllers at specific operating points. You can then implement
gain-scheduled or adaptive MPC using the linear controllers and compare their performance to
the benchmark nonlinear MPC controller. For an example, see Nonlinear and Gain-Scheduled MPC Control of an Ethylene Oxidation Plant.

To use `convertToMPC`

, your nonlinear controller must not have custom
cost or constraint functions, since these custom functions are not supported for linear MPC
controllers.

`mpcobj = convertToMPC(nlmpcobj,states,inputs)`

`mpcobj = convertToMPC(nlmpcobj,states,inputs,MOIndex)`

`mpcobj = convertToMPC(nlmpcobj,states,inputs,MOIndex,parameters)`