Engee documentation

State-Space

Creates a linear dynamic object defined in the state space.

state space

Description

The State-Space block implements a system whose behaviour is defined as:

,

where is the state vector whose elements are called the states of the system, is the control vector, is the output vector, and is the initial condition of the state vector. The matrices A, B, C and D can be specified as either sparse matrices or dense matrices. The matrix coefficients should have the following characteristics:

  • A is the matrix of the system, to , where is the number of states.

  • B - control matrix, to , where is the number of inputs.

  • C - output matrix, to , where is the number of outputs.

  • D - direct communication matrix to .

discrete state space matrix dims

The block has one input port and one output port. The number of rows in the C or D matrix is the same as the output port width. The number of columns in the board matrix is the same as the width of the input port. If you want to model an autonomous linear system without input data, set the B and D matrices to empty. In this case, the block acts as a block with no input port and one output port and realises the following system:

.

Ports

Input

Port_1 - input signal
scalar | vector

A real input vector, where the width is equal to the number of columns in matrices B and D.

Data types: Float16, Float32, Float64, Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Bool.

Output

Port_1 - output signal
scalar | vector

A real output vector whose width is equal to the number of rows in matrices C and D.

Data types: Float64.

Parameters

A - matrix of the system, A
[1.0;;] (by default) | scalar | vector | matrix | sparse matrix

Specify the matrix A to , where is the number of states.

Usage in program code

Block parameter

A

Values

scalar | vector | matrix | sparse matrix

* By default*

1

B - control matrix, B
[1.0;;] (by default) | scalar | vector | matrix | sparse matrix

Specify the matrix B to , where is the number of states and is the number of inputs.

Usage in program code

Block parameter

B

Values

scalar | vector | matrix | sparse matrix

* By default*

1

C - output matrix, C
[1.0;;] (by default) | scalar | vector | matrix | sparse matrix

Specify the C matrix to , where is the number of outputs and is the number of states.

Usage in program code

Block parameter

C

Values

scalar | vector | matrix | sparse matrix

* By default*

1

D is the direct coupling matrix, D
[1.0;;] (by default) | scalar | vector | matrix | sparse matrix

Specify the matrix D to , where is the number of output data and is the number of input data.

Usage in program code

Block parameter

D

Values

scalar | vector | matrix | sparse matrix

By default

1

Initial conditions - initial state vector
0.0 (by default) | scalar | vector

Initial condition vector.

Usage in program code

Block parameter

X0

Values

scalar | vector

* By default*

0