Computes the gain vector k for the state space system
sc = 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 designAssignPolesSISO extends Modelica.Icons.Function; output Real k[2] "Gain vector"; input Modelica_LinearSystems2.StateSpace sc = Modelica_LinearSystems2.StateSpace(A = [-1, 1; 0, -2], B = [0; 1], C = [1, 0; 0, 1], D = [0; 0]); end designAssignPolesSISO;