Title: Observability Gramian for discrete-time systems · Issue #967 · python-control/python-control · GitHub
Open Graph Title: Observability Gramian for discrete-time systems · Issue #967 · python-control/python-control
X Title: Observability Gramian for discrete-time systems · Issue #967 · python-control/python-control
Description: I noticed in the source code for the gram function that it says only continuous-time systems are supported for now: python-control/control/statefbk.py Lines 1122 to 1127 in 85328d9 # TODO: Check for continuous or discrete, only continuou...
Open Graph Description: I noticed in the source code for the gram function that it says only continuous-time systems are supported for now: python-control/control/statefbk.py Lines 1122 to 1127 in 85328d9 # TODO: Check fo...
X Description: I noticed in the source code for the gram function that it says only continuous-time systems are supported for now: python-control/control/statefbk.py Lines 1122 to 1127 in 85328d9 # TODO: Check fo...
Opengraph URL: https://github.com/python-control/python-control/issues/967
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Observability Gramian for discrete-time systems","articleBody":"I noticed in the source code for the gram function that it says only continuous-time systems are supported for now:\r\n\r\nhttps://github.com/python-control/python-control/blob/85328d9d57e1148c04f1314b27c4ab0fa103d5ce/control/statefbk.py#L1122-L1127\r\n\r\nI checked and it doesn't raise an exception when you pass a discrete time system but I don't think this means it is calculating a gramian for a discrete-time system:\r\n\r\n```\r\nA = [[-0.31, 0.21], [-0.68, -0.57]]\r\nB = [[1.23], [1.42]]\r\nC = [[ 1.32, -0.55]]\r\nD = [[0.]]\r\nsysd = ct.ss(A, B, C, D, dt=1)\r\nassert sysd.isdtime()\r\nWo = ct.gram(sysd, 'o')\r\nprint(Wo)\r\n\r\narray([[ 3.24632551, -0.19876604],\r\n [-0.19876604, 0.19212128]])\r\n```\r\n\r\nWhat would it take to get it working for discrete time systems? Is it simply a different call to the same slycot module, sb03md, or is it more involved?\r\n\r\nSince I need it I'd be happy to try implementing it.\r\n\r\n\r\n","author":{"url":"https://github.com/billtubbs","@type":"Person","name":"billtubbs"},"datePublished":"2024-02-08T01:01:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/967/python-control/issues/967"}
| 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:ac23a3ba-e502-0873-dc18-c25f233add71 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7A0:A15F7:D9EB10:11FFB55:697C052B |
| html-safe-nonce | 9f41ab42e498f68a25700675eaf9b68aefa35022e7fc2103cfe54a481021f4a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0EwOkExNUY3OkQ5RUIxMDoxMUZGQjU1OjY5N0MwNTJCIiwidmlzaXRvcl9pZCI6IjU5ODU1NjY5MDYyMzUyMjUzODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bc42538666381f3c63d7552ce452b659c44113b03b95827fd1710f1664deb70e |
| hovercard-subject-tag | issue:2124176035 |
| 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/967/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4df88b5ec366ec2bfdf902d89c556951b919c677328b281df87ce92f44bceccc/python-control/python-control/issues/967 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4df88b5ec366ec2bfdf902d89c556951b919c677328b281df87ce92f44bceccc/python-control/python-control/issues/967 |
| og:image:alt | I noticed in the source code for the gram function that it says only continuous-time systems are supported for now: python-control/control/statefbk.py Lines 1122 to 1127 in 85328d9 # TODO: Check fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | billtubbs |
| hostname | github.com |
| expected-hostname | github.com |
| None | da4f0ee56809799586f8ee546b27f94fe9b5893edfbf87732e82be45be013b52 |
| 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 | 2d0972e08a3f8dfff1c4bf1f3d026a7d3a209c26 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width