Skip to content

cilatpku/ec-benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Interfaces of CEC 2013 and 2017 Competitions

Quick Start

The interfaces are converted to python using swig. The objective functions can be given by :

import benchmarks.cec as cec
import numpy as np

func = cec.cec17[0]
obj = func(np.asarray([[0.0, 0.0], [1.0, 1.0], [2.0, 2.0]]))
"""
	>>> array([7.50196643e+09, 7.73156939e+09, 7.96463317e+09])
"""

Install

To install, run the following commands:

git clone [email protected]:wead-hsu/ec-benchmarks.git
cd ec-benchmarks
python3 setup.py install

If you do not have the super authority, run 'python3 setup.py install --user' instead. The installation requires SWIG, which can be obtained via

MACOS:
	brew install swig
UBUNTU:
	apt-get install swig

About

benchmarks of evolutionary computation, e.g., cec2013 and cec2017

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published