Metadata-Version: 2.4
Name: optiprofiler
Version: 2.0.0
Summary: Benchmarking optimization solvers
Author-email: Cunxin Huang <cun-xin.huang@connect.polyu.hk>, "Tom M. Ragonneau" <tom.ragonneau@polyu.edu.hk>, Zaikun Zhang <zaikun.zhang@polyu.edu.hk>
Maintainer-email: Cunxin Huang <cun-xin.huang@connect.polyu.hk>, "Tom M. Ragonneau" <tom.ragonneau@polyu.edu.hk>, Zaikun Zhang <zaikun.zhang@polyu.edu.hk>
License: BSD 3-Clause License
        
        Copyright (c) 2023-2025, Cunxin Huang, 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.
        
Project-URL: homepage, https://www.optprof.com
Project-URL: documentation, http://www.optprof.com
Project-URL: source, https://github.com/optiprofiler/optiprofiler
Project-URL: download, https://pypi.org/project/optiprofiler/#files
Project-URL: tracker, https://github.com/optiprofiler/optiprofiler/issues
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Education
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Testing
Requires-Python: >=3.8
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: matplotlib>=3.5.2
Requires-Dist: numpy>=1.22.2
Requires-Dist: scipy>=1.10.0
Requires-Dist: pandas>=1.1.0
Requires-Dist: h5py>=3.0.0
Requires-Dist: pypdf>=3.8.0
Provides-Extra: doc
Requires-Dist: numpydoc==1.7.0; extra == "doc"
Requires-Dist: Sphinx==7.3.6; extra == "doc"
Requires-Dist: sphinx-copybutton==0.5.2; extra == "doc"
Requires-Dist: sphinx-book-theme==1.1.2; extra == "doc"
Requires-Dist: sphinx-design==0.5.0; extra == "doc"
Requires-Dist: sphinxcontrib-bibtex==2.6.2; extra == "doc"
Requires-Dist: sphinxcontrib-matlabdomain; extra == "doc"
Requires-Dist: sphinxext-opengraph; extra == "doc"
Provides-Extra: tests
Requires-Dist: jsonschema>=4.18; extra == "tests"
Requires-Dist: pytest; extra == "tests"
Requires-Dist: pytest-cov; extra == "tests"
Dynamic: license-file

OptiProfiler: a platform for benchmarking optimization solvers
==============================================================

|docs_badge| |codecov_badge|

|py_unit| |py_multi_os| |py_random| |py_stress|

|ml_unit| |ml_multi_os| |ml_random| |ml_stress|

.. |docs_badge| image:: https://img.shields.io/readthedocs/optiprofiler/latest?logo=readthedocs&style=for-the-badge
    :target: http://www.optprof.com
.. |codecov_badge| image:: https://img.shields.io/codecov/c/github/optiprofiler/optiprofiler?style=for-the-badge&logo=codecov
   :target: https://app.codecov.io/github/optiprofiler/optiprofiler/tree/main
.. |py_unit| image:: https://github.com/optiprofiler/optiprofiler/actions/workflows/python-unit_test.yml/badge.svg
   :target: https://github.com/optiprofiler/optiprofiler/actions/workflows/python-unit_test.yml
.. |py_multi_os| image:: https://github.com/optiprofiler/optiprofiler/actions/workflows/python-test_multi-os.yml/badge.svg
   :target: https://github.com/optiprofiler/optiprofiler/actions/workflows/python-test_multi-os.yml
.. |py_random| image:: https://github.com/optiprofiler/optiprofiler/actions/workflows/python-random_test.yml/badge.svg
   :target: https://github.com/optiprofiler/optiprofiler/actions/workflows/python-random_test.yml
.. |py_stress| image:: https://github.com/optiprofiler/optiprofiler/actions/workflows/python-stress_test.yml/badge.svg
   :target: https://github.com/optiprofiler/optiprofiler/actions/workflows/python-stress_test.yml
.. |ml_unit| image:: https://github.com/optiprofiler/optiprofiler/actions/workflows/matlab-unit_test.yml/badge.svg
   :target: https://github.com/optiprofiler/optiprofiler/actions/workflows/matlab-unit_test.yml
.. |ml_multi_os| image:: https://github.com/optiprofiler/optiprofiler/actions/workflows/matlab-test_multi-os.yml/badge.svg
   :target: https://github.com/optiprofiler/optiprofiler/actions/workflows/matlab-test_multi-os.yml
.. |ml_random| image:: https://github.com/optiprofiler/optiprofiler/actions/workflows/matlab-random_test.yml/badge.svg
   :target: https://github.com/optiprofiler/optiprofiler/actions/workflows/matlab-random_test.yml
.. |ml_stress| image:: https://github.com/optiprofiler/optiprofiler/actions/workflows/matlab-stress_test.yml/badge.svg
   :target: https://github.com/optiprofiler/optiprofiler/actions/workflows/matlab-stress_test.yml

🌐 **Website:** `www.optprof.com <https://www.optprof.com>`_

Python
------

Install OptiProfiler from PyPI:

.. code-block:: bash

    pip install optiprofiler

You can also install OptiProfiler from conda-forge:

.. code-block:: bash

    conda install conda-forge::optiprofiler

.. note::

    OptiProfiler includes the `S2MPJ
    <https://github.com/GrattonToint/S2MPJ>`_ problem library by default.
    Optional `PyCUTEst <https://github.com/optiprofiler/pycutest>`_, `SOLAR
    <https://github.com/optiprofiler/solar_python>`_, and experimental `RS13
    <https://github.com/optiprofiler/rs13>`_ providers are installed as
    independent distributions. PyCUTEst and CUTEst remain a separately managed
    system runtime; SOLAR and RS13 ship the problem definitions needed by their
    adapters.

Python package removal follows distribution ownership. Running
``python -m pip uninstall optiprofiler`` removes the core package and its
bundled S2MPJ contents, but it does not remove independently installed
problem-library distributions, their external runtimes, or their caches.
Those plugins require OptiProfiler and become usable again after the core is
reinstalled. Remove one adapter separately with, for example,
``python -m pip uninstall optiprofiler-pycutest``. This does not remove the
independently managed PyCUTEst or CUTEst runtime and problem definitions.
The complete workflow for installing, discovering, updating, and removing
providers is documented under ``doc/source/user/problem_libraries/``.

MATLAB
------

Download the MATLAB-only ZIP from the OptiProfiler release page and extract it
to a writable directory. In MATLAB, navigate to the extracted directory, where
``setup.m`` is located, and run:

.. code-block:: matlab

    setup

If the optional SOLAR MATLAB adapter is not installed locally, ``setup``
asks whether to download it. For non-interactive scripts, pass the choice
explicitly:

.. code-block:: matlab

    setup(struct('install_solar', true))
    setup(struct('install_solar', false))

When accepted or requested, ``setup`` clones `optiprofiler/solar_matlab
<https://github.com/optiprofiler/solar_matlab>`_ under
``prefdir/optiprofiler/problem_libraries`` by default, adds the adapter root to
the MATLAB path, and registers its canonical functions. Pass
``problem_library_root`` to choose another writable parent directory. The
adapter is not a submodule of the OptiProfiler repository. Passing
``install_solar=false`` skips the prompt and optional download when the adapter
is not installed locally, which is useful in CI and batch scripts.
The public problem-library name remains ``solar``; use ``plibs={'solar'}``
in MATLAB benchmark options. The library-specific ``solar_select`` and
``solar_load`` functions remain callable after setup. Generic code may instead
call ``library = resolveProblemLibrary('solar')`` and then use
``library.select`` and ``library.load``.

To detach an optional or custom library without deleting its source, runtime,
cache, or compiled artifacts, call
``unregisterProblemLibrary('solar')``. Running ``setup uninstall`` removes the
OptiProfiler core and setup-managed search paths, including registered adapter
roots, but preserves external-library registrations and data.
The complete workflow, including storage locations, updates, and the
difference between detaching and deleting files, is documented under
``doc/source/user/problem_libraries/``.
