Skip to content

ENH: Enforce stopping_maxfun option via optimagic #625

@timmens

Description

@timmens

What would you like to enhance and why? Is it related to an issue/problem?

Some algorithms support the stopping_maxfun: int option, which stops the optimization if that number of function evaluations took place. Unfortunately, many algorithms do not support it.

Describe the solution you'd like

For algorithms that do not support the option, we handle it via optimagic.

Implementation ideas

The implementation would be algorithm / library specific. Some thoughts to consider:

  • How to handle parallelism and batch evaluations?
  • Does the library support callbacks / early stopping?
  • Do we need to raise / catch some custom exception?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions