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: github.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:bf4653b6-f021-c30c-3abf-ad388c49562b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC02:32140B:4A0FCD:6377ED:697C1F56 |
| html-safe-nonce | a3b1a6df2cd7fff4869ada79b94e977e92afdca6e78c620add787883295b24cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzAyOjMyMTQwQjo0QTBGQ0Q6NjM3N0VEOjY5N0MxRjU2IiwidmlzaXRvcl9pZCI6Ijc3ODI1MDg4NDcxMzU1Mzc1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 15f2ea833173471ba343efafa02956844d6451b3a29ce0c49fa77355bf168f5a |
| 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 | 787d8d274e314f52ce6d846c7581f9476d8dc736 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width