dymos
dymos copied to clipboard
Maximum number of segments in grid refinement
Proposed feature.
I would love an early stopping capability that allows the user to set a maximum number of grid refinement segments and terminates grid refinement early if that number of segments is exceeded. Something like:
phase.set_refine_options(tol = 1e-5, max_num_segments = 100)
For context, many optimal control problems I attempt to solve converge with <50 or so segments. If the problem gets much larger than that I waste a lot of computation time just to learn that the problem is infeasible. Thanks!
Example
No response
Thanks for the suggestion. Grid refinement is due for a good refactoring and we can incorporate this.