ModelPredictiveControllerOptions<T>

Options & Configuration · AiDotNet.Models.Options

Configuration for the linear model predictive controller.

Inheritance: ModelOptions → ModelPredictiveControllerOptions<T>

For Beginners

The horizon controls how far ahead the controller looks. The bound vectors describe real actuator and safety limits, and the terminal cost describes what happens after the visible horizon. The defaults provide unconstrained control with a principled automatically computed terminal cost, so most users only need to choose a horizon.

How It Works

Every bound here is optional and defaults to absent, which means unconstrained. An MPC with no constraints at all is a legitimate configuration — and a useful one, because it must reproduce the linear quadratic regulator exactly, which is the sharpest check that the rest of the setup is right.

Reference: J. B. Rawlings, D. Q. Mayne and M. M. Diehl, Model Predictive Control: Theory, Computation, and Design, 2nd ed., 2017; D. Q. Mayne et al., “Constrained model predictive control: Stability and optimality”, Automatica 36(6), 2000, pp. 789-814.

Constructors

Constructor Summary
ModelPredictiveControllerOptions() Creates options with the documented defaults.
ModelPredictiveControllerOptions(ModelPredictiveControllerOptions<T> other) Creates an independent copy of another MPC configuration.

Properties

Property Summary
Matrix<T> TerminalCost { get; set; } Gets or sets the terminal cost matrix, or null to use the infinite-horizon Riccati solution.
Vector<T> InputLowerBounds { get; set; } Gets or sets the lower bound on each control input, or null for unbounded below.
Vector<T> InputUpperBounds { get; set; } Gets or sets the upper bound on each control input, or null for unbounded above.
Vector<T> StateLowerBounds { get; set; } Gets or sets the lower bound on each state over the horizon, or null for unbounded.
Vector<T> StateUpperBounds { get; set; } Gets or sets the upper bound on each state over the horizon, or null for unbounded.
int Horizon { get; set; } Gets or sets how many steps ahead the controller plans.