## Linear State Space

## Apps.LinearStateSpace History

Hide minor edits - Show changes to markup

File *.mpc.txt

File mpc.txt

File *.mpc.a.txt

File mpc.a.txt

File *.mpc.b.txt

File mpc.b.txt

File *.mpc.c.txt

File mpc.c.txt

File *.mpc.d.txt

File mpc.d.txt

Model control

Objects mpc = lti End Objects

End Model

Model control Objects mpc = lti End Objects End Model

File *.mpc.txt

sparse, continuous ! dense/sparse, continuous/discrete 2 ! m=number of inputs 3 ! n=number of states 3 ! p=number of outputs

End File

File *.mpc.txt sparse, continuous ! dense/sparse, continuous/discrete 2 ! m=number of inputs 3 ! n=number of states 3 ! p=number of outputs End File

File *.mpc.a.txt

1 1 0.9 2 2 0.1 3 3 0.5

End File

File *.mpc.a.txt 1 1 0.9 2 2 0.1 3 3 0.5 End File

File *.mpc.b.txt

1 1 1.0 2 2 1.0 3 1 0.5 3 2 0.5

End File

File *.mpc.b.txt 1 1 1.0 2 2 1.0 3 1 0.5 3 2 0.5 End File

File *.mpc.c.txt

1 1 0.5 2 2 1.0 3 3 2.0

End File

File *.mpc.c.txt 1 1 0.5 2 2 1.0 3 3 2.0 End File

File *.mpc.d.txt

1 1 0.2

End File

File *.mpc.d.txt 1 1 0.2 End File

### Example Model

# new linear time-invariant object

## Example Model

! new linear time-invariant object

# Model information

# continuous form

# dx/dt = A * x + B * u

# y = C * x + D * u

# dimensions

# (nx1) = (nxn)*(nx1) + (nxm)*(mx1)

# (px1) = (pxn)*(nx1) + (pxm)*(mx1)

# discrete form

# x[k+1] = A * x[k] + B * u[k]

# y[k] = C * x[k] + D * u[k]

! Model information ! continuous form ! dx/dt = A * x + B * u ! y = C * x + D * u ! ! dimensions ! (nx1) = (nxn)*(nx1) + (nxm)*(mx1) ! (px1) = (pxn)*(nx1) + (pxm)*(mx1) ! ! discrete form ! x[k+1] = A * x[k] + B * u[k] ! y[k] = C * x[k] + D * u[k]

# A matrix (row, column, value)

! A matrix (row, column, value)

# B matrix (row, column, value)

! B matrix (row, column, value)

# C matrix (row, column, value)

! C matrix (row, column, value)

# D matrix (row, column, value)

! D matrix (row, column, value)

### Example Model

# new linear time-invariant object

Model control

Objects mpc = lti End Objects

End Model

# Model information

# continuous form

# dx/dt = A * x + B * u

# y = C * x + D * u

# dimensions

# (nx1) = (nxn)*(nx1) + (nxm)*(mx1)

# (px1) = (pxn)*(nx1) + (pxm)*(mx1)

# discrete form

# x[k+1] = A * x[k] + B * u[k]

# y[k] = C * x[k] + D * u[k]

File *.mpc.txt

sparse, continuous ! dense/sparse, continuous/discrete 2 ! m=number of inputs 3 ! n=number of states 3 ! p=number of outputs

End File

# A matrix (row, column, value)

File *.mpc.a.txt

1 1 0.9 2 2 0.1 3 3 0.5

End File

# B matrix (row, column, value)

File *.mpc.b.txt

1 1 1.0 2 2 1.0 3 1 0.5 3 2 0.5

End File

# C matrix (row, column, value)

File *.mpc.c.txt

1 1 0.5 2 2 1.0 3 3 2.0

End File

# D matrix (row, column, value)

File *.mpc.d.txt

1 1 0.2

End File

These models are typically in the finite impulse response form or linear state space form. Either model form can be converted to an APMonitor for a linear MPC upgrade. Once the linear MPC model is converted, nonlinear elements can be added to avoid multiple model switching, gain scheduling, or other ad hoc measures commonly employed because of linear MPC restrictions.

These models are typically in the finite impulse response form or linear state space form. Either model form can be converted to an APMonitor for a linear MPC upgrade. Once in APMonitor form, nonlinear elements can be added to avoid multiple model switching, gain scheduling, or other ad hoc measures commonly employed because of linear MPC restrictions.

These models are typically in the finite impulse response form or linear state space form. Either model form can be converted to an APMonitor for a linear MPC upgrade. Once the linear MPC model is converted, nonlinear elements can be added to avoid multiple model switching, gain scheduling, or other ad hoc measures commonly employed because of linear MPC shortcomings.

These models are typically in the finite impulse response form or linear state space form. Either model form can be converted to an APMonitor for a linear MPC upgrade. Once the linear MPC model is converted, nonlinear elements can be added to avoid multiple model switching, gain scheduling, or other ad hoc measures commonly employed because of linear MPC restrictions.

Linear model predictive controllers are based on models in the finite impulse response form or linear state space form. Either model form can be converted to a form that APMonitor uses for estimation and control.

Model Predictive Control, or MPC, is an advanced method of process control that has been in use in the process industries such as chemical plants and oil refineries since the 1980s. Model predictive controllers rely on dynamic models of the process, most often linear empirical models obtained by system identification.

These models are typically in the finite impulse response form or linear state space form. Either model form can be converted to an APMonitor for a linear MPC upgrade. Once the linear MPC model is converted, nonlinear elements can be added to avoid multiple model switching, gain scheduling, or other ad hoc measures commonly employed because of linear MPC shortcomings.

## Linear State Space Model

## Linear Model Predictive Control

Linear model predictive controllers are based on models in the finite impulse response form or linear state space form. Either model form can be converted to a form that APMonitor uses for estimation and control.