Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88a21d2

Browse files
committed
Merge branch 'modelsimp_full_name' ofhttps://github.com/KybernetikJo/python-control into KybernetikJo-modelsimp_full_name
2 parents5120bcc +10fa142 commit88a21d2

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

‎control/modelsimp.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,17 @@
4949
from .statefbkimportgram
5050
from .timerespimportTimeResponseData
5151

52-
__all__= ['hsvd','balred','modred','eigensys_realization','markov','minreal','era']
52+
__all__= ['hankel_singular_values','balanced_reduction','model_reduction',
53+
'minimal_realization','eigensys_realization','markov','hsvd',
54+
'balred','modred','minreal','era']
5355

5456

5557
# Hankel Singular Value Decomposition
5658
#
5759
# The following returns the Hankel singular values, which are singular values
5860
# of the matrix formed by multiplying the controllability and observability
5961
# Gramians
60-
defhsvd(sys):
62+
defhankel_singular_values(sys):
6163
"""Calculate the Hankel singular values.
6264
6365
Parameters
@@ -106,7 +108,7 @@ def hsvd(sys):
106108
returnhsv[::-1]
107109

108110

109-
defmodred(sys,ELIM,method='matchdc'):
111+
defmodel_reduction(sys,ELIM,method='matchdc'):
110112
"""
111113
Model reduction of `sys` by eliminating the states in `ELIM` using a given
112114
method.
@@ -216,7 +218,7 @@ def modred(sys, ELIM, method='matchdc'):
216218
returnrsys
217219

218220

219-
defbalred(sys,orders,method='truncate',alpha=None):
221+
defbalanced_reduction(sys,orders,method='truncate',alpha=None):
220222
"""Balanced reduced order model of sys of a given order.
221223
States are eliminated based on Hankel singular value.
222224
If sys has unstable modes, they are removed, the
@@ -340,7 +342,7 @@ def balred(sys, orders, method='truncate', alpha=None):
340342
returnrsys
341343

342344

343-
defminreal(sys,tol=None,verbose=True):
345+
defminimal_realization(sys,tol=None,verbose=True):
344346
'''
345347
Eliminates uncontrollable or unobservable states in state-space
346348
models or cancelling pole-zero pairs in transfer functions. The
@@ -386,8 +388,7 @@ def _block_hankel(Y, m, n):
386388
defeigensys_realization(arg,r,m=None,n=None,dt=True,transpose=False):
387389
r"""eigensys_realization(YY, r)
388390
389-
Calculate an ERA model of order `r` based on the impulse-response data
390-
`YY`.
391+
Calculate ERA model of order `r` based on impulse-response data `YY`.
391392
392393
This function computes a discrete time system
393394
@@ -686,4 +687,8 @@ def markov(*args, m=None, transpose=False, dt=None, truncate=False):
686687
returnHifnottransposeelsenp.transpose(H)
687688

688689
# Function aliases
690+
hsvd=hankel_singular_values
691+
balred=balanced_reduction
692+
modred=model_reduction
693+
minreal=minimal_realization
689694
era=eigensys_realization

‎doc/control.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ Model simplification tools
133133
..autosummary::
134134
:toctree: generated/
135135

136-
minreal
137-
balred
138-
hsvd
139-
modred
136+
minimal_realization
137+
balanced_reduction
138+
hankel_singular_values
139+
model_reduction
140140
eigensys_realization
141141
markov
142142

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp