René's URL Explorer Experiment


Title: Issue following find_eqpt documentation · python-control/python-control · Discussion #1053 · GitHub

Open Graph Title: Issue following find_eqpt documentation · python-control/python-control · Discussion #1053

X Title: Issue following find_eqpt documentation · python-control/python-control · Discussion #1053

Description: Issue following find_eqpt documentation

Open Graph Description: I'm trying to use find_eqpt in order to trim an aircraft. I need to solve for the trim throttle input and the angle of attack. There are a couple of ways that I can't figure out how to use find_eqp...

X Description: I'm trying to use find_eqpt in order to trim an aircraft. I need to solve for the trim throttle input and the angle of attack. There are a couple of ways that I can't figure out how to use ...

Opengraph URL: https://github.com/python-control/python-control/discussions/1053

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"Issue following find_eqpt documentation","text":"

I'm trying to use find_eqpt in order to trim an aircraft. I need to solve for the trim throttle input and the angle of attack.

\n

There are a couple of ways that I can't figure out how to use find_eqpt, commented below. How do I specify that d/dt of only some of the states (u, w, theta, and q) matters in this calculation, given that other states are specified as fixed?

\n

Also, it doesn't seem like find_eqpt handles bounds or constraints, such that you can constrain a quaternion to norm 1 (this example just uses Euler angles).

\n
# Fix output at:\nVinf = 30\nbeta = 0\ngamma = 0\n\n# Find this output:\nalpha = 0 # guess\n\n# Find this input:\nthrottle = 0.5 # guess\n\n# State guess\nx = 0\ny = 0\nz = 0\nu = Vinf\nv = 0\nw = 0\nphi = 0    # Roll angle\ntheta = 0\npsi = 0    # Yaw angle\np = 0\nq = 0\nr = 0\n\nx0 = np.array([x, y, z, u, v, w, phi, theta, psi, p, q, r])\nu0 = np.array([throttle])\n\ntrim_state, trim_input, yeq, result = ct.find_eqpt(\n  aircraft_6dof_model, \n   x0, \n   u0=u0, \n   y0=[Vinf, alpha, beta, gamma],\n   iy=[0, 2, 3],           \t\t\t# Constrain Vinf, beta, gamma\n   ix=[4, 6, 8, 9, 10, 11],   \t\t\t# Constrain v, phi, psi, p, q, r\n   # dx0=[0,0,0,0,0,0,0,0,0,0,0,0],\t# How to specify that xdot, ydot, and zdot don't matter?\n   idx=[3, 5, 7, 10], \t\t\t        # Only care about d/dt of u, w, theta, and q\t\n   return_y = True,\n   return_result = True\n)
\n

Depending on how I formulate the arguments, I get an input/output mismatch error, or the find_eqpt function runs infinitely.

","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

The issue is that the problem I desire to solve is over-constrained. I get the intended result if I change the line in find_eqpt that calls root to result = root(rootfun, z0, method='lm'), adding the \"least squares method\" designator to the args.

\n

Does it make sense for find_eqpt to do this if num_constraints > num_freedoms?

","upvoteCount":0,"url":"https://github.com/python-control/python-control/discussions/1053#discussioncomment-11137221"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:fa238821-2348-6b9c-c97a-91001353d281
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-id976E:39C164:18AC01B:231E798:697A45D8
html-safe-nonce0de3c1c7a98afcf8d9ac3d3200c3f9fc23e4bffeb00134d203547eccb6ebebbd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzZFOjM5QzE2NDoxOEFDMDFCOjIzMUU3OTg6Njk3QTQ1RDgiLCJ2aXNpdG9yX2lkIjoiNDUyMDM0MzgyNTQzMTU0NTMwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf83e55797f8990127392baff51e8a98848c22deffad25a8644fe933c4853d30d
hovercard-subject-tagdiscussion:7398027
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/python-control/python-control/1053/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/d7ea6af20c391ade7c5a0681a1be7d05f24fee2ba8c72e90652d48745dea72a2/python-control/python-control/discussions/1053
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d7ea6af20c391ade7c5a0681a1be7d05f24fee2ba8c72e90652d48745dea72a2/python-control/python-control/discussions/1053
og:image:altI'm trying to use find_eqpt in order to trim an aircraft. I need to solve for the trim throttle input and the angle of attack. There are a couple of ways that I can't figure out how to use find_eqp...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None553d32486a978372da5772d723ffbf66cac04403ab1794b7225c035f1d23252c
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
release8d7fdc30d680a0be278b8d9916215e64c987f09a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-control/python-control/discussions/1053#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fdiscussions%2F1053
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%2Fdiscussions%2F1053
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%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=python-control%2Fpython-control
Reloadhttps://github.com/python-control/python-control/discussions/1053
Reloadhttps://github.com/python-control/python-control/discussions/1053
Reloadhttps://github.com/python-control/python-control/discussions/1053
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
Answered https://github.com/python-control/python-control/discussions/1053#discussioncomment-11137221
corbinkletthttps://github.com/corbinklett
corbinklett https://github.com/corbinklett
Q&Ahttps://github.com/python-control/python-control/discussions/categories/q-a
Issue following find_eqpt documentation https://github.com/python-control/python-control/discussions/1053#top
corbinklett https://github.com/corbinklett
Answered https://github.com/python-control/python-control/discussions/1053#discussioncomment-11137221
corbinkletthttps://github.com/corbinklett
Return to tophttps://github.com/python-control/python-control/discussions/1053#top
Please reload this pagehttps://github.com/python-control/python-control/discussions/1053
https://github.com/python-control/python-control/discussions/1053
corbinklett https://github.com/corbinklett
Oct 30, 2024 https://github.com/python-control/python-control/discussions/1053#discussion-7398027
Give feedback.https://github.com/python-control/python-control/discussions/1053
corbinklett https://github.com/corbinklett
Nov 3, 2024 https://github.com/python-control/python-control/discussions/1053#discussioncomment-11137221
View full answer https://github.com/python-control/python-control/discussions/1053#discussioncomment-11137221
Oldest https://github.com/python-control/python-control/discussions/1053?sort=old
Newest https://github.com/python-control/python-control/discussions/1053?sort=new
Top https://github.com/python-control/python-control/discussions/1053?sort=top
Please reload this pagehttps://github.com/python-control/python-control/discussions/1053
https://github.com/python-control/python-control/discussions/1053
murrayrm https://github.com/murrayrm
Nov 2, 2024 https://github.com/python-control/python-control/discussions/1053#discussioncomment-11130851
the codehttps://github.com/python-control/python-control/blob/0.10.1/control/nlsys.py#L1666-L1924
rootfunhttps://github.com/python-control/python-control/blob/6d4208855d95426fe3cf0b000c6adeafea855c1a/control/nlsys.py#L1883
Give feedback.https://github.com/python-control/python-control/discussions/1053
https://github.com/murrayrm
Please reload this pagehttps://github.com/python-control/python-control/discussions/1053
https://github.com/python-control/python-control/discussions/1053
Please reload this pagehttps://github.com/python-control/python-control/discussions/1053
https://github.com/python-control/python-control/discussions/1053
murrayrmhttps://github.com/murrayrm
Nov 3, 2024 https://github.com/python-control/python-control/discussions/1053#discussioncomment-11136480
Give feedback.https://github.com/python-control/python-control/discussions/1053
https://github.com/corbinklett
Please reload this pagehttps://github.com/python-control/python-control/discussions/1053
https://github.com/python-control/python-control/discussions/1053
corbinkletthttps://github.com/corbinklett
Nov 3, 2024 https://github.com/python-control/python-control/discussions/1053#discussioncomment-11136549
Give feedback.https://github.com/python-control/python-control/discussions/1053
https://github.com/corbinklett
Please reload this pagehttps://github.com/python-control/python-control/discussions/1053
https://github.com/python-control/python-control/discussions/1053
corbinkletthttps://github.com/corbinklett
Nov 3, 2024 https://github.com/python-control/python-control/discussions/1053#discussioncomment-11136568
Give feedback.https://github.com/python-control/python-control/discussions/1053
https://github.com/corbinklett
Please reload this pagehttps://github.com/python-control/python-control/discussions/1053
https://github.com/python-control/python-control/discussions/1053
corbinkletthttps://github.com/corbinklett
Nov 3, 2024 https://github.com/python-control/python-control/discussions/1053#discussioncomment-11137221
Give feedback.https://github.com/python-control/python-control/discussions/1053
corbinkletthttps://github.com/corbinklett
Please reload this pagehttps://github.com/python-control/python-control/discussions/1053
https://github.com/python-control/python-control/discussions/1053
murrayrm https://github.com/murrayrm
Nov 3, 2024 https://github.com/python-control/python-control/discussions/1053#discussioncomment-11137253
Give feedback.https://github.com/python-control/python-control/discussions/1053
https://github.com/murrayrm
Please reload this pagehttps://github.com/python-control/python-control/discussions/1053
https://github.com/python-control/python-control/discussions/1053
murrayrmhttps://github.com/murrayrm
Nov 9, 2024 https://github.com/python-control/python-control/discussions/1053#discussioncomment-11195034
#1054https://github.com/python-control/python-control/pull/1054
Give feedback.https://github.com/python-control/python-control/discussions/1053
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-control%2Fpython-control%2Fdiscussions%2F1053
🙏 Q&A https://github.com/python-control/python-control/discussions/categories/q-a
https://github.com/corbinklett
https://github.com/murrayrm
https://github.com/python-control/python-control/discussions/1053
https://github.com/settings/replies?return_to=1
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.