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

TypeNameDefaultDescription
StringdataFileTestDataDir + "data_Byers6.mat"
Types.AssignPolesMethodmethodTests.Types.AssignPolesMethod.KNVmethod for pole assignment
BooleanisSItrue
StringoutputFile""
BooleandeleteExistingOutputfiletrue

Outputs

TypeNameDefaultDescription
Real[size(B, 2),size(A, 1)]KFeedback gain matrix
Complex[:]calcPoles
Realkappa2condition number kappa_2(X) = ||X||_2 * ||inv(X)||_2
RealkappaFcondition number kappa_F(X) = ||X||_F * ||inv(X)||_F
Realzetacondition number by Byers, zeta(X) = (||X||_F)^2 + (||inv(X)||_F)^2
RealcInfcondition number vu1=||c||_inf = max(c_j)
Realnu2Euclidean norm of the feedback matrix
RealnuFFrobenius norm of the feedback matrix
RealdlambdaDistance between the assigned and the calculated poles
Realgap0.0
Real[11]JalphaCombined condition number, JKX=alpha/2*(kappa2X_B) + (1-alpha)/2*normFroK^2
Complex[:,:]Xright eigenvectors of the closed loop system