René's URL Explorer Experiment


Title: Possible bug: control.interconnect fails to construct a extended system with zero input and one output (D matrix shape mismatch) · Issue #1176 · python-control/python-control · GitHub

Open Graph Title: Possible bug: control.interconnect fails to construct a extended system with zero input and one output (D matrix shape mismatch) · Issue #1176 · python-control/python-control

X Title: Possible bug: control.interconnect fails to construct a extended system with zero input and one output (D matrix shape mismatch) · Issue #1176 · python-control/python-control

Description: About the problem Summary I attempted to simulate a control system with an output-feedback controller, defining a plant and a controller as subsystems. When using control.interconnect to connect these subsystems, an error occurs because ...

Open Graph Description: About the problem Summary I attempted to simulate a control system with an output-feedback controller, defining a plant and a controller as subsystems. When using control.interconnect to connect th...

X Description: About the problem Summary I attempted to simulate a control system with an output-feedback controller, defining a plant and a controller as subsystems. When using control.interconnect to connect th...

Opengraph URL: https://github.com/python-control/python-control/issues/1176

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Possible bug: control.interconnect fails to construct a extended system with zero input and one output (D matrix shape mismatch)","articleBody":"## About the problem\n\n### Summary\nI attempted to simulate a control system with an output-feedback controller, defining a plant and a controller as subsystems.\nWhen using `control.interconnect` to connect these subsystems, an error occurs because an extended system obtained by connecting subsystems has zero input and one output.\nIs it impossible to define a system with zero input and one output using the `control.interconnect` function?\n\n\n### Error message \n```\ncontrol.exception.ControlDimension: Incompatible dimensions of D matrix; expected (1, 0) but found (0, 0)\n```\n\n\n\n### System information\n- OS: macOS Sonoma 14.3.1\n- Python: 3.12.2\n- python-control: 0.10.2\n\n\n\n### Cause of this problem\nWhen we set the inputs and outputs of the extended system as zero input and one input, the D matrix of the extended system has `(1, 0)` dimension.\nHowever, the dimension of D matrix is converted to `(0, 0)` dimension by `_ssmatrix` function at line 218 of `statesp.py`.\nAs a result, the mismatch of the dimensions occurs.\n(When we set both inputs and outputs to zero, the error does not occur.)\n\n\n\n\n\n## To reproduce the error\n```python\nimport numpy as np\nimport control as ct\n\ndef main():\n\n    # Define the coefficient matrices of plant P\n    A = np.array(\n        [\n            [1.00, 1.00],\n            [0.00, -2.0],\n        ]\n    )\n    B = np.array(\n        [\n            [0.00],\n            [1.00]\n        ]\n    )\n    C = np.array(\n        [\n            [1.00, 0.00]\n        ]\n    )\n\n    # Define the coefficient matrices of controller C\n    A_c = np.array(\n        [\n            [2.25, 1.00],\n            [-5.0, -0.5]\n        ]\n    )\n    B_c = np.array(\n        [\n            [-1.25],\n            [4.500]\n        ]\n    )\n    C_c = np.array(\n        [\n            [-0.50, 1.500]\n        ]\n    )\n\n    # Define the subsystems\n    P = ct.ss(\n        A,\n        B,\n        C,\n        np.zeros([C.shape[0], B.shape[1]]),\n        inputs=[f'u_p{i}' for i in range(B.shape[1])],\n        outputs=[f'y_p{i}' for i in range(C.shape[0])],\n        name='P',\n        dt=True\n    )\n    C = ct.ss(\n        A_c,\n        B_c,\n        C_c,\n        np.zeros([C_c.shape[0], B_c.shape[1]]),\n        inputs=[f'y_p{i}' for i in range(B_c.shape[1])],\n        outputs=[f'u_p{i}' for i in range(C_c.shape[0])],\n        name='C',\n        dt=True\n    )\n\n    sys = ct.interconnect(\n        [P, C],\n        inplist=None,\n        outlist=[f'y_p{i}' for i in range(P.C.shape[0])]\n    )\n\nif __name__ == '__main__':\n    main()\n```","author":{"url":"https://github.com/yuu5g0g0","@type":"Person","name":"yuu5g0g0"},"datePublished":"2025-07-27T06:35:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1176/python-control/issues/1176"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:57f4558d-02b7-4393-b851-2d2673205f0c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB448:3A860B:341A821:4903B08:69792CFD
html-safe-nonce52b5e61dae30a61c3c3beff93f9b20fe27d064546107cb57760b38ec0780ca9e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDQ4OjNBODYwQjozNDFBODIxOjQ5MDNCMDg6Njk3OTJDRkQiLCJ2aXNpdG9yX2lkIjoiNjA2MzkwNjAzMTY3NzI4NzY3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd04079e970d30fed4a7a8bb742db1a7be3bf4c3c7140ee74df11d57c3b7923fb
hovercard-subject-tagissue:3266767711
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-control/python-control/1176/issue_layout
twitter:imagehttps://opengraph.githubassets.com/03269d8c14dff11e354d46ac500830652176de450357c708f7f76c901ecffcb2/python-control/python-control/issues/1176
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/03269d8c14dff11e354d46ac500830652176de450357c708f7f76c901ecffcb2/python-control/python-control/issues/1176
og:image:altAbout the problem Summary I attempted to simulate a control system with an output-feedback controller, defining a plant and a controller as subsystems. When using control.interconnect to connect th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameyuu5g0g0
hostnamegithub.com
expected-hostnamegithub.com
None15417fb272585d09f7c894f2a869ba34cc4c7ded898af9dccaa85542b9adb711
turbo-cache-controlno-preview
go-importgithub.com/python-control/python-control git https://github.com/python-control/python-control.git
octolytics-dimension-user_id2285872
octolytics-dimension-user_loginpython-control
octolytics-dimension-repository_id22791752
octolytics-dimension-repository_nwopython-control/python-control
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id22791752
octolytics-dimension-repository_network_root_nwopython-control/python-control
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release535f4866a7b2e3d762bd599bffe50a3cfb0702b2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-control/python-control/issues/1176#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fissues%2F1176
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fissues%2F1176
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-control%2Fpython-control
Reloadhttps://github.com/python-control/python-control/issues/1176
Reloadhttps://github.com/python-control/python-control/issues/1176
Reloadhttps://github.com/python-control/python-control/issues/1176
python-control https://github.com/python-control
python-controlhttps://github.com/python-control/python-control
Notifications https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Fork 447 https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Star 2k https://github.com/login?return_to=%2Fpython-control%2Fpython-control
Code https://github.com/python-control/python-control
Issues 87 https://github.com/python-control/python-control/issues
Pull requests 8 https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects 0 https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security 0 https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
Code https://github.com/python-control/python-control
Issues https://github.com/python-control/python-control/issues
Pull requests https://github.com/python-control/python-control/pulls
Discussions https://github.com/python-control/python-control/discussions
Actions https://github.com/python-control/python-control/actions
Projects https://github.com/python-control/python-control/projects
Wiki https://github.com/python-control/python-control/wiki
Security https://github.com/python-control/python-control/security
Insights https://github.com/python-control/python-control/pulse
New issuehttps://github.com/login?return_to=https://github.com/python-control/python-control/issues/1176
New issuehttps://github.com/login?return_to=https://github.com/python-control/python-control/issues/1176
Bughttps://github.com/python-control/python-control/issues?q=type:"Bug"
Possible bug: control.interconnect fails to construct a extended system with zero input and one output (D matrix shape mismatch)https://github.com/python-control/python-control/issues/1176#top
0.10.3https://github.com/python-control/python-control/milestone/17
https://github.com/yuu5g0g0
https://github.com/yuu5g0g0
yuu5g0g0https://github.com/yuu5g0g0
on Jul 27, 2025https://github.com/python-control/python-control/issues/1176#issue-3266767711
Bughttps://github.com/python-control/python-control/issues?q=type:"Bug"
0.10.3No due datehttps://github.com/python-control/python-control/milestone/17
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.