Title: new dynamics() and output() methods in StateSpace by sawyerbfuller · Pull Request #546 · python-control/python-control · GitHub
Open Graph Title: new dynamics() and output() methods in StateSpace by sawyerbfuller · Pull Request #546 · python-control/python-control
X Title: new dynamics() and output() methods in StateSpace by sawyerbfuller · Pull Request #546 · python-control/python-control
Description: Creates new dynamics(x, u) and output(x, u) methods for StateSpace systems. These correspond to the right hand side of the dynamcs and output equations for such systems (i.e. calculates xdot in xdot = Ax+Bu and y in y=Cx+Bu). This can be used for simulating or numerically integrating such systems in your own code, as suggested in #83. Renames equivalent private methods _rhs and _out functions in iosys to same name. The latter have a slightly different call signature: the first argument is the time t rather than the state x. Since they were private methods, we can change them; it might make sense to rearrange arguments so that t is a keyword argument that appears at the end with a default value (e.g. 0) so that call signatures then are the same across system types. Follows the discussion in #434. I considered a few alternatives for the name dynamics: eval, evaluate, update, evolve, evolve_state, calculate, and compute. I settled on dynamics because it works for both cont-time and discrete-time systems, suggests that it is evaluating how they change in time, and doesn't suggest any mutation is happening to the system, unlike update. Happy to consider alternatives.
Open Graph Description: Creates new dynamics(x, u) and output(x, u) methods for StateSpace systems. These correspond to the right hand side of the dynamcs and output equations for such systems (i.e. calculates xdot in xdo...
X Description: Creates new dynamics(x, u) and output(x, u) methods for StateSpace systems. These correspond to the right hand side of the dynamcs and output equations for such systems (i.e. calculates xdot in xdo...
Opengraph URL: https://github.com/python-control/python-control/pull/546
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4394efe0-20f0-567e-fcfb-680f8e650424 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DF68:30B2BF:11E1844:194D81F:697B8AB7 |
| html-safe-nonce | 910e18bdf99958370c0478385d779e1fb194c4dca0bbcdff4f337cf31359cf4c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjY4OjMwQjJCRjoxMUUxODQ0OjE5NEQ4MUY6Njk3QjhBQjciLCJ2aXNpdG9yX2lkIjoiMzQ4MzM3NjM5NjE4MzI0MzQ0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d0c97acc62440e544ba87847bbf919f9db5f1a51c98ec42388739b749feb3470 |
| hovercard-subject-tag | pull_request:574498408 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python-control/python-control/pull/546/files |
| twitter:image | https://avatars.githubusercontent.com/u/58706249?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/58706249?s=400&v=4 |
| og:image:alt | Creates new dynamics(x, u) and output(x, u) methods for StateSpace systems. These correspond to the right hand side of the dynamcs and output equations for such systems (i.e. calculates xdot in xdo... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 86b3730167656228ed8d24c4f0770806131d1f695bff36b9485630bb7443aa64 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-control/python-control git https://github.com/python-control/python-control.git |
| octolytics-dimension-user_id | 2285872 |
| octolytics-dimension-user_login | python-control |
| octolytics-dimension-repository_id | 22791752 |
| octolytics-dimension-repository_nwo | python-control/python-control |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22791752 |
| octolytics-dimension-repository_network_root_nwo | python-control/python-control |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6adfecb5bc9d8f1aac645d1f3797aca9d302dd85 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width