functionanalysis2
Example to check controllability of a state space system
Information
This example shows the usage of function Modelica_LinearSystems2.StateSpace.Analysis.isControllable which is to check whether a system is controllable or not.Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| StateSpace | ssi | Modelica_LinearSystems2.StateSpace(A = [-6.0, 0, 2, -13.0; -9.0, -12.0, -3.25, 19.25; 0, 0, 1, 34.0; 0, 0, -34.0, -31.0]/6, B = [1; 1; 1; 1], C = identity(4), D = zeros(4, 1), xNames = {"x1", "x2", "x3", "x4"}, uNames = {"u"}, yNames = {"y1", "y2", "y3", "y4"}) | |
| Modelica_LinearSystems2.Internal.AnalyseOptions | analyseOptions | Modelica_LinearSystems2.Internal.AnalyseOptions(plotEigenValues = true, plotInvariantZeros = true, plotStepResponse = true, plotFrequencyResponse = false, printEigenValues = true, printEigenValueProperties = true, printInvariantZeros = true, printControllability = false, printObservability = false, headingEigenValues = "Eigenvalues", headingInvariantzeros = "Invariant zeros", headingStepResponse = "Step response", headingFrequencyResponse = "Frequency response") | |
| Boolean | systemOnFile | false | True, if state space system is defined on file |
| String | fileName | "NoName" | file where matrix [A, B; C, D] is stored |
| String | matrixName | "ABCD" | Name of the state space system matrix |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | ok |