control.balred

control.balred(sys, orders, method='truncate')

Balanced reduced order model of sys of a given order. States are eliminated based on Hankel singular value.

Parameters:

sys: StateSpace

Original system to reduce

orders: integer or array of integer

Desired order of reduced order model (if a vector, returns a vector of systems)

method: string

Method of removing states, either 'truncate' or 'matchdc'.

Returns:

rsys: StateSpace

A reduced order model

Raises:

ValueError

  • if method is not 'truncate'
  • if eigenvalues of sys.A are not all in left half plane (sys must be stable)

ImportError

if slycot routine ab09ad is not found

Examples

>>> rsys = balred(sys, order, method='truncate')