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

Maximum number of segments in grid refinement #1130

Open
jnance34 opened this issue Nov 18, 2024 · 1 comment
Open

Maximum number of segments in grid refinement #1130

jnance34 opened this issue Nov 18, 2024 · 1 comment
Assignees

Comments

@jnance34
Copy link

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

@robfalck
Copy link
Contributor

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

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

No branches or pull requests

2 participants