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.0

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.0
File Actions
everest_optimizers-0.5.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for everest_optimizers-0.5.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
everest_optimizers-0.5.0-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.0-cp314-cp314-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
everest_optimizers-0.5.0-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details for everest_optimizers-0.5.0-cp314-cp314-macosx_15_0_arm64.whl
everest_optimizers-0.5.0-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.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
everest_optimizers-0.5.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ ARM64, Linux glibc 2.28+ ARM64 Details for everest_optimizers-0.5.0-cp313-cp313-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
everest_optimizers-0.5.0-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details for everest_optimizers-0.5.0-cp313-cp313-macosx_15_0_arm64.whl
everest_optimizers-0.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for everest_optimizers-0.5.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
everest_optimizers-0.5.0-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.0-cp312-cp312-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
everest_optimizers-0.5.0-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details for everest_optimizers-0.5.0-cp312-cp312-macosx_15_0_arm64.whl
everest_optimizers-0.5.0-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.0-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
everest_optimizers-0.5.0-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.0-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl
everest_optimizers-0.5.0-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details for everest_optimizers-0.5.0-cp311-cp311-macosx_15_0_arm64.whl

Total release size: 38.8 MB

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

Download URL everest_optimizers-0.5.0-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
386bc6103909aa1882eaa1ff055e3cb85b013958905c9c26524c7e94847af0cf
BLAKE2b-256 checksum
How to use checksums
e5c0ebbccc64cc1ef8ea371c2388bac4ee47c2d83890fef47abf4ecbc028a946
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-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
8987e8493fb1a0bf1bdf764bc2f773d40e357ea9a3f1cd8389e843b6efa555d0
BLAKE2b-256 checksum
How to use checksums
3ea76ff5aea56df1f4df354b9e78f25d8d456663351955e99709aa2b48bb0973
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-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
3070bec0d2082af0c72895ca5812c4f9f2ac182ce80b3de79f7ebfa0e445cd1d
BLAKE2b-256 checksum
How to use checksums
18560896b545b25f9810d160026c29e213c8ca4e143b7bf2727b56401c2651a1
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-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
189302b7d79100e5c7c32ef7916837c750f1d5e29a23f40b62a7304cdd1ab675
BLAKE2b-256 checksum
How to use checksums
0c4213bfeca19d88805923e268a82e2a7e4e94bc4ce2bd6335ee8e4dfaa61d9a
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-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
e25836b995145f9b14799f3163604d8398ba8f61a6f7cf7083701441c83165f5
BLAKE2b-256 checksum
How to use checksums
5569cdcf4533f88ab19a5a2166d69c87e63be1308eec8e3b23fde1e8625075e2
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-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
ef1452bd3b7c4f254ee20ecb66638a16b68e34fbd48c6fe901ca95f6fe01d8a6
BLAKE2b-256 checksum
How to use checksums
9710b53ca349eb13bfc10399a76cfc8b563ffa23b8e117a8bf4969d5ba4cfd1e
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-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
7a94e357f91aed17023524ed73d4fe56f5ef0617d7d95c56526b4efd4bc50a60
BLAKE2b-256 checksum
How to use checksums
dad7df0516f09bbb2bd5624a54bd56e611e6f84fb2b356c57a0ebfda42ef2113
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-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
79ac1c1539adb0aa1cbe2051dc92a91cca6778e736946d38832a74e265d66597
BLAKE2b-256 checksum
How to use checksums
30315c540685245c1c6346307295c267bfcf29766ab51e5b0aeb3ad25250eb82
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-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
9614587ea63b29390cf23fbcfb11b345da58ac8ef51beb9b440b928392ec0293
BLAKE2b-256 checksum
How to use checksums
b5dd5083c3fb5fd882b12733c83d59598ac69adc7f0796c9b82c9e90c7f1237d
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-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
6a5ca0c4d81d2bf9f026b4253711362d083c57edaa268ee952f425c2482ed303
BLAKE2b-256 checksum
How to use checksums
8115b18039634de199509b2d1aa572a169993fcaefa2b2223a255cae3fe66d2f
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-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
d722bc9d4b32bd2fab8e1b63c5d54557805a9bbb117b10d06ac9fb0ee30596a3
BLAKE2b-256 checksum
How to use checksums
38e7b07c5f1a506a1b60f92a6b621dd30c99184b7869f8d943a7619348381ad3
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 Nov 30, 2026.

Transparency log

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

Download URL everest_optimizers-0.5.0-cp311-cp311-macosx_15_0_arm64.whl
Size 427.1 kB
Tags CPython 3.11 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
e4b3105e71d314454ba109a1e1e350e402963da4ab46258ed2a85450b0f649ac
BLAKE2b-256 checksum
How to use checksums
5424eaca4d5454eb4b282e2bcd43f994659ff29ca10d0638af943cf064ac455e
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 Nov 30, 2026.

Transparency log

Security for everest-optimizers 0.5.0

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.0-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 Nov 30, 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