MpcPositionTarget
A cost on the position of the inputs when the moves are increments (F_0329, AIACE L_0013): Σⱼ ‖u(k+j) − u_s,j‖²_Sⱼ over the Nc decided steps, with u(k+j) = u(k−1) + Δu(k) + … + Δu(k+j). In those forms R weighs the moves and nothing else weighs where the actuator sits, so a plant with more inputs than setpoints keeps whatever split it started from; this cost settles it (a pump as low as possible, a valve as open as possible). With L the cumulative-sum matrix it adds 2·LᵀS̄L to the Hessian and 2·LᵀS̄(1⊗u(k−1) − u_s) to the linear term. S need only be positive semidefinite — a zero row leaves that input free — as long as the whole Hessian stays positive definite, which R > 0 ensures.
Value parameters
- target
-
u_s:mentries held, orNc·mstacked - weight
-
S: onem×mfor every step, orNcof them
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any