Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Allow passing and saving of params in time responses#982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

murrayrm
Copy link
Member

This PR allows parameter values to be saved in time responses as well as passing parameter values (via theparams keyword) for theinitial_response, ,step_response, andfinal_response functions (which call through toinput_output_response for nonlinear I/O systems).

With this functionality, you can do things like

    nlsys = ct.nlsys(        lambda t, x, u, params: params['a'] * x[0] + u[0],        states = 1, inputs = 1, outputs = 1, params={'a': 0})    timevec = np.linspace(0, 1)    resp = step_response(nlsys, timevec, params={'a': -0.5})

The simulation will run with params['a'] = -0.5 and this information will be stored inresp.params.

@coveralls
Copy link

coveralls commentedMar 30, 2024
edited
Loading

Coverage Status

coverage: 94.449% (+0.02%) from 94.425%
when pulling85568a9 on murrayrm:save_params-30Mar2024
into4d878a9 on python-control:main.

@murrayrmmurrayrm added this to the0.10.0 milestoneMar 31, 2024
@murrayrmmurrayrm merged commitc8d9c8f intopython-control:mainMar 31, 2024
@murrayrmmurrayrm deleted the save_params-30Mar2024 branchMarch 31, 2024 15:28
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.10.0
Development

Successfully merging this pull request may close these issues.

2 participants
@murrayrm@coveralls

[8]ページ先頭

©2009-2025 Movatter.jp