dymos icon indicating copy to clipboard operation
dymos copied to clipboard

Maximum number of segments in grid refinement

Open jnance34 opened this issue 1 year ago • 1 comments

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

jnance34 avatar Nov 18 '24 15:11 jnance34

Thanks for the suggestion. Grid refinement is due for a good refactoring and we can incorporate this.

robfalck avatar Nov 23 '24 14:11 robfalck