- Notifications
You must be signed in to change notification settings - Fork441
Description
Thecreate_statefbk_iosystem
sets the name of the closed loop system that it creates to one of the system inputs. For example:
import numpy as npimport control as ctsys = 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 asu[0]
instead of something likesys[3]
.
Metadata
Metadata
Assignees
Labels
No labels