René's URL Explorer Experiment


Title: Unexpected behavior for a system defined using zpk · Issue #1067 · python-control/python-control · GitHub

Open Graph Title: Unexpected behavior for a system defined using zpk · Issue #1067 · python-control/python-control

X Title: Unexpected behavior for a system defined using zpk · Issue #1067 · python-control/python-control

Description: I been scratching my head about whats going on with a very simple system. Defining the system using tf yields results as expected. But defining the system through zpk does not. Description I intend to define the next system: G(s) = K ---...

Open Graph Description: I been scratching my head about whats going on with a very simple system. Defining the system using tf yields results as expected. But defining the system through zpk does not. Description I intend...

X Description: I been scratching my head about whats going on with a very simple system. Defining the system using tf yields results as expected. But defining the system through zpk does not. Description I intend...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected behavior for a system defined using zpk","articleBody":"I been scratching my head about whats going on with a very simple system.\r\nDefining the system using tf yields results as expected. But defining the system through zpk does not.\r\n\r\n## Description\r\nI intend to define the next system:\r\n```\r\nG(s) =           K\r\n          ---------------\r\n           (s+2)*(s+2/3)\r\n```\r\nWith K adjusted for a ts=1 second. Very straight forward.\r\n\r\n## Reproduction\r\nThis is my code for zpk:\r\n\r\n```\r\nimport control as ct\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\nK = 10.314\r\nG = ct.zpk([], [-2, -2/3], K)\r\nT = ct.feedback(G)\r\nct.step_response(T).plot()\r\n```\r\n![image](https://github.com/user-attachments/assets/a4d310bf-6e7b-457e-9d78-bad56917cd0c)\r\n\r\n`ct.step_info(T)`\r\n```\r\n{'RiseTime': np.float64(0.0),\r\n 'SettlingTime': nan,\r\n 'SettlingMin': np.float64(-4.959514534383556e+52),\r\n 'SettlingMax': np.float64(8.010508330340013e+51),\r\n 'Overshoot': np.float64(9.04605979182796e+53),\r\n 'Undershoot': np.float64(5.600651440127666e+54),\r\n 'Peak': np.float64(4.959514534383556e+52),\r\n 'PeakTime': np.float64(5.180816459236604),\r\n 'SteadyStateValue': np.float64(0.8855245835956728)}\r\n```\r\n\r\nThe result is not as expected. While defining the system through tf:\r\n\r\n```\r\nI = ct.tf([K], [1, 8/3, 4/3])\r\nV = ct.feedback(I)\r\nct.step_response(V).plot()\r\n```\r\n![image](https://github.com/user-attachments/assets/7ad3809e-2ca3-4743-a99a-064a9063c7f7)\r\n\r\n`ct.step_info(V)`\r\n```\r\n{'RiseTime': np.float64(0.4186518350898263),\r\n 'SettlingTime': np.float64(2.5119110105389577),\r\n 'SettlingMin': np.float64(0.8127467853231765),\r\n 'SettlingMax': np.float64(1.118911703975943),\r\n 'Overshoot': np.float64(26.35435717033743),\r\n 'Undershoot': 0,\r\n 'Peak': np.float64(1.118911703975943),\r\n 'PeakTime': np.float64(0.9942981083383374),\r\n 'SteadyStateValue': np.float64(0.8855347207912633)}\r\n\r\n```\r\nOutputting both system definitions reveals they're the same. The transfer function is exactly the same. But I don't know what may be going on with the transfer object defined with zpk.\r\n\r\n## System info\r\nI've installed the control package in a clean conda enviroment and using a jupyter notebook through VSCode.\r\n\r\nConda:\r\n```\r\nconda version : 23.1.0\r\nconda-build version : 3.22.0\r\npython version : 3.9.13.final.0\r\nvirtual packages : __archspec=1=x86_64__win=0=0\r\nplatform : win-64\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/gereze","@type":"Person","name":"gereze"},"datePublished":"2024-11-27T12:15:55.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1067/python-control/issues/1067"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:61fd2713-506b-f3fb-ddf8-6a50852bf212
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9E52:2BD61D:1735D31:1FA9F7B:697A9495
html-safe-nonce5d5d964fcdf38247168ee5edff95fc9bd5600c9be4d35649d8ad5a90887c08b5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTUyOjJCRDYxRDoxNzM1RDMxOjFGQTlGN0I6Njk3QTk0OTUiLCJ2aXNpdG9yX2lkIjoiMzcyNzAwMzkxMDYyODA4NjkzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8ed0a67b6f369f731896c28b1895bb5c0ddea394fa47749fc5bef2ad35a6b518
hovercard-subject-tagissue:2698354986
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/1067/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6b56d53b858e87cd5e96881db677005d22a4d43e1c7b8317170b2c11ae3b21f3/python-control/python-control/issues/1067
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6b56d53b858e87cd5e96881db677005d22a4d43e1c7b8317170b2c11ae3b21f3/python-control/python-control/issues/1067
og:image:altI been scratching my head about whats going on with a very simple system. Defining the system using tf yields results as expected. But defining the system through zpk does not. Description I intend...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegereze
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/1067#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fissues%2F1067
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%2F1067
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/1067
Reloadhttps://github.com/python-control/python-control/issues/1067
Reloadhttps://github.com/python-control/python-control/issues/1067
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/1067
New issuehttps://github.com/login?return_to=https://github.com/python-control/python-control/issues/1067
Unexpected behavior for a system defined using zpkhttps://github.com/python-control/python-control/issues/1067#top
duplicatehttps://github.com/python-control/python-control/issues?q=state%3Aopen%20label%3A%22duplicate%22
https://github.com/gereze
https://github.com/gereze
gerezehttps://github.com/gereze
on Nov 27, 2024https://github.com/python-control/python-control/issues/1067#issue-2698354986
https://private-user-images.githubusercontent.com/102045302/390395772-a4d310bf-6e7b-457e-9d78-bad56917cd0c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Njk2NDE0MTAsIm5iZiI6MTc2OTY0MTExMCwicGF0aCI6Ii8xMDIwNDUzMDIvMzkwMzk1NzcyLWE0ZDMxMGJmLTZlN2ItNDU3ZS05ZDc4LWJhZDU2OTE3Y2QwYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lB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X-ieovkA
duplicatehttps://github.com/python-control/python-control/issues?q=state%3Aopen%20label%3A%22duplicate%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.