MpcTerminal
it.grypho.scala.leonardo.control.MpcTerminal
final case class MpcTerminal(weight: _MatrixValue, prediction: MpcPredictionMatrices, target: Option[Vector[Double]] = ...)
The terminal cost of an MPC programme (F_0304, AIACE L_0007): ‖x(k+Np) − x_s‖²_P.
The stage cost already weighs y(k+Np), so the weight that completes the infinite-horizon (LQR) cost-to-go is P − CᵀQC with P from dare / dlqr, not P itself; with it an unconstrained MPC reproduces the LQR law u = −K·x exactly. P alone also stabilises, more conservatively.
Value parameters
- prediction
-
the state prediction at the horizon's end, from mpcTerminalPrediction or mpcAccumulatedTerminalPrediction, in the same form (absolute, incremental or accumulated) as the output prediction
- target
-
x_s,nentries;Nonefor the origin - weight
-
P,n×n
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article