A derivative-free solver for general nonlinear optimization
Project description
COBYQA, named after Constrained Optimization BY Quadratic Approximations, is a derivative-free solver for general nonlinear optimization. It can handle unconstrained, bound-constrained, linearly constrained, and nonlinearly constrained problems. It uses only function values of the objective function and nonlinear constraint functions, if any. No derivative information is needed.
The current release of COBYQA is distributed under the BSD-3-Clause license.
Documentation: https://www.cobyqa.com/
Installation
COBYQA can be installed on Python 3.8 or above.
Dependencies
The following Python packages are required by COBYQA:
User installation
The easiest way to install COBYQA is using pip
python -m pip install cobyqa
To check your installation, you can execute
python -c "import cobyqa; cobyqa.show_versions()"
Testing
To execute the test suite of COBYQA, you first need to install the package as
python -m pip install cobyqa[tests]
You can then run the test suite by executing
python -m pytest --pyargs cobyqa
Examples
The folder examples contains a few examples of how to use COBYQA. To run powell2015.py, you first need to install the package as
python -m pip install cobyqa[examples]
This will install matplotlib alongside COBYQA.
Support
To report a bug or request a new feature, please open a new issue using the issue tracker.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cobyqa-1.0.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4226159f057640ff652c32b46faea9b1a3be34dcb278319762397b9a0deb0eca |
|
MD5 | 766f656b0443124adcbb0ff845f6b45b |
|
BLAKE2b-256 | e278cbfba5715d74f087a9244247410e14121518d0e3aff30f1ca92f14459e93 |