We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The create_statefbk_iosystem sets the name of the closed loop system that it creates to one of the system inputs. For example:
create_statefbk_iosystem
import numpy as np import control as ct sys = ct.ss([[0, 10], [-1, 0]], [[0], [1]], np.eye(2), 0, name='sys') K, _, _ = ct.lqr(sys, np.eye(sys.nstates), np.eye(sys.ninputs)) ctrl, clsys = ct.create_statefbk_iosystem(sys, K) print(clsys)
gives
<LinearICSystem>: u[0] Inputs (3): ['xd[0]', 'xd[1]', 'ud[0]'] Outputs (3): ['y[0]', 'y[1]', 'u[0]'] States (2): ['sys_x[0]', 'sys_x[1]']
which has the name of the system as u[0] instead of something like sys[3].
u[0]
sys[3]
The text was updated successfully, but these errors were encountered:
Problem is in the iosys.py 2871, where 'name' variable gets clobbered.
Submitted PR.
Sorry, something went wrong.
Close?
Closed by #857
murrayrm
Successfully merging a pull request may close this issue.
The
create_statefbk_iosystem
sets the name of the closed loop system that it creates to one of the system inputs. For example:gives
which has the name of the system as
u[0]
instead of something likesys[3]
.The text was updated successfully, but these errors were encountered: