MpcPositionTarget

it.grypho.scala.leonardo.control.MpcPositionTarget
final case class MpcPositionTarget(weight: Vector[_MatrixValue], target: Vector[Double])

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: m entries held, or Nc·m stacked

weight

S: one m×m for every step, or Nc of them

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product