## Modelica_LinearSystems2.WorkInProgress.Controller.MPC

Package for Model Predictive Control

### Package Content

Name | Description
--- | ---
MPC_Optimizer_constrained | Discrete State Space block
MPC_Optimizer_unconstrained | Discrete State Space block

## Modelica_LinearSystems2.WorkInProgress.Controller.MPC.MPC_Optimizer_constrained

Discrete State Space block

### Information

### Parameters

Name | Description
--- | ---
ss | Continuous linear system model
sampleTime | Base sample time for discrete blocks [s]
hp | Prediction horizon
hu | Control horizon
nr | dimension of reference vector
delta_u_min[size(dss.B, 2)] |
delta_u_max[size(dss.B, 2)] |
u_min[size(dss.B, 2)] |
u_max[size(dss.B, 2)] |

### Connectors

Name | Description
--- | ---
u_k_opt[size(dss.B, 2)] | Optimized control vector
u_pre[size(dss.B, 2)] | Preciding control vector
x_k[size(dss.A, 1)] | Current state vector
w_pred[hp*nr] | Predicted setpoint

## Modelica_LinearSystems2.WorkInProgress.Controller.MPC.MPC_Optimizer_unconstrained

Discrete State Space block

### Information

### Parameters

Name | Description
--- | ---
ss | Continuous linear system model
sampleTime | Base sample time for discrete blocks [s]
hp | Prediction horizon
hu | Control horizon
nr | dimension of reference vector

### Connectors

Name | Description
--- | ---
u_k_opt[size(dss.B, 2)] | Optimized control vector
u_pre[size(dss.B, 2)] | Preciding control vector
x_k[size(dss.A, 1)] | Current state vector
w_pred[hp*nr] | Predicted setpoint