Constrained Optimization BY Quadratic Approximations
Project description
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.8 or above.
Dependencies
The following Python packages are required by COBYQA:
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.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cobyqa-1.1.3.tar.gz.
File metadata
- Download URL: cobyqa-1.1.3.tar.gz
- Upload date:
- Size: 58.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a902c7794fa6094921dd9b507ea991921a78d86fd218de987382c6b17b55e96
|
|
| MD5 |
65a75e329b02674358db2cf3173879ca
|
|
| BLAKE2b-256 |
3a772ef6bcd5a3649db21486bc5a2588e626ca79d779ae645f416eada3a01cca
|
File details
Details for the file cobyqa-1.1.3-py3-none-any.whl.
File metadata
- Download URL: cobyqa-1.1.3-py3-none-any.whl
- Upload date:
- Size: 58.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62f80a19b7261fb55f386189e01511946eb5fefa28588af2d6356c683f659e2f
|
|
| MD5 |
2762369f5191001e8f49828e12b734cc
|
|
| BLAKE2b-256 |
59df884b671942f5f80139020eff55ccf354470d16983a54ddcb98cac18301f3
|