GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Optimal control enhancements by murrayrm · Pull Request #712 · python-control/python-control

Conversation

@murrayrm

@murrayrm murrayrm commented Mar 23, 2022

Copy link
Copy Markdown
Member

This PR includes enhancements to the optimal control module:

  • Added config.defaults['optimal'] to allow default optimal control options (minimize_method, etc) to be set using set_defaults
  • Improved keyword handling in solve_ocp and other optimal control functions, including checking for unrecognized keywords
  • Allow t_eval keyword in input_output_response to allow a different set of time points to be used for the input vector and the computed output
  • The final cost is now saved in optimal control result (Optimal control results should include the final cost achieved #694)
  • Fixed doc/optimal.rst example (generates working solution; Steering optimal control example from documentation failing #636)
  • Updated optimal docstrings and user documentation, including adding optimization tips to doc/optimal.rst
  • Fixed user documentation warnings/errors (not related to optimal)
  • Additional unit tests: nonuniform sampling in simulations, not implemented test for continuous MPC

All previous functionality still works.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
murrayrm added 4 commits March 22, 2022 21:25
@murrayrm
add not implemented test/fix for continuous MPC
79d1193
@murrayrm
optimal improvements: defaults, docs, t_eval, cost
19c1d58
* Added config.defaults['optimal']
* Improved keyword handling (including unknown check)
* Allow t_eval in input_output_response to chnage timepts
* Save cost in optimal control result
* Fixed doc/optimal.rst example (generates working solution)
* Updated optimal docstrings and user documentation
* Added optimization tips to doc/optimal.rst
* Fixed user documentation warnings/errors (not related to optimal)
@murrayrm
unit test for nonuniform sampling in simulations
b2e86b8
@murrayrm
rebase cleanup
f3d46bc
@coveralls

coveralls commented Mar 23, 2022

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.05%) to 93.546% when pulling f3d46bc on murrayrm:optimal_18Mar2022 into 2f3ca18 on python-control:master.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@murrayrm murrayrm mentioned this pull request Mar 23, 2022
Keyword argument checking #713
Merged
This was linked to issues Mar 23, 2022
Steering optimal control example from documentation failing #636
Closed
Optimal control results should include the final cost achieved #694
Closed
@murrayrm
murrayrm merged commit cfe21de into python-control:master Mar 30, 2022
@murrayrm murrayrm mentioned this pull request Apr 9, 2022
Allow non-uniform time vector sampling for simulations #357
Closed
@murrayrm murrayrm added this to the 0.9.2 milestone Apr 17, 2022
@murrayrm
murrayrm deleted the optimal_18Mar2022 branch April 26, 2022 05:21
@murrayrm murrayrm mentioned this pull request Dec 24, 2022
Planned release of control-0.9.3 #825
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

0.9.2

Development

Successfully merging this pull request may close these issues.

Optimal control results should include the final cost achieved Steering optimal control example from documentation failing

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@murrayrm @coveralls
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.