Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few minor cleanups for the cartpole example. #815

Merged
merged 1 commit into from
Aug 26, 2022

Conversation

robfalck
Copy link
Contributor

Summary

Cartpole was having trouble converging on local OS X machines using IPOPT.

  1. Removed declare_coloring call for partial coloring wrt the static parameters, since those subjacobians are dense.
  2. Added an extra import openmdao.api as om before the display_source call in the doc, since the first import would not have been performed on colab.
  3. Changed ref values to 1.0 except for the control, which has its ref set to 0.01. This results in significantly faster convergence on OS X (36 iterations, as opposed to failing after hundreds of iterations).

Related Issues

  • Resolves #

Backwards incompatibilities

None

New Dependencies

None

…l OS X machines, though it worked on CI.

Removed the partial coloring call for the static inputs to cartpole dynamics, since the partials of those are dense.
Set all ref values to 1.0 except for the control, for which a ref value of 0.01 resulted in significantly faster convergence.
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@robfalck robfalck requested a review from swryan August 26, 2022 00:50
@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 95.032% when pulling df7767c on robfalck:cartpole_cleanup into 5e8af9a on OpenMDAO:master.

@robfalck robfalck merged commit 83f4098 into OpenMDAO:master Aug 26, 2022
@robfalck robfalck deleted the cartpole_cleanup branch October 17, 2022 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants