functiontestPoleAssignment3

Function to assess algorithms for pole assignment

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

Information

Computes the gain vector k for the state space system

ss = StateSpace(A=[-1,1;0,-2],B=[0, 1],C=[1,0; 0, 1],D=[0; 0])
such that for the state feedback
u = -k*y = -k*x
the closed-loop poles are placed at
p = {-3,-4}.

Inputs

TypeNameDefaultDescription
DesignDatadataDesign.DesignData_Chow_Kokotovic()
Types.AssignPolesMethodmethodTests.Types.AssignPolesMethod.KNVmethod for pole assignment
BooleanisSItrue

Outputs

TypeNameDefaultDescription
Real[size(data.B, 2),size(data.A, 1)]KFeedback gain matrix
Complex[size(data.A, 1)]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