Title: bug in place_acker · Issue #1190 · python-control/python-control · GitHub
Open Graph Title: bug in place_acker · Issue #1190 · python-control/python-control
X Title: bug in place_acker · Issue #1190 · python-control/python-control
Description: The place_acker function works for SISO systems only and returns 1D array instead of 2D array. 1D->2D array can be corrected in: python-control/control/statefbk.py Line 254 in 4242976 K = K[-1, :] # Extract the last row The original line...
Open Graph Description: The place_acker function works for SISO systems only and returns 1D array instead of 2D array. 1D->2D array can be corrected in: python-control/control/statefbk.py Line 254 in 4242976 K = K[-1, :] ...
X Description: The place_acker function works for SISO systems only and returns 1D array instead of 2D array. 1D->2D array can be corrected in: python-control/control/statefbk.py Line 254 in 4242976 K = K[-1, ...
Opengraph URL: https://github.com/python-control/python-control/issues/1190
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug in place_acker","articleBody":"The place_acker function works for SISO systems only and returns 1D array instead of 2D array. \n\n1D-\u003e2D array can be corrected in:\nhttps://github.com/python-control/python-control/blob/424297659bb279d196dae9006cfb185a1f4f472b/control/statefbk.py#L254\nThe original line\n K = K[-1, :] # Extract the last row\nshould be changed for\n K = K[-1:, :] # Extract the last row\n\nMIMO system specification throws errors. Here is an example:\n```\nimport numpy as np\nimport control as ct\n\nnx = 3\nnu = 1\nny = 1\nsys = ct.rss(states=nx, inputs=nu, outputs=ny)\npoles = - np.arange(1, nx+1, 1)\nKp = ct.place(sys.A, sys.B, poles)\nKa = ct.acker(sys.A, sys.B, poles)\nprint(Kp.shape, Ka.shape)\n\nnx = 3\nnu = 2\nny = 2\nsys = ct.rss(states=nx, inputs=nu, outputs=ny)\npoles = - np.arange(1, nx+1, 1)\nKp = ct.place(sys.A, sys.B, poles)\nKa = ct.acker(sys.A, sys.B, poles)\n```\n","author":{"url":"https://github.com/miroslavfikar","@type":"Person","name":"miroslavfikar"},"datePublished":"2025-12-30T06:45:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1190/python-control/issues/1190"}
| 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:598fc7e7-d380-9bc1-b302-85d35592e4bf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD24:154BC2:359BA7C:4B78B0D:69792CDC |
| html-safe-nonce | e7cf4dbe6f46ee4547bdc9dc2ce219d5ab703505f83b07b927581c0279c0d55b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDI0OjE1NEJDMjozNTlCQTdDOjRCNzhCMEQ6Njk3OTJDREMiLCJ2aXNpdG9yX2lkIjoiNjU5NjQ0MzM3MzIxNTIzMTE5NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4510afa42c13dced5158b4e598d85765c9e1b797105288d564753a613b28a3e7 |
| hovercard-subject-tag | issue:3769273384 |
| 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/1190/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7e0597b999406e3edff5c35a57e9d3cfd31edfec8282ca97060ef25d1402d968/python-control/python-control/issues/1190 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7e0597b999406e3edff5c35a57e9d3cfd31edfec8282ca97060ef25d1402d968/python-control/python-control/issues/1190 |
| og:image:alt | The place_acker function works for SISO systems only and returns 1D array instead of 2D array. 1D->2D array can be corrected in: python-control/control/statefbk.py Line 254 in 4242976 K = K[-1, :] ... |
| 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