Products & Services Solutions Academia Support User Community Company

QP Matrices

This section describes the matrices associated with the model predictive control optimization problem described in Optimization Problem.

Prediction

Assume for simplicity that the disturbance model in Equation 2-1 and Equation 2-2 is a unit gain (i.e., d(k)=nd(k) is a white Gaussian noise). For simplicity, denote by

Then, the prediction model given by

Consider for simplicity the prediction of the future trajectories of the model performed at time k=0. We set nd(i)=0 for all prediction instants i, and obtain

which gives

where

Optimization Variables

Let m be the number of free control moves and denote by z= [z0; ...; zm-1]. Then,

     (2-7)  

where JM depends on the choice of blocking moves. Together with the slack variable epsilon, vectors z0, ..., zm-1 constitute the free optimization variables of the optimization problem (in case of systems with a single manipulated variables, z0, ..., zm-1 are scalars).

Figure 2-3: Blocking Moves: Inputs and Input Iincrements for moves=[2 3 2]

Consider for instance the blocking moves depicted in Figure 2-3, which corresponds to the choice moves=[2 3 2], or, equivalently, u(0)=u(1),  u(2)=u(3)=u(4),  u(5)=u(6), capital delta u(0)=z0, capital delta u(2)=z1, capital delta u(5)=z2, capital delta u(1)=capital delta u(3)=capital delta u(4)=capital delta u(6)=0.

Then, the corresponding matrix JM is

Cost Function

Standard Form

The function to be optimized is

where

     (2-8)  

Finally, after substituting u(k), capital deltau(k), y(k), J(z) can be rewritten as

     (2-9)  

Alternative Cost Function

If the alternative cost function shown in Equation 2-5 is being used, Equation 2-8 is replaced by the following:

     (2-10)  

where the block-diagonal matrices repeat p times, i.e., once for each step in the prediction horizon.

You also have the option to use a combination of the standard and alternative forms. See Weights for more details.

Constraints

Let us now consider the limits on inputs, input increments, and outputs along with the constraint epsilon 0.

Similarly to what was done for the cost function, we can substitute u(k), capital deltau(k), y(k), and obtain

     (2-11)  

where matrices Mz,Mepsilon,Mlim,Mv,Mu,Mx are obtained from the upper and lower bounds and ECR values.

Function mpc_buildmat constructs the QP problem matrices.


 Provide feedback about this page 

Previous page State Estimation Model Predictive Control Computation Next page

Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS