Skip to content

Maximum number of segments in grid refinement #1130

@jnance34

Description

@jnance34

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions