Skip to content

step_info problem with non stationary systems response #564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
juanodecc opened this issue Mar 12, 2021 · 0 comments · Fixed by #567
Closed

step_info problem with non stationary systems response #564

juanodecc opened this issue Mar 12, 2021 · 0 comments · Fixed by #567

Comments

@juanodecc
Copy link
Contributor

Systems with non stationary response to step input, step_info could give wrong information:

import numpy as np              # NumPy library
import matplotlib.pyplot as plt
import control as ctrl  # Name: control Version: 0.8.4


sys2 = ctrl.tf(1,[1,1,0]) 
time,yout=ctrl.step_response(sys2)
plt.figure()
plt.plot(time,yout)
info=ctrl.step_info(sys2)

{'RiseTime': 19.0,
'SettlingTime': 24.5,
'SettlingMin': 21.500000000169212,
'SettlingMax': 23.750000000017877,
'Overshoot': 0.0,
'Undershoot': 0.0,
'Peak': 23.750000000017877,
'PeakTime': 24.75,
'SteadyStateValue': 23.750000000017877}

Figure_16

The step_info expected result for this system could be:

tupla with fields:

RiseTime : nan
RiseTimeInit : nan
SettlingTime : nan
SettlingMin : nan
SettlingMax : nan
Overshoot : nan
Undershoot : nan
Peak : inf
PeakTime : inf
SteadyStateValue : nan

juanodecc added a commit to juanodecc/python-control that referenced this issue Mar 12, 2021
@murrayrm murrayrm linked a pull request Mar 13, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant