control.modred

control.modred(sys, ELIM, method='matchdc')

Model reduction of sys by eliminating the states in ELIM using a given method.

Parameters
  • sys (StateSpace) – Original system to reduce

  • ELIM (array) – Vector of states to eliminate

  • method (string) – Method of removing states in ELIM: either 'truncate' or 'matchdc'.

Returns

rsys – A reduced order model

Return type

StateSpace

Raises

ValueError – Raised under the following conditions: * if method is not either 'matchdc' or 'truncate' * if eigenvalues of sys.A are not all in left half plane (sys must be stable)

Examples

>>> rsys = modred(sys, ELIM, method='truncate')