cobyqa


Namecobyqa JSON
Version 1.1.1 PyPI version JSON
download
home_page
SummaryConstrained Optimization BY Quadratic Approximations
upload_time2024-03-12 07:46:31
maintainer
docs_urlNone
author
requires_python>=3.8
licenseBSD 3-Clause License Copyright (c) 2021-2024, Tom M. Ragonneau and Zaikun Zhang Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords blackbox-optimization constrained-optimization derivative-free-optimization hyperparameter-optimization nonlinear-optimization numerical-optimization optimization optimization-algorithms optimization-methods optimization-tools simulation-based-optimization unconstrained-optimization
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            COBYQA: Constrained Optimization BY Quadratic Approximations
============================================================

.. image:: https://img.shields.io/github/actions/workflow/status/cobyqa/cobyqa/build.yml?logo=github&style=for-the-badge
    :target: https://github.com/cobyqa/cobyqa/actions/workflows/build.yml

.. image:: https://img.shields.io/readthedocs/cobyqa/latest?logo=readthedocs&style=for-the-badge
    :target: https://www.cobyqa.com/

.. image:: https://img.shields.io/codecov/c/github/cobyqa/cobyqa?logo=codecov&style=for-the-badge
    :target: https://codecov.io/gh/cobyqa/cobyqa/

.. image:: https://img.shields.io/pypi/v/cobyqa?logo=pypi&style=for-the-badge
    :target: https://pypi.org/project/cobyqa/

.. image:: https://img.shields.io/pypi/dm/cobyqa?logo=pypi&style=for-the-badge
    :target: https://pypi.org/project/cobyqa/

.. image:: https://img.shields.io/conda/v/conda-forge/cobyqa?logo=anaconda&style=for-the-badge&label=conda-forge
    :target: https://anaconda.org/conda-forge/cobyqa

.. image:: https://img.shields.io/conda/d/conda-forge/cobyqa?logo=anaconda&style=for-the-badge&label=downloads
    :target: https://anaconda.org/conda-forge/cobyqa

COBYQA, an acronym for *Constrained Optimization BY Quadratic Approximations*, is designed to supersede `COBYLA <https://docs.scipy.org/doc/scipy/reference/optimize.minimize-cobyla.html>`_ 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 <https://www.python.org>`_.

Dependencies
~~~~~~~~~~~~

The following Python packages are required by COBYQA:

* `NumPy <https://www.numpy.org>`_ 1.17.0 or higher, and
* `SciPy <https://www.scipy.org>`_ 1.10.0 or higher.

If you install COBYQA using ``pip`` or ``conda`` (see below), these dependencies will be installed automatically.
More dependencies are required to run the test suite and some examples given in the folder ``examples``.
See the relevant sections below for more details.

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

.. code:: bash

    pip install cobyqa

If you are using ``conda``, you can install COBYQA from the `conda-forge <https://anaconda.org/conda-forge/cobyqa>`_ channel by running

.. code:: bash

    conda install conda-forge::cobyqa

To check your installation, you can execute

.. code:: bash

    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

.. code:: bash

    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.
To run ``powell2015.py``, you first need to install ``matplotlib``.
These files contains 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 <https://github.com/cobyqa/cobyqa/issues>`_.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "cobyqa",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "\"Tom M. Ragonneau\" <tom.ragonneau@polyu.edu.hk>, Zaikun Zhang <zaikun.zhang@polyu.edu.hk>",
    "keywords": "blackbox-optimization,constrained-optimization,derivative-free-optimization,hyperparameter-optimization,nonlinear-optimization,numerical-optimization,optimization,optimization-algorithms,optimization-methods,optimization-tools,simulation-based-optimization,unconstrained-optimization",
    "author": "",
    "author_email": "\"Tom M. Ragonneau and Zaikun Zhang\" <cobyqa@python.org>",
    "download_url": "https://files.pythonhosted.org/packages/06/52/084b2740e045c7aa9b29374388de9f572f95b0b3544f4e37ad1c9996d026/cobyqa-1.1.1.tar.gz",
    "platform": null,
    "description": "COBYQA: Constrained Optimization BY Quadratic Approximations\n============================================================\n\n.. image:: https://img.shields.io/github/actions/workflow/status/cobyqa/cobyqa/build.yml?logo=github&style=for-the-badge\n    :target: https://github.com/cobyqa/cobyqa/actions/workflows/build.yml\n\n.. image:: https://img.shields.io/readthedocs/cobyqa/latest?logo=readthedocs&style=for-the-badge\n    :target: https://www.cobyqa.com/\n\n.. image:: https://img.shields.io/codecov/c/github/cobyqa/cobyqa?logo=codecov&style=for-the-badge\n    :target: https://codecov.io/gh/cobyqa/cobyqa/\n\n.. image:: https://img.shields.io/pypi/v/cobyqa?logo=pypi&style=for-the-badge\n    :target: https://pypi.org/project/cobyqa/\n\n.. image:: https://img.shields.io/pypi/dm/cobyqa?logo=pypi&style=for-the-badge\n    :target: https://pypi.org/project/cobyqa/\n\n.. image:: https://img.shields.io/conda/v/conda-forge/cobyqa?logo=anaconda&style=for-the-badge&label=conda-forge\n    :target: https://anaconda.org/conda-forge/cobyqa\n\n.. image:: https://img.shields.io/conda/d/conda-forge/cobyqa?logo=anaconda&style=for-the-badge&label=downloads\n    :target: https://anaconda.org/conda-forge/cobyqa\n\nCOBYQA, an acronym for *Constrained Optimization BY Quadratic Approximations*, is designed to supersede `COBYLA <https://docs.scipy.org/doc/scipy/reference/optimize.minimize-cobyla.html>`_ as a general derivative-free optimization solver.\nIt can handle unconstrained, bound-constrained, linearly constrained, and nonlinearly constrained problems.\nIt uses only function values of the objective and constraint functions, if any.\nNo derivative information is needed.\n\n**Documentation:** https://www.cobyqa.com.\n\nInstallation\n------------\n\nCOBYQA can be installed for `Python 3.8 or above <https://www.python.org>`_.\n\nDependencies\n~~~~~~~~~~~~\n\nThe following Python packages are required by COBYQA:\n\n* `NumPy <https://www.numpy.org>`_ 1.17.0 or higher, and\n* `SciPy <https://www.scipy.org>`_ 1.10.0 or higher.\n\nIf you install COBYQA using ``pip`` or ``conda`` (see below), these dependencies will be installed automatically.\nMore dependencies are required to run the test suite and some examples given in the folder ``examples``.\nSee the relevant sections below for more details.\n\nUser installation\n~~~~~~~~~~~~~~~~~\n\nThe easiest way to install COBYQA is using ``pip`` or ``conda``.\nTo install it using ``pip``, run in a terminal or command window\n\n.. code:: bash\n\n    pip install cobyqa\n\nIf you are using ``conda``, you can install COBYQA from the `conda-forge <https://anaconda.org/conda-forge/cobyqa>`_ channel by running\n\n.. code:: bash\n\n    conda install conda-forge::cobyqa\n\nTo check your installation, you can execute\n\n.. code:: bash\n\n    python -c \"import cobyqa; cobyqa.show_versions()\"\n\nIf your python launcher is not ``python``, you can replace it with the appropriate command (similarly for ``pip`` and ``conda``).\nFor example, you may need to use ``python3`` instead of ``python`` and ``pip3`` instead of ``pip``.\n\nTesting\n~~~~~~~\n\nTo execute the test suite of COBYQA, you first need to install ``pytest``.\nYou can then run the test suite by executing\n\n.. code:: bash\n\n    pytest --pyargs cobyqa\n\nThe test suite takes several minutes to run.\nIt is unnecessary to run the test suite if you installed COBYQA using the recommended method described above.\n\nExamples\n--------\n\nThe folder ``examples`` contains a few examples of how to use COBYQA.\nTo run ``powell2015.py``, you first need to install ``matplotlib``.\nThese files contains headers explaining what problems they solve.\n\nSupport\n-------\n\nTo report a bug or request a new feature, please open a new issue using the `issue tracker <https://github.com/cobyqa/cobyqa/issues>`_.\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2021-2024, Tom M. Ragonneau and Zaikun Zhang  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "Constrained Optimization BY Quadratic Approximations",
    "version": "1.1.1",
    "project_urls": {
        "documentation": "https://www.cobyqa.com",
        "download": "https://pypi.org/project/cobyqa/#files",
        "homepage": "https://www.cobyqa.com",
        "source": "https://github.com/cobyqa/cobyqa",
        "tracker": "https://github.com/cobyqa/cobyqa/issues"
    },
    "split_keywords": [
        "blackbox-optimization",
        "constrained-optimization",
        "derivative-free-optimization",
        "hyperparameter-optimization",
        "nonlinear-optimization",
        "numerical-optimization",
        "optimization",
        "optimization-algorithms",
        "optimization-methods",
        "optimization-tools",
        "simulation-based-optimization",
        "unconstrained-optimization"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "22aa2ebf198eeffc08820c8676d6004f775c46e9bbe3c70199f905e8e088e28a",
                "md5": "e7a436e2c594617ad40ba8e2e278e975",
                "sha256": "9a90e69db4b2ad56c30f88d862c99e1efb47e2ba10ee743b7fa84157ac364855"
            },
            "downloads": -1,
            "filename": "cobyqa-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e7a436e2c594617ad40ba8e2e278e975",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 56912,
            "upload_time": "2024-03-12T07:46:29",
            "upload_time_iso_8601": "2024-03-12T07:46:29.273428Z",
            "url": "https://files.pythonhosted.org/packages/22/aa/2ebf198eeffc08820c8676d6004f775c46e9bbe3c70199f905e8e088e28a/cobyqa-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0652084b2740e045c7aa9b29374388de9f572f95b0b3544f4e37ad1c9996d026",
                "md5": "89e68d8fe6498ef3ac36ce4ad72b4770",
                "sha256": "5c108b9ac7e0184d6d7003d6b4760550c74659597080d042eaba49e8f483c18c"
            },
            "downloads": -1,
            "filename": "cobyqa-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "89e68d8fe6498ef3ac36ce4ad72b4770",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 57025,
            "upload_time": "2024-03-12T07:46:31",
            "upload_time_iso_8601": "2024-03-12T07:46:31.350899Z",
            "url": "https://files.pythonhosted.org/packages/06/52/084b2740e045c7aa9b29374388de9f572f95b0b3544f4e37ad1c9996d026/cobyqa-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-12 07:46:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cobyqa",
    "github_project": "cobyqa",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "cobyqa"
}
        
Elapsed time: 0.75206s