detectable = TransferFunction.Analysis.isDetectable(tf, method)
Function TransferFunction.Analysis.isDetectable checks the Detectability of a 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.
TransferFunction s = Modelica_LinearSystems2.TransferFunction.s(); Modelica_LinearSystems2.TransferFunction tf=(s-1)/(s^2 - 2*s +1); Boolean detectable; algorithm detectable := Modelica_LinearSystems2.TransferFunction.Analysis.isDetectable(tf); // detectable = false
encapsulated function isDetectable import Modelica_LinearSystems2; import Modelica_LinearSystems2.StateSpace; import Modelica_LinearSystems2.TransferFunction; input TransferFunction tf "transfer function of a system"; output Boolean detectable; end isDetectable;