8000 fix settling min/max for asymptotic systen · python-control/python-control@6e94302 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e94302

Browse files
committed
fix settling min/max for asymptotic systen
1 parent a0a570a commit 6e94302

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

control/timeresp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,8 +912,8 @@ def step_info(sysdata, T=None, T_num=None, yfinal=None,
912912
if settled < len(T):
913913
settling_time = T[settled]
914914

915-
settling_min = (yout[tr_upper_index:]).min()
916-
settling_max = (yout[tr_upper_index:]).max()
915+
settling_min = min((yout[tr_upper_index:]).min(), InfValue)
916+
settling_max = max((yout[tr_upper_index:]).max(), InfValue)
917917

918918
# Overshoot
919919
y_os = (sgnInf * yout).max()

0 commit comments

Comments
 (0)
0