Title: DC gain evaluation of State-space objects · Issue #128 · python-control/python-control · GitHub
Open Graph Title: DC gain evaluation of State-space objects · Issue #128 · python-control/python-control
X Title: DC gain evaluation of State-space objects · Issue #128 · python-control/python-control
Description: Currently (see [1]) if a state space system has eigenvalues at 0, it will return a scalar NaN for DC gain: except LinAlgError: # zero eigenvalue: singular matrix return np.nan The shape of the return is addressed in #126. It may be possi...
Open Graph Description: Currently (see [1]) if a state space system has eigenvalues at 0, it will return a scalar NaN for DC gain: except LinAlgError: # zero eigenvalue: singular matrix return np.nan The shape of the retu...
X Description: Currently (see [1]) if a state space system has eigenvalues at 0, it will return a scalar NaN for DC gain: except LinAlgError: # zero eigenvalue: singular matrix return np.nan The shape of the retu...
Opengraph URL: https://github.com/python-control/python-control/issues/128
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"DC gain evaluation of State-space objects","articleBody":"Currently (see [1]) if a state space system has eigenvalues at 0, it will return a scalar NaN for DC gain:\r\n```python\r\n except LinAlgError:\r\n # zero eigenvalue: singular matrix\r\n return np.nan\r\n```\r\nThe shape of the return is addressed in #126.\r\n\r\nIt may be possible to do better here: one relatively expensive way would be to `minreal` each input output pair and evaluate the DC gain. This would allow finite and non-finite entries in the returned matrix, rather than all NaNs. I'm not sure how to decide on +inf or -inf instead of NaN: in `C*inv(-A)*B`, if we find some sort of inverse of A that has infs (this is not hard using, e.g., singular value decomposition), one could still potentially add or subtract infs when multiplying by C and B, so getting NaNs.\r\n\r\n[1] https://github.com/python-control/python-control/blob/32f13bcdf32fb7d5513a5a06ba0ca3296decdf4d/control/statesp.py#L617-L619","author":{"url":"https://github.com/roryyorke","@type":"Person","name":"roryyorke"},"datePublished":"2017-01-04T18:49:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/128/python-control/issues/128"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:72ed538b-d41d-12a5-c6b6-b782717006f0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB94:32A64E:6A8D53:9779CC:697A1D0C |
| html-safe-nonce | 9862ae76cf0d29171da7d2a24c4b4a8f5399ee3f8a38de41cec13296123aac37 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjk0OjMyQTY0RTo2QThENTM6OTc3OUNDOjY5N0ExRDBDIiwidmlzaXRvcl9pZCI6IjM5NDcyNTk1OTE3MzI2MzI4NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 971de0af90f24d134926188f728a959c94f9894a9219391cc3928004122022e1 |
| hovercard-subject-tag | issue:198781243 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python-control/python-control/128/issue_layout |
| twitter:image | https://opengraph.githubassets.com/668bf81abd78fed7571780c7bceca82cb3ccc5cfdcbbac89dacbe314776f72d7/python-control/python-control/issues/128 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/668bf81abd78fed7571780c7bceca82cb3ccc5cfdcbbac89dacbe314776f72d7/python-control/python-control/issues/128 |
| og:image:alt | Currently (see [1]) if a state space system has eigenvalues at 0, it will return a scalar NaN for DC gain: except LinAlgError: # zero eigenvalue: singular matrix return np.nan The shape of the retu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | roryyorke |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24021c77440f544078f9cbe80d78a2fb16ccff65fca92deda9da3c51d1cdc5fc |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2841ead760bbcdca99003cf970f91348178160c3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width