Package: opfunu
OPFUNU is the largest python library for cutting-edge numerical optimization benchmark functions. Contains all CEC
competition functions from 2005, 2008, 2010, 2013, 2014, 2015, 2017, 2019, 2020, 2021, 2022. Besides, more than 300
traditional functions with different dimensions are implemented.Free software:GNU General Public License (GPL) V3 licenseTotal problems: > 500 problemsDocumentation:https://opfunu.readthedocs.ioPython versions:3.7.x, 3.8.x, 3.9.x, 3.10.x, 3.11.xDependencies:numpy, matplotlibInstallationInstall with pipInstall thecurrent PyPI release:$pipinstallopfunu==1.0.1Or install the development version from GitHub:pipinstallgit+https://github.com/thieu1995/opfunuInstall from sourceIn case you want to install directly from the source code, use:$gitclonehttps://github.com/thieu1995/opfunu.git
$cdopfunu
$pythonsetup.pyinstallLib's structuredocs
examples
opfunu
    cec_based
        cec.py
        cec2005.py
        cec2008.py
        ...
        cec2021.py
        cec2022.py
    name_based
        a_func.py
        b_func.py
        ...
        y_func.py
        z_func.py
    utils
        operator.py
        validator.py
        visualize.py
    __init__.py
    benchmark.py
README.md
setup.pyUsageAfter installation, you can import Opfunu as any other Python module:$python
>>>importopfunu
>>>opfunu.__version__Let's go through some examples.ExamplesHow to get the function and use it1st wayfromopfunu.cec_based.cec2014importF12014func=F12014(ndim=30)func.evaluate(func.create_solution())## orfromopfunu.cec_basedimportF102014func=F102014(ndim=50)func.evaluate(func.create_solution())2nd wayimportopfunufuncs=opfunu.get_functions_by_classname("F12014")func=funcs[0](ndim=10)func.evaluate(func.create_solution())## orall_funcs_2014=opfunu.get_functions_based_classname("2014")print(all_funcs_2014)For more usage examples please look atexamplesfolder.Get helps (questions, problems)Official source code repo:https://github.com/thieu1995/opfunuOfficial document:https://opfunu.readthedocs.io/Download releases:https://pypi.org/project/opfunu/Issue tracker:https://github.com/thieu1995/opfunu/issuesNotable changes log:https://github.com/thieu1995/opfunu/blob/master/ChangeLog.mdExamples with different version:https://github.com/thieu1995/opfunu/blob/master/examples.mdOfficial chat group:https://t.me/+fRVCJGuGJg1mNDg1This project also related to our another projects which are optimization and machine learning. Check it here:https://github.com/thieu1995/metaheuristicshttps://github.com/thieu1995/mealpyhttps://github.com/thieu1995/mafesehttps://github.com/thieu1995/pfevaluatorhttps://github.com/thieu1995/MetaClusterhttps://github.com/thieu1995/enoppyhttps://github.com/thieu1995/permetricshttps://github.com/aiir-teamCite UsIf you are using opfunu in your project, we would appreciate citations:@software{thieu_nguyen_2020_3711682,
  author       = {Nguyen Van Thieu},
  title        = {Opfunu: An Open-source Python Library for Optimization Benchmark Functions},
  year         = 2020,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.3620960},
  url          = {https://doi.org/10.5281/zenodo.3620960.}
}References1. http://benchmarkfcns.xyz/fcns
2. https://en.wikipedia.org/wiki/Test_functions_for_optimization
3. https://www.cs.unm.edu/~neal.holts/dga/benchmarkFunction/
4. http://www.sfu.ca/~ssurjano/optimization.html
5. A Literature Survey of Benchmark Functions For Global Optimization Problems (2013)
6. Problem Definitions and Evaluation Criteria for the CEC 2014 Special Session and Competition on Single Objective Real-Parameter Numerical Optimization