detectable = ZerosAndPoles.Analysis.isDetectable(zp, method)
Function ZerosAndPoles.Analysis.isDetectable checks the Detectability of a zeros-and-poles transfer function. Therefore, the transfer function is converted into a state space representation which is applied to StateSpace.Analysis.isDetectable.
The transfer function is detectable if all unstable poles are observable.
ZerosAndPoles p = Modelica_LinearSystems2.ZerosAndPoles.p(); Modelica_LinearSystems2.ZerosAndPoles zp=(p-1)/(p^2 - 2*p +1); Boolean detectable; algorithm detectable := Modelica_LinearSystems2.ZerosAndPoles.Analysis.isDetectable(zp); // detectable = false
encapsulated function isDetectable import Modelica_LinearSystems2; import Modelica_LinearSystems2.StateSpace; import Modelica_LinearSystems2.ZerosAndPoles; input ZerosAndPoles zp "ZerosAndPoles transfer function of a system"; output Boolean detectable; end isDetectable;