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}.
function designAssignPolesMIMO extends Modelica.Icons.Function; output Real K[:, :] "Gain vector"; output Real S[:, :]; input Modelica_LinearSystems2.StateSpace ss = Modelica_LinearSystems2.StateSpace(A = [-1, 1; 0, -2], B = [0; 1], C = [1, 0; 0, 1], D = [0; 0]); input Complex p[:] = {Complex(-3, 0), Complex(-4, 0)}; end designAssignPolesMIMO;