-
Notifications
You must be signed in to change notification settings - Fork 446
Small fixes based on Caltech CDS 112 course #849
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
Small fixes based on Caltech CDS 112 course #849
Conversation
| type : 'linear' or 'nonlinear', optional | ||
| controller_type : 'linear' or 'nonlinear', optional |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an API change. The milestone should be 0.10.0 (or 1.0.0) then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put in code to handle legacy calls, so type will still work. See line 732.
10bcd65 to
ed03726
Compare
ed03726 to
91c0260
Compare
|
Rebased onto current main, in order to resolve conflicts due to #857 |
67ea154 to
8e40c90
Compare
49756c4 to
574cf69
Compare
This PR contains some small fixes that I discovered while teaching CDS 112 at Caltech in Winter 2023:
create_statefbk_iosystemthat didn't proper handle 1D gain schedules.flatsys.point_to_pointgenerates an error if you specify a cost or constraint with less than 3 time points.LinearIOSystemreturns aLinearIOSystem(before it returned aStateSpacesystem).add_unusedkeyword parameter tointerconnectthat allows unused inputs or outputs to be added as inputs or outputs of the interconnected system (useful for doing a "partial" interconnection).create_mpc_iosystemnow allows system and signal names to be specified via appropriate keywords.typekeyword forcreate_statefbk_iosystemtocontroller_type(linear or nonlinear). Usingtypegenerates a deprecation warning.control_indicesandstate_indicestocreate_statefbk_iosystemto allow partial interconnection (eg, for inner/outer loop construction).