functiondesignLQR

Example for LQR controller design

Extends from Modelica.Icons.Function (Icon for functions).

Information

This example demonstrates the computatrion of a LQR controller by calling function StateSpace.Design.lqr.

Inputs

TypeNameDefaultDescription
StateSpacessiStateSpace(A = [0, 1, 0, 0; 0, 0, 39.2, 0; 0, 0, 0, 1; 0, 0, 49, 0], B = [0; 1; 0; 1], C = [1, 0, 0, 0], D = [0])
BooleansystemOnFilefalseTrue, if state space system is defined on file
StringfileName"NoName"file where matrix [A, B; C, D] is stored
StringmatrixName"ABCD"Name of the state space system matrix

Outputs

TypeNameDefaultDescription
Booleanok