PyCUTEst

PyCUTEst: an open source Python package of optimization test problems - Published in JOSS (2022)

https://github.com/jfowkes/pycutest

Science Score: 100.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 11 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
    4 of 7 committers (57.1%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software

Keywords

optimization-tools

Keywords from Contributors

evolutionary-algorithms
Last synced: 4 months ago · JSON representation ·

Repository

Python interface to CUTEst

Basic Info
Statistics
  • Stars: 35
  • Watchers: 2
  • Forks: 11
  • Open Issues: 16
  • Releases: 15
Topics
optimization-tools
Created over 7 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Citation Support

README.rst

====================================================================================================================================
PyCUTEst: A Python interface to the CUTEst Optimization Test Environment |License| |Build Status| |PyPI Version| |Downloads| |Paper|
====================================================================================================================================

PyCUTEst is a Python interface to `CUTEst `_, a Fortran package for testing optimization software. It is based on the `interface originally developed for CUTEr `_ by `Prof. Arpad Buermen `_.

Full details on how to use PyCUTEst are available in the `documentation `_, and a brief summary of the package's goals is available in the `PyCUTEst journal article `_.

Requirements
------------
PyCUTEst requires the following software to be installed:

* Python 3 (http://www.python.org/)
* Python 3 Headers (:code:`apt install python3-dev` on Ubuntu, already included on macOS)
* CUTEst (see below)

**Please Note:** Currently PyCUTEst only supports Mac and Linux. For Windows 10 (or later), PyCUTEst can be used through the `Windows Subsystem for Linux `_, following the Linux installation instructions.

Installing CUTEst on Linux
--------------------------
These instructions do not include installation of the MATLAB interface. You will need to install four packages: archdefs, SIFDecode, CUTEst and MASTSIF. To keep things simple, install all four packages in the same directory:

 .. code-block:: bash

    $ mkdir cutest
    $ cd cutest
    $ git clone https://github.com/ralna/ARCHDefs ./archdefs
    $ git clone https://github.com/ralna/SIFDecode ./sifdecode
    $ git clone https://github.com/ralna/CUTEst ./cutest
    $ git clone https://bitbucket.org/optrove/sif ./mastsif

Note that :code:`mastsif` contains all the test problem definitions and
is therefore quite large. If you're short on space you may want to copy
only the ``*.SIF`` files for the problems you wish to test on.

Next set the following environment variables in your :code:`~/.bashrc` to point to the installation directories used above:

 .. code-block:: bash

    # CUTEst
    export ARCHDEFS=/path/to/cutest/archdefs/
    export SIFDECODE=/path/to/cutest/sifdecode/
    export MASTSIF=/path/to/cutest/mastsif/
    export CUTEST=/path/to/cutest/cutest/
    export MYARCH="pc64.lnx.gfo"

Now we are ready to install CUTEst in double precision (requires :code:`gfortran` and :code:`gcc`):

 .. code-block:: bash

    $ source ~/.bashrc # load above environment variables
    $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/jfowkes/pycutest/master/.install_cutest.sh)"

And CUTEst should run from here. To test that the installation works, issue the commands:

 .. code-block:: bash

    $ cd $SIFDECODE/src ; make -f $SIFDECODE/makefiles/$MYARCH test
    $ cd $CUTEST/src ; make -f $CUTEST/makefiles/$MYARCH test

**Please Note:** *currently PyCUTEst only supports gfortran and uses the default version on your path (as returned by* :code:`gfortran -v` *). Please ensure this is the same version that you install CUTEst with above otherwise you may experience segmentation faults.*

Installing CUTEst on Mac
------------------------
Install CUTEst using Homebrew as detailed below (installing CUTEst manually on Mac is not supported). First it is important to ensure that you have the latest version of Xcode Command Line Tools installed (or the latest version of Xcode), please ensure this is the case by following `this guide `_. Now install the Homebrew package manager:

 .. code-block:: bash

    $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Then you can easily install CUTEst:

 .. code-block:: bash

    $ brew tap optimizers/cutest
    $ brew install cutest --without-single --with-matlab # if using Matlab interface
    $ brew install mastsif  # if you want all the test problems
    $ for f in "archdefs" "mastsif" "sifdecode" "cutest"; do \
    $   echo ". $(brew --prefix $f)/$f.bashrc" >> ~/.bashrc; \
    $ done

**Anaconda Users:** *please ensure that* :code:`~/.bashrc` *is sourced in your conda environment (you can do this with the command* :code:`source ~/.bashrc` *) otherwise you may encounter errors using PyCUTEst.*

**Please Note:** *you may see warnings such as* :code:`ld: warning: object file (RANGE.o) was built for newer macOS version (11.5) than being linked (10.15)` *. To suppress these warnings please set the environment variable* :code:`MACOSX_DEPLOYMENT_TARGET` *to your current macOS version (e.g.* :code:`export MACOSX_DEPLOYMENT_TARGET=11.5` *in this example, you can make this permanent by adding it to your* :code:`~/.bashrc` *file).*

Installing PyCUTEst
-------------------
For easy installation, use `pip `_:

 .. code-block:: bash

    $ pip install pycutest

Note that if an older install of PyCUTEst is present on your system you can use:

 .. code-block:: bash

    $ pip install --upgrade pycutest

to upgrade PyCUTEst to the latest version.

You will then need to create a folder which will store all your compiled problems:

 .. code-block:: bash

    $ mkdir pycutest_cache

And set an environment variable to tell PyCUTEst about this directory, by adding to your :code:`~/.bashrc` file:

 .. code-block:: bash

    export PYCUTEST_CACHE="/path/to/pycutest_cache"

If you do not set this environment variable, then PyCUTEst will create a cache folder of compiled problems inside your current working directory.

Note that you can uninstall PyCUTEst as follows:

 .. code-block:: bash

    $ pip uninstall pycutest

Support
-------
Please ask any questions or report problems using GitHub's issue tracker.

Bugs
----
Please report any bugs using GitHub's issue tracker.

Citing
------
To cite PyCUTEst, please use the following reference:

`J. Fowkes, L. Roberts, and Á. Bűrmen, (2022). PyCUTEst: an open source Python package of optimization test problems. Journal of Open Source Software, 7(78), 4377, https://doi.org/10.21105/joss.04377`

In BibTeX, the citation is:

.. code-block::

    @article{PyCUTEst2022,
        doi = {10.21105/joss.04377},
        url = {https://doi.org/10.21105/joss.04377},
        year = {2022},
        publisher = {The Open Journal},
        volume = {7},
        number = {78},
        pages = {4377},
        author = {Jaroslav Fowkes and Lindon Roberts and Árpád Bűrmen},
        title = {PyCUTEst: an open source Python package of optimization test problems},
        journal = {Journal of Open Source Software}
    }

Contributing
------------
We welcome contributions to PyCUTEst, please see :code:`CONTRIBUTING.md`.

License
-------
This package is released under the GNU GPL license.

.. |License| image::  https://img.shields.io/badge/License-GPL%20v3-blue.svg
             :target: https://www.gnu.org/licenses/gpl-3.0
             :alt: GNU GPL v3 License
.. |Build Status| image::  https://img.shields.io/github/actions/workflow/status/jfowkes/pycutest/test.yml?branch=master
                  :target: https://github.com/jfowkes/pycutest/actions/workflows/test.yml
                  :alt: Build status
.. |PyPI Version| image:: https://img.shields.io/pypi/v/pycutest.svg
                  :target: https://pypi.python.org/pypi/pycutest
                  :alt: PyPI version
.. |Downloads| image:: https://static.pepy.tech/personalized-badge/pycutest?period=total&units=international_system&left_color=black&right_color=green&left_text=Downloads
               :target: https://pepy.tech/project/pycutest
               :alt: Total downloads
.. |Paper| image:: https://joss.theoj.org/papers/10.21105/joss.04377/status.svg
           :target: https://doi.org/10.21105/joss.04377
           :alt: JOSS Paper

Owner

  • Name: Jari
  • Login: jfowkes
  • Kind: user
  • Location: UK
  • Company: Rutherford Appleton Laboratory

Computational Mathematician

JOSS Publication

PyCUTEst: an open source Python package of optimization test problems
Published
October 25, 2022
Volume 7, Issue 78, Page 4377
Authors
Jaroslav Fowkes
Science and Technology Facilities Council, Rutherford Appleton Laboratory, Harwell Campus, Didcot, Oxfordshire, OX11 0QX, UK
Lindon Roberts
Mathematical Sciences Institute, Building 145, Science Road, Australian National University, Canberra ACT 2601, Australia, School of Mathematics and Statistics, Carslaw Building, University of Sydney, Camperdown NSW 2006, Australia
Árpád Bűrmen
Faculty of Electrical Engineering, University of Ljubljana, Tržaška cesta 25, SI-1000 Ljubljana, Slovenia
Editor
Patrick Diehl ORCID
Tags
optimization

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Fowkes
    given-names: Jaroslav
    orcid: https://orcid.org/0000-0002-8048-4572
  - family-names: Roberts
    given-names: Lindon
    orcid: https://orcid.org/0000-0001-6438-9703
  - family-names: Bűrmen
    given-names: Árpád
    orcid: https://orcid.org/0000-0002-3035-1376
title: "PyCUTEst: an open source Python package of optimization test problems"
version: 1.4
doi: 10.21105/joss.04377
date-released: 2022-10-24

GitHub Events

Total
  • Create event: 4
  • Release event: 1
  • Issues event: 9
  • Watch event: 8
  • Delete event: 1
  • Issue comment event: 27
  • Push event: 6
  • Pull request event: 2
Last Year
  • Create event: 4
  • Release event: 1
  • Issues event: 9
  • Watch event: 8
  • Delete event: 1
  • Issue comment event: 27
  • Push event: 6
  • Pull request event: 2

Committers

Last synced: 5 months ago

All Time
  • Total Commits: 221
  • Total Committers: 7
  • Avg Commits per committer: 31.571
  • Development Distribution Score (DDS): 0.226
Past Year
  • Commits: 8
  • Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Jaroslav Fowkes j****s@s****k 171
Lindon Roberts l****s@m****k 44
Scott Sievert s****t 2
Tom M. Ragonneau 3****u 1
Daniel S. Katz d****z@i****g 1
Christoph Hansknecht c****t@t****e 1
Jeffrey Hokanson (Baldr) j****h@h****s 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 60
  • Total pull requests: 47
  • Average time to close issues: 5 months
  • Average time to close pull requests: 12 days
  • Total issue authors: 33
  • Total pull request authors: 8
  • Average comments per issue: 3.88
  • Average comments per pull request: 2.53
  • Merged pull requests: 39
  • Bot issues: 0
  • Bot pull requests: 1
Past Year
  • Issues: 8
  • Pull requests: 6
  • Average time to close issues: 6 days
  • Average time to close pull requests: 2 days
  • Issue authors: 5
  • Pull request authors: 3
  • Average comments per issue: 2.0
  • Average comments per pull request: 0.17
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 1
Top Authors
Issue Authors
  • jfowkes (14)
  • ragonneau (4)
  • lindonroberts (4)
  • yihang-gao (2)
  • gillhofer (2)
  • FYuChen (2)
  • anugrahjo (2)
  • johannahaffner (2)
  • hjmshi (2)
  • pangtai6 (2)
  • ZiyanZhu1994 (2)
  • HanfengZeng (1)
  • melodyqxuan (1)
  • chrhansk (1)
  • yasersharaf (1)
Pull Request Authors
  • jfowkes (39)
  • ragonneau (2)
  • jeffrey-hokanson (1)
  • amoghtg (1)
  • chrhansk (1)
  • stsievert (1)
  • dependabot[bot] (1)
  • danielskatz (1)
Top Labels
Issue Labels
bug (14) question (12) enhancement (9) upstream (4) memory leak (2) cache issue (2) ci (1) help wanted (1) invalid (1) deprecation (1) documentation (1)
Pull Request Labels
enhancement (10) bug (7) ci (5) documentation (2) memory leak (1) upstream (1) dependencies (1) github_actions (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 670 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 1
  • Total versions: 15
  • Total maintainers: 2
pypi.org: pycutest

A Python wrapper to the CUTEst optimization test environment

  • Versions: 15
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 670 Last month
Rankings
Dependent packages count: 4.8%
Forks count: 10.9%
Downloads: 12.2%
Average: 12.4%
Stargazers count: 12.5%
Dependent repos count: 21.6%
Maintainers (2)
Last synced: 4 months ago

Dependencies

.github/workflows/test.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/test_mac.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/upload_pypi.yml actions
  • actions/checkout v3 composite
  • pypa/gh-action-pypi-publish v1.5.0 composite
pyproject.toml pypi
  • numpy *
  • scipy *
  • setuptools *