Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ releases are available on [Anaconda.org](https://anaconda.org/optimagic-dev/opti
This release adds experimental support for **SciPy-style callbacks**, replaces pybaum by
**optree** for pytree handling and uses **pydantic** to validate algorithm options.

- {gh}`751` Adds typed benchmark problems as proposed in EP-02. A `BenchmarkFunction`
holds the objective function, its closed form derivatives and properties like
convexity; a `BenchmarkProblem` combines it with start parameters, an optional known
solution, noise and scaling. `run_benchmark` returns `BenchmarkResult` objects and
accepts `OptimizeOptions`. Lists of algorithms and dictionaries of `minimize`
arguments in `run_benchmark`, as well as the noise and scaling options of
`get_benchmark_problems`, are deprecated and will be removed in version 0.7.0
({ghuser}`janosg`).
- {gh}`749` Supports pandas 3 and Python 3.15 and drops Python 3.12. Following
[SPEC 0](https://scientific-python.org/specs/spec-0000/), the minimum supported
versions are now Python 3.13, numpy 2.2, scipy 1.15, pandas 2.3 and plotly 6.0. Fixes
Expand Down
21 changes: 21 additions & 0 deletions docs/source/development/ep-02-typing.md
Original file line number Diff line number Diff line change
Expand Up @@ -1485,6 +1485,27 @@ All of these will be very simple wrappers around `first_derivative` and

## Benchmarking

```{note}
The implementation in version `0.6.0` follows this section with a few changes:

- A benchmark problem is split into two classes. A `BenchmarkFunction` is the core of a
problem (the objective function, optionally its derivative, the numbers of parameters
it supports and properties like differentiability). A `BenchmarkProblem` combines a
benchmark function with start parameters and optionally bounds, a known solution,
noise and scaling. The same function can be used in several problems, e.g. with good
and bad start parameters. Functions are defined by subclassing, i.e. `fun` is a method
and not an attribute. The problem type is set by applying the `mark` decorators to
the subclass.
- The solution of a `BenchmarkProblem` is optional and states whether it is exact or
only the best known value. Without an exact solution, plots and reports use the best
function value any of the compared optimizers found.
- `draw_noise` has no `size` argument because the size follows from `fval`.
- The result of the optimization is stored as `optimize_result` instead of `solution`
in `BenchmarkResult`, because `solution` is the known solution of a
`BenchmarkProblem`.
- The deprecated arguments are removed in version `0.7.0`.
```

### `get_benchmark_problems`

#### Current situation
Expand Down
Loading
Loading