Refactor of the Radau Transcription#1233
Open
robfalck wants to merge 7 commits into
Open
Conversation
…method.
RadauNew (dymos/transcriptions/pseudospectral/radau_new.py) is a new Radau implementation with the following improvements over the original:
- Tighter solve_segments loop via RadauIterGroup, enabling forward/backward shooting without a phase-level Newton solve over the full trajectory
- Exposes initial_states:{name} and final_states:{name} as explicit phase-level variables (_has_initial_final_states = True), replacing StateInputComp
- Removes the redundant boundary ODE system; initial/final control values and rates are sourced directly from ControlInterpComp (control_boundary_values:*, control_boundary_rates:*)
:
…er the previous Radau transcription.
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
RadauNew was failing the vanderpol_delay_mpi case due to an odd sizing issue.
We found a duplicate connection both at the transcription level and within the RadauIterGroup.
Removing the transcription-level dupliation removed the sizing issue.
The behavior was such that OpenMDAO was acting as if it expected local sizes for
src_indicesrather than the global size. Still unclear why this error manifested in the way it did.This refactor makes the additional boundary ODE option (defaulting it to OFF for existing behavior). In some cases having this extra ODE might improve numerical conditioning, but this implementation is true
Related Issues
Backwards incompatibilities
None
New Dependencies
None