René's URL Explorer Experiment


Title: Add the ability to split an input to an interconnected system · Issue #1049 · python-control/python-control · GitHub

Open Graph Title: Add the ability to split an input to an interconnected system · Issue #1049 · python-control/python-control

X Title: Add the ability to split an input to an interconnected system · Issue #1049 · python-control/python-control

Description: Discussed in #1047 Originally posted by corbinklett October 9, 2024 If I have an input that is external to an interconnected system, and I want this external input to connect into multiple systems contained within, the only way I can thi...

Open Graph Description: Discussed in #1047 Originally posted by corbinklett October 9, 2024 If I have an input that is external to an interconnected system, and I want this external input to connect into multiple systems ...

X Description: Discussed in #1047 Originally posted by corbinklett October 9, 2024 If I have an input that is external to an interconnected system, and I want this external input to connect into multiple systems ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add the ability to split an input to an interconnected system","articleBody":"### Discussed in https://github.com/python-control/python-control/discussions/1047\r\n\r\n\u003cdiv type='discussions-op-text'\u003e\r\n\r\n\u003csup\u003eOriginally posted by **corbinklett** October  9, 2024\u003c/sup\u003e\r\nIf I have an input that is external to an interconnected system, and I want this external input to connect into multiple systems contained within, the only way I can think to do this is by using `set_input_map`. Is there a more elegant way? Even when I use `set_input_map`, I still get the \"unused input\" warning. \r\n\r\nPart of the motivation for this question is that it is difficult to understand how an external input is being used if you can only specify it in terms of the subsystem that it connects to. It might be intended for the input to connect to multiple subsystems.\r\n\r\nHere is an example of how I have implemented:\r\n\r\n```python\r\nimport numpy as np\r\nimport control as ct\r\n\r\ndef dynamics(t, x, u, p):\r\n    A = np.array([[0, 1], [-p['spring_constant'], -p['damping_coefficient']]])\r\n    B = np.array([[0], [1]])\r\n    return A @ x + B @ u\r\n\r\ndef outputs(t, x, u, p):\r\n    C = np.array([[1, 0]])\r\n    D = np.array([[0]])\r\n    return C @ x + D @ u\r\n\r\nsys1 = ct.nlsys(updfcn=dynamics, outfcn=outputs, states=['pos', 'vel'], inputs=['u1'], outputs=['pos'], name='sys1')\r\nsys1.params = {'spring_constant': 10, 'damping_coefficient': 0.5}\r\n\r\nsys2 = ct.nlsys(updfcn=dynamics, outfcn=outputs, states=['pos', 'vel'], inputs=['u2'], outputs=['pos'], name='sys2')\r\nsys2.params = {'spring_constant': 1, 'damping_coefficient': 1}\r\n\r\nsys = ct.interconnect(\r\n    (sys1, sys2),\r\n    # inplist=['u'], # only works if both subsystem inputs are named u\r\n    outlist=['sys1.pos', 'sys2.pos'],\r\n    outputs=['pos1', 'pos2']\r\n)\r\n\r\n# /venv/lib/python3.12/site-packages/control/nlsys.py:1192: UserWarning: Unused input(s) in InterconnectedSystem: (1, 0)=sys2.u2; (0, 0)=sys1.u1\r\n\r\nsys.set_input_map(np.array([[1],[1]]))\r\nsys.set_inputs('external_input')\r\n\r\nt = np.linspace(0, 10, 1000)\r\n\r\nu0 = lambda t: 1\r\nU = np.array([\r\n    [u0(ti) for ti in t]\r\n])\r\n\r\nresults = ct.input_output_response(sys, T=t, U=U)\r\n\r\np = results.plot()\r\np.figure.show()\r\n\r\n```\u003c/div\u003e","author":{"url":"https://github.com/murrayrm","@type":"Person","name":"murrayrm"},"datePublished":"2024-10-12T02:28:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1049/python-control/issues/1049"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:1cb303e8-8f70-8310-300e-645a4bf46dab
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC630:33B429:165146C:1E07FC8:697A947F
html-safe-nonce3670065370d136d325bf356ab5f9a43f1cd6de62aac3d23be17e9d269816ff8a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjMwOjMzQjQyOToxNjUxNDZDOjFFMDdGQzg6Njk3QTk0N0YiLCJ2aXNpdG9yX2lkIjoiNjE0MDg3NDg3MzU3MzY0MzM5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac212e7b8f175bf13ccc3e095543961fb7aa0c3691b54d708f2c370a2b69b85612
hovercard-subject-tagissue:2582419362
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/1049/issue_layout
twitter:imagehttps://opengraph.githubassets.com/768fe8462000702ea488ccbd5cfce54235bfdb8557707e47ea25048d426aef0e/python-control/python-control/issues/1049
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/768fe8462000702ea488ccbd5cfce54235bfdb8557707e47ea25048d426aef0e/python-control/python-control/issues/1049
og:image:altDiscussed in #1047 Originally posted by corbinklett October 9, 2024 If I have an input that is external to an interconnected system, and I want this external input to connect into multiple systems ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemurrayrm
hostnamegithub.com
expected-hostnamegithub.com
None0912f2a9aa0160e08239520d461a4b4c4ce1caa972a8370b7442b94a38a194c5
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
releasef8f5270c10a913bfa56f2dad4b864f1cda383754
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-control/python-control/issues/1049#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fissues%2F1049
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%2F1049
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/1049
Reloadhttps://github.com/python-control/python-control/issues/1049
Reloadhttps://github.com/python-control/python-control/issues/1049
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/1049
New issuehttps://github.com/login?return_to=https://github.com/python-control/python-control/issues/1049
Add the ability to split an input to an interconnected systemhttps://github.com/python-control/python-control/issues/1049#top
enhancementhttps://github.com/python-control/python-control/issues?q=state%3Aopen%20label%3A%22enhancement%22
https://github.com/murrayrm
https://github.com/murrayrm
murrayrmhttps://github.com/murrayrm
on Oct 12, 2024https://github.com/python-control/python-control/issues/1049#issue-2582419362
#1047https://github.com/python-control/python-control/discussions/1047
enhancementhttps://github.com/python-control/python-control/issues?q=state%3Aopen%20label%3A%22enhancement%22
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.