MpcQp
it.grypho.scala.leonardo.control.MpcQp
final case class MpcQp(h: _MatrixValue, f: Vector[Double], ineq: Option[(_MatrixValue, Vector[Double])], lb: Vector[Double], ub: Vector[Double], m: Int, nc: Int, incremental: Boolean, uPrev: Vector[Double])
The condensed MPC quadratic programme min ½ zᵀHz + fᵀz under A z ≤ b and lb ≤ z ≤ ub, ready for optimize.qpSolve (F_0299), with z the Nc·m moves followed by the slacks.
Value parameters
- f
-
the linear term
- h
-
the Hessian,
2(GᵀQ̄G + R̄)with the slacks'2ρ₂on the diagonal - incremental
-
whether
zholds increments - ineq
-
the inequality rows, or
None - lb
-
lower bounds of
z - m
-
inputs per move
- nc
-
the control horizon
- uPrev
-
u(k−1) - ub
-
upper bounds of
z
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article