Skip to main content
https://img.shields.io/github/actions/workflow/status/cobyqa/cobyqa/build.yml?logo=github&style=for-the-badge https://img.shields.io/readthedocs/cobyqa/latest?logo=readthedocs&style=for-the-badge https://img.shields.io/codecov/c/github/cobyqa/cobyqa?logo=codecov&style=for-the-badge https://img.shields.io/pypi/v/cobyqa?logo=pypi&style=for-the-badge https://img.shields.io/pypi/dm/cobyqa?logo=pypi&style=for-the-badge https://img.shields.io/conda/v/conda-forge/cobyqa?logo=anaconda&style=for-the-badge&label=conda-forge https://img.shields.io/conda/d/conda-forge/cobyqa?logo=anaconda&style=for-the-badge&label=downloads

COBYQA, an acronym for Constrained Optimization BY Quadratic Approximations, is designed to supersede COBYLA as a general derivative-free optimization solver. It can handle unconstrained, bound-constrained, linearly constrained, and nonlinearly constrained problems. It uses only function values of the objective and constraint functions, if any. No derivative information is needed.

Documentation: https://www.cobyqa.com.

Installation

COBYQA can be installed for Python 3.10 or above.

Dependencies

The following Python packages are required by COBYQA:

  • NumPy 1.17.0 or higher, and

  • SciPy 1.10.0 or higher.

If you install COBYQA using pip or conda (see below), these dependencies will be installed automatically.

User installation

The easiest way to install COBYQA is using pip or conda. To install it using pip, run in a terminal or command window

pip install cobyqa

If you are using conda, you can install COBYQA from the conda-forge channel by running

conda install conda-forge::cobyqa

To check your installation, you can execute

python -c "import cobyqa; cobyqa.show_versions()"

If your python launcher is not python, you can replace it with the appropriate command (similarly for pip and conda). For example, you may need to use python3 instead of python and pip3 instead of pip.

Testing

To execute the test suite of COBYQA, you first need to install pytest. You can then run the test suite by executing

pytest --pyargs cobyqa

The test suite takes several minutes to run. It is unnecessary to run the test suite if you installed COBYQA using the recommended method described above.

Examples

The folder examples contains a few examples of how to use COBYQA. These files contain headers explaining what problems they solve.

Support

To report a bug or request a new feature, please open a new issue using the issue tracker.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cobyqa-1.1.4.tar.gz (59.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cobyqa-1.1.4-py3-none-any.whl (59.0 kB view details)

Uploaded Python 3

File details

Details for the file cobyqa-1.1.4.tar.gz.

File metadata

  • Download URL: cobyqa-1.1.4.tar.gz
  • Upload date:
  • Size: 59.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cobyqa-1.1.4.tar.gz
Algorithm Hash digest
SHA256 18a12bba19615877abb20d5719e1b88e0053def2d2e07f98c8bed16fedc7f4b0
MD5 36acec473d5ba61796b85ff6f90fc0be
BLAKE2b-256 58441ac6ade8fe22d482d238d0b34c99a65dc5e866d97ca66049695564cc53dd

See more details on using hashes here.

File details

Details for the file cobyqa-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: cobyqa-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 59.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for cobyqa-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 42da6827982fa947e2d9b4e8c7a046d1fe8508b4dc53a678fe5b153c3560ca32
MD5 6313d42071bacf6999da19c134f5efb8
BLAKE2b-256 1d88026c28795932969b125e3f4c35a531ec56130a99baf3368e41c4ed0747c4

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 files

1.1.3

2 files

1.1.1

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

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