Title: bug in create_statefbk_iosystem, option refgain · Issue #1189 · python-control/python-control · GitHub
Open Graph Title: bug in create_statefbk_iosystem, option refgain · Issue #1189 · python-control/python-control
X Title: bug in create_statefbk_iosystem, option refgain · Issue #1189 · python-control/python-control
Description: python-control/control/statefbk.py Line 1009 in 4242976 D_lqr = np.hstack([Kf, -K]) Matrix D_lqr is not correctly constructed if integral action is used in 'refgain' form. The line: D_lqr = np.hstack([Kf, -K]) should read: D_lqr = np.hst...
Open Graph Description: python-control/control/statefbk.py Line 1009 in 4242976 D_lqr = np.hstack([Kf, -K]) Matrix D_lqr is not correctly constructed if integral action is used in 'refgain' form. The line: D_lqr = np.hsta...
X Description: python-control/control/statefbk.py Line 1009 in 4242976 D_lqr = np.hstack([Kf, -K]) Matrix D_lqr is not correctly constructed if integral action is used in 'refgain' form. The line: D_lqr =...
Opengraph URL: https://github.com/python-control/python-control/issues/1189
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug in create_statefbk_iosystem, option refgain","articleBody":"https://github.com/python-control/python-control/blob/424297659bb279d196dae9006cfb185a1f4f472b/control/statefbk.py#L1009\n\nMatrix D_lqr is not correctly constructed if integral action is used in 'refgain' form. The line:\nD_lqr = np.hstack([Kf, -K])\nshould read:\nD_lqr = np.hstack([Kf, -K[:, :sys_nstates]])\nas K[:, sys_nstates:] is already used in C_lqr, D_lqr is too wide.\n","author":{"url":"https://github.com/miroslavfikar","@type":"Person","name":"miroslavfikar"},"datePublished":"2025-12-20T12:03:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1189/python-control/issues/1189"}
| 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:534efe01-ed5e-0fff-0c4a-674f1dfe2e1a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DFE:2FB70B:3627F50:4BE3A78:69792D10 |
| html-safe-nonce | 9aee8c08749476dfa2415a5e3b3ecf23701a159b04608132833484e4b5a808e1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REZFOjJGQjcwQjozNjI3RjUwOjRCRTNBNzg6Njk3OTJEMTAiLCJ2aXNpdG9yX2lkIjoiMjg4NDg5NDkyOTk0MTI0NTIwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 947443bb1deb612dcfd5eef9ed21463bd0b291c2754f366176439c63c522c79d |
| hovercard-subject-tag | issue:3749994662 |
| 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/1189/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aed9408c3e5d62d3bc9025973afe23d1da95233a4a8e7575e34496de05647a66/python-control/python-control/issues/1189 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aed9408c3e5d62d3bc9025973afe23d1da95233a4a8e7575e34496de05647a66/python-control/python-control/issues/1189 |
| og:image:alt | python-control/control/statefbk.py Line 1009 in 4242976 D_lqr = np.hstack([Kf, -K]) Matrix D_lqr is not correctly constructed if integral action is used in 'refgain' form. The line: D_lqr = np.hsta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | miroslavfikar |
| hostname | github.com |
| expected-hostname | github.com |
| None | 15417fb272585d09f7c894f2a869ba34cc4c7ded898af9dccaa85542b9adb711 |
| 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 | 535f4866a7b2e3d762bd599bffe50a3cfb0702b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width