Skip to main content

everest-optimizers

The everest-optimizers repository wraps optimization algorithms from the OPT++ library.

Getting Started

Installation

Install using pip (or compatible tools):

pip install .[test]

Usage

minimize runs the optpp_q_newton method. It requires a combined evaluator function for the objective and any nonlinear constraints.

import numpy as np

from everest_optimizers import EvaluationMode, minimize


def evaluate(x, mode):
    delta = x - [2.0, -1.0]
    values = np.array([delta @ delta]) if mode & EvaluationMode.VALUES else None
    gradients = 2 * delta[np.newaxis, :] if mode & EvaluationMode.GRADIENTS else None
    return values, gradients


x, status = minimize(np.zeros(2), evaluate=evaluate)
print(x)

The evaluator receives (x, mode) and returns (values, gradients). EvaluationMode.VALUES requests values, EvaluationMode.GRADIENTS requests gradients, and EvaluationMode.BOTH requests both. Return None for a part that was not requested.

For n variables and m nonlinear constraints, values has shape (1 + m,) and gradients has shape (1 + m, n). The first entry or row belongs to the objective; the remaining entries or rows belong to the nonlinear constraints.

minimize stores every evaluation until it returns. The evaluator is not called for a request when one stored evaluation of exactly the same point contains everything that is requested. Otherwise the evaluator is called for the complete request and its result is stored. Stored evaluations of the same point are not combined: if a point has one stored evaluation of values and another of gradients, a request for both calls the evaluator. The evaluator must return the same result each time it is called for the same point.

Bounds and constraints are given as NumPy arrays:

  • bounds is a pair (lower, upper) of variable bounds, broadcast to the shape of the initial point. Infinite values mean that there is no bound.
  • linear_constraints is a triple (coefficients, lower, upper), with coefficients of shape (k, n) and bounds of shape (k,). A row with equal finite bounds is an equality.
  • nonlinear_equalities is a boolean array with one entry per nonlinear constraint. A constraint value c must satisfy c = 0 where the entry is True, and c >= 0 otherwise.

The initial point is passed to OPT++ unchanged. An initial point outside the bounds or constraints may lead to an infeasible result. All arguments except the initial point are keyword-only.

minimize returns a tuple (x, status) with the final point and the OPT++ termination code, which is positive if the optimizer converged.

Options

minimize selects and configures an OPT++ algorithm: an interior-point method for problems with linear or nonlinear constraints, a bound-constrained quasi-Newton method for problems with finite variable bounds, a quasi-Newton method for unconstrained problems with fewer than 100 variables, and a limited-memory BFGS method otherwise. Bounds with a magnitude of 1e30 or more count as absent.

It accepts the options max_iterations, max_function_evaluations, convergence_tolerance, gradient_tolerance, max_step, search_method, merit_function, steplength_to_boundary, centering_parameter, speculative, and output. Supply these as a dictionary keyed by option name, such as {"max_iterations": 50, "speculative": True}. Unspecified options use their default values. The output_file keyword argument can name a Path to receive OPT++ output.

steplength_to_boundary must be a number greater than 0 and at most 1.

"output": "debug" turns on the OPT++ debug output; the other output levels have no effect. Without output_file, OPT++ output is discarded. Reports use decimal floating-point notation, such as 5.0000e+00.

search_method accepts value_based_line_search, gradient_based_line_search, and trust_region. The tr_pds strategy is disabled because its OPT++ implementation retains process-wide state between optimization runs.

max_function_evaluations is compared with the number of objective-value requests that OPT++ makes. OPT++ does not count a request that its most recent objective evaluation already covers. It does count a request that minimize answers from the stored evaluations described above, so this number can exceed the number of evaluator calls. OPT++ checks it between iterations, so it is not a hard cap.

Tests

To run tests, execute:

pytest

Run pyoptpp tests with address sanitizer on

Configure pyoptpp with address sanitizer

cmake -Bbuild -S. -DDEBUG_MEMORY=1

Build

cmake --build build

Copy the module to the virtual environment. so file might have a slightly different name depending on OS/python version

cp build/src/optpp_python/_pyoptpp.cpython-313-x86_64-linux-gnu.so .venv/lib/python3.13/site-packages/everest_optimizers/_pyoptpp.cpython-313-x86_64-linux-gnu.so

Run the OPTPP tests. The preload should point to your locally installed libasan.so.

LD_PRELOAD=/usr/lib64/libasan.so.8.0.0 pytest "tests" -svvv --cache-clear

Linting and Formatting

Python:

  • We use ruff for python linting:
ruff format .
ruff check --select ALL

C++:

  • We use clang-format for c++ formatting:
clang-format -i your_file.cpp

Metadata

Release files for everest-optimizers 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for everest-optimizers 0.5.1
File Actions
everest_optimizers-0.5.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for everest_optimizers-0.5.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
everest_optimizers-0.5.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 Details for everest_optimizers-0.5.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
everest_optimizers-0.5.1-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details for everest_optimizers-0.5.1-cp314-cp314-macosx_15_0_arm64.whl
everest_optimizers-0.5.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for everest_optimizers-0.5.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
everest_optimizers-0.5.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 Details for everest_optimizers-0.5.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
everest_optimizers-0.5.1-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details for everest_optimizers-0.5.1-cp313-cp313-macosx_15_0_arm64.whl
everest_optimizers-0.5.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for everest_optimizers-0.5.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
everest_optimizers-0.5.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ ARM64, Linux glibc 2.27+ ARM64 Details for everest_optimizers-0.5.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
everest_optimizers-0.5.1-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details for everest_optimizers-0.5.1-cp312-cp312-macosx_15_0_arm64.whl
everest_optimizers-0.5.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for everest_optimizers-0.5.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
everest_optimizers-0.5.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 Details for everest_optimizers-0.5.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
everest_optimizers-0.5.1-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details for everest_optimizers-0.5.1-cp311-cp311-macosx_15_0_arm64.whl

Total release size: 38.8 MB

Release files / everest_optimizers-0.5.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL everest_optimizers-0.5.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 5.1 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b7664f1e197a368436b63aceb01f6fc2da27f1a1ae455a237f9ff3d0bacd9366
BLAKE2b-256 checksum
How to use checksums
ba7bbbdb457615ed4238eeac5ed879924b92b7273d481c12a2a78c6b74e3c3b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL everest_optimizers-0.5.1-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 4.1 MB
Tags CPython 3.14 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
61f85ab9c8a2937454bf682b85150379e0d943ca9a570dba27aae8f600c4423d
BLAKE2b-256 checksum
How to use checksums
fd4ffccfc6e366e35bc449a666697051911c5b7f937185014222401b3cea561a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp314-cp314-macosx_15_0_arm64.whl

Download URL everest_optimizers-0.5.1-cp314-cp314-macosx_15_0_arm64.whl
Size 428.3 kB
Tags CPython 3.14 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
79c9a28ab9a779c31387b16ebe73d045e2aec229afa3296d8d01eb883653a738
BLAKE2b-256 checksum
How to use checksums
49cef72fe864739133d9ec051c117c175c4351ad7ce1d7e661c9b38f332c0ee3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL everest_optimizers-0.5.1-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 5.1 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7cdc1290f3c6888b4475c4952995b876f936baeb3a75de3430244e90a5c6363a
BLAKE2b-256 checksum
How to use checksums
fad5675260882512a40edac61a9720fa6d4b1ec0e18d78f80cc9cdd33b599e9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL everest_optimizers-0.5.1-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 4.1 MB
Tags CPython 3.13 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
cfb965ec3e49ae0f303a9c572d2d07eb35cfed10787084996cbb0d3f5e44b51b
BLAKE2b-256 checksum
How to use checksums
fbf10e09c5d114f43d327f57ce94e5fcdc0720aa2d866ab982ceeb41ffda991d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp313-cp313-macosx_15_0_arm64.whl

Download URL everest_optimizers-0.5.1-cp313-cp313-macosx_15_0_arm64.whl
Size 427.7 kB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
e4f45e27984dc1d378505ca3bc018f4996522a3fc0bcf92d28b7c3d90ff2b21b
BLAKE2b-256 checksum
How to use checksums
bc5d414539a7de6dcc96bd9240da18975097a62a3558cd50e2976f7594010950
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL everest_optimizers-0.5.1-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 5.1 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
572844963715c34132e63df2bbbb803dc9db49c8d199192f12ce90fd0c7fbc1f
BLAKE2b-256 checksum
How to use checksums
8136b3d5be5cc855958134288c8c025340ccde422c48541aa7f94ec9efe59066
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL everest_optimizers-0.5.1-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 4.1 MB
Tags CPython 3.12 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
59837a5b922e8c0fa2ff95f6332c4914dc50de5ea53f58d9c0da0d1b8f151afa
BLAKE2b-256 checksum
How to use checksums
74e86d5ddfffcba766b5beab1bd18ee6ea0dd7d8098a096043f29edf349c1035
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp312-cp312-macosx_15_0_arm64.whl

Download URL everest_optimizers-0.5.1-cp312-cp312-macosx_15_0_arm64.whl
Size 427.7 kB
Tags CPython 3.12 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
ccb32f325fa5d1e29af4c84a8240e183f1c2c6893bfaa780ee6cf3963e55a394
BLAKE2b-256 checksum
How to use checksums
662c6796cec98401e0dea538ef89805ef2d190cf2319e03f651d1853627ea487
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL everest_optimizers-0.5.1-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 5.1 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e70042b0a109f50197cdd851167da8afe2f0ef95471dc9adc4b62118db0b785f
BLAKE2b-256 checksum
How to use checksums
2093be438cc9b9b7aa554a3067e974ef11de0cbcb33acae414bd0f57502eacc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl

Download URL everest_optimizers-0.5.1-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
Size 4.1 MB
Tags CPython 3.11 Linux glibc 2.27+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
1aa6744be5fed79b474d6bdaf1657a0dcf57c369b6f5758611873ab28269581e
BLAKE2b-256 checksum
How to use checksums
0061a19d57b83200df356029cea45be1c51fe64859a4f4ff08878c01c0fe3abf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / everest_optimizers-0.5.1-cp311-cp311-macosx_15_0_arm64.whl

Download URL everest_optimizers-0.5.1-cp311-cp311-macosx_15_0_arm64.whl
Size 427.2 kB
Tags CPython 3.11 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
6383265150a0708c8bdb3afde67825067b3f190a4cd837e3326bfb0235e513b5
BLAKE2b-256 checksum
How to use checksums
4ca7b7e129561433fb16703f00f3bae6d2460ba69def51e73aba9daff8a439e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for everest-optimizers 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 12 files in this release have been uploaded with provenance metadata.

Select from 12 files

Attestation for everest_optimizers-0.5.1-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page