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: patch-diff.githubusercontent.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:16022b97-8bd7-18d0-ec40-1f4c1584c2a2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B874:1BA671:14AD07D:1BC745A:69797881 |
| html-safe-nonce | 4cc50df1293968292274b247293da47bf3f740a57a3e746a7d067b0c1e78d871 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODc0OjFCQTY3MToxNEFEMDdEOjFCQzc0NUE6Njk3OTc4ODEiLCJ2aXNpdG9yX2lkIjoiMzg5NTYxODA1NjAxNjcyMjA0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6f1b48b1709e99f9da81d338fd715dbef157ecfff629c62f8ac9fb5c1da7372e |
| 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 | c049b65ec7e54cbf2521f5a560b6527714c612b0bd169188e2ea6e16f83bd5f4 |
| 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 | 87b137883e35e2766c3d0f6a257c4044f6390b83 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width