Skip to content

Commit f74e665

Browse files
committed
balred() now has 'matchdc' option and may handle unstable systems and will accept a list of 'orders'. gram() now does Cholesky factored gramians if desired. Requires slycot routines AB09MD, AB09ND, SB03OD.
1 parent b7dc914 commit f74e665

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

control/modelsimp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
from .statesp import StateSpace
5151
from .statefbk import gram
5252

53-
__all__ = ['hsvd', 'balred', 'modred', 'era', 'markov', 'minreal',]
53+
__all__ = ['hsvd', 'balred', 'modred', 'era', 'markov', 'minreal']
5454

5555
# Hankel Singular Value Decomposition
5656
# The following returns the Hankel singular values, which are singular values

control/statefbk.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,7 @@ def gram(sys,type):
347347
#Check for ss system object
348348
if not isinstance(sys,statesp.StateSpace):
349349
raise ValueError("System must be StateSpace!")
350-
gramtypes = ['c', 'o', 'cf', 'of']
351-
if type not in gramtypes:
350+
if type not in ['c', 'o', 'cf', 'of']:
352351
raise ValueError("That type is not supported!")
353352

354353
#TODO: Check for continous or discrete, only continuous supported right now

0 commit comments

Comments
 (0)