functiontestPoleAssignment2
Function to assess algorithms for pole assignment
Extends from Modelica.Icons.Function (Icon for functions).
Information
Computes the feedback gain K for the state space system according to assigned close loop poles
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | dataFile | TestDataDir + "data_Byers6.mat" | |
| Types.AssignPolesMethod | method | Tests.Types.AssignPolesMethod.KNV | method for pole assignment |
| Boolean | isSI | true | |
| String | outputFile | "" | |
| Boolean | deleteExistingOutputfile | true |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[size(B, 2),size(A, 1)] | K | Feedback gain matrix | |
| Complex[:] | calcPoles | ||
| Real | kappa2 | condition number kappa_2(X) = ||X||_2 * ||inv(X)||_2 | |
| Real | kappaF | condition number kappa_F(X) = ||X||_F * ||inv(X)||_F | |
| Real | zeta | condition number by Byers, zeta(X) = (||X||_F)^2 + (||inv(X)||_F)^2 | |
| Real | cInf | condition number vu1=||c||_inf = max(c_j) | |
| Real | nu2 | Euclidean norm of the feedback matrix | |
| Real | nuF | Frobenius norm of the feedback matrix | |
| Real | dlambda | Distance between the assigned and the calculated poles | |
| Real | gap | 0.0 | |
| Real[11] | Jalpha | Combined condition number, JKX=alpha/2*(kappa2X_B) + (1-alpha)/2*normFroK^2 | |
| Complex[:,:] | X | right eigenvectors of the closed loop system |