You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, the overshoot calculate by step_info function is wrong for this transfer function:
import control as ctrl #control 0.8.3
import matplotlib.pyplot as plt #matplotlib 3.2.2
transferFunction = ctrl.tf([0.6287,37.74,774.4,5797,7515],[1.629,45.74,788.4,5809,7515])
time, out = ctrl.step_response(transferFunction)
plt.figure()
plt.grid()
plt.plot(time, out)
Thanks for bringing up the issue @juanodecc. I can confirm, although the plot is smoother with the new timevector calculation in 0.8.4 (#420), that the Overshoot value is still not what you would expect.
yout[0] here is 0.386 instead of 0. Not sure, why this is referenced here. The step_response() of a system without any further specification of initial values should start from default initial value of 0.
@sawyerbfuller, do you think the response vector calculation should be adjusted or just the calculation of Overshoot?
This is a good catch. out[0] is not zero because this is not a strictly proper transfer function: the order of the numerator and denominator are the same.
My take on it is that the overshoot calculation has a bug that neglects this case. It should not depend on the value of yout[0].
Hi, the overshoot calculate by step_info function is wrong for this transfer function:
The text was updated successfully, but these errors were encountered: