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.

Compute optimal control using explicit MPC

`mv = mpcmoveExplicit(EMPCobj,x,ym,r,v)`

```
[mv,info]
= mpcmoveExplicit(EMPCobj,x,ym,r,v)
```

```
[mv,info]
= mpcmoveExplicit(EMPCobj,x,ym,r,v,MVused)
```

computes the optimal manipulated variable moves at the current time using an explicit model
predictive control law. This result depends on the properties contained in the explicit MPC
controller and the controller states. The result also depends on the measured output
variables, the output references (setpoints), and the measured disturbance inputs.
`mv`

= mpcmoveExplicit(`EMPCobj`

,`x`

,`ym`

,`r`

,`v`

)`mpcmoveExplicit`

updates the controller state, `x`

,
when using default state estimation. Call `mpcmoveExplicit`

repeatedly to
simulate closed-loop model predictive control.

Use the Explicit MPC Controller Simulink block for simulation and code generation.