State-Space Prediction Formulation for Constrained MPC

Model Predictive Control solves a finite-horizon optimal control problem at every sampling instant. Given a discrete-time linear time-invariant (LTI) system:

x(k+1) = A • x(k) + B • u(k)
y(k) = C • x(k)

Over a prediction horizon Np and control horizon Nc, the state vector evolution is cast in dense matrix form as:

X = Φ • x(k) + Γ • U

where Φ contains the autonomous transition powers [A; A2; ...; ANp] and Γ is the lower block-triangular convolution matrix.

Quadratic Objective Function Mapping

The quadratic performance index penalizes state tracking deviations with weight matrix Q ≥ 0 and control effort increments with matrix R > 0:

J = (X - Rref)T • Qbar • (X - Rref) + UT • Rbar • U

Expanding and discarding terms independent of U translates the problem directly into the standard quadratic programming (QP) form required by MATLAB's quadprog:

min (1/2) • UT • H • U + fT • U   subject to   Aineq • U ≤ bineq

where the Hessian matrix is H = 2 • (ΓT • Qbar • Γ + Rbar) and gradient vector is f = 2 • ΓT • Qbar • (Φ • x(k) - Rref).

Engineering Advantages Over Built-in Toolboxes

  • Zero Black-Box Licensing Overhead: Executes natively using Optimization Toolbox without requiring specialized embedded control licenses.
  • Explicit Constraint Inspection: Actuator saturation limits (-umax ≤ u ≤ umax) and rate limits (Δu) are formulated as explicit linear inequalities.
  • Direct C-Code Generation Ready: The matrix structures map directly to real-time embedded solvers (such as OSQP or qpOASES).
Doctoral Engineering Review Active Coverage: UK, USA, Australia, Canada

Need Hands-on Engineering Consultation for This Model?

Whether you are resolving non-converging numerical solvers, parameter estimation for thesis defense, or preparing production Simscape models for industry verification, our doctoral team provides direct code tuning with screen-recorded video proof of execution.

Submit Model Specifications WhatsApp PhD Dispatch (15m SLA)
Zero-Log Privacy Protocol USD / GBP / AUD / CAD Quotes EST, CST, PST, GMT/BST, AEST Timezone Alignment