EvoOpt: Python Implementation of State-of-Art Evolutionary Algorithms
EvoOpt - Evolutionary Optimization in Python
EvoOpt: Evolutionary Optimization in Python
Python implementation of state-of-art meta-heuristic and evolutionary optimisation algorithms.
This library is implemented in Numpy (which was written in C) for fast processing speed
Table of Contents
- About the Project
- Getting Started
About The Project
Current support for algorithms
[x] Genetic Algorithm
[x] Duelist Algorithm
[X] Particle Swarm Optimization
[X] Gravitational Search Algorithm
[X] Firefly Algorithm
[X] Simulated Annealing
[ ] Multi-Verse Optimization
[ ] Grey-Wolf Optimization
More algorithms to come...
There are four simple steps to run an optimization problem using EvoOpt
(Example 2 from example folder)
from solver.DuelistAlgorithm import DuelistAlgorithm
**1. Define your function. Say you want to minimize the equation f=(x1,x2) = (x1)^2+(x2)^2 **
def f(x1,x2): return x1*x1+x2*x2
**2. Define the variables that can be manipulated for optimization. Define their names as string and put them in an array. **
3. Define the boundaries for the manipulated variables:
x1 is bounded from -2 to 10 (-2 is min value of x1 and 10 is max value of x1)
x2 is bounded from 10 to 15 (10 is min value of x2 and 15 is max value of x2)
We can arrange these boundaries according to the definition array in step 2.
The corresponding code is:
4. Setup the solver and start the solve procedure.
Numpy and Matplotlib
$python -m pip install numpy matplotlib
$pip install numpy matplotlib
You can use two methods for installation:
1. Install from github (recommended as this will download the newest version)
First download the git repository. You can do this by clicking the download button or using the git command:
$ git pull https://github.com/tsyet12/EvoOpt
Move to the directory:
$ cd (directory of EvoOpt)
Run setup. The following command installs all files in directory:
$ pip install -e .
**1. Install from pip **
You can install this package from pip.
$ pip install EvoOpt
$python -m pip install EvoOpt
To be updated.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b testbranch/solvers)
- Commit your Changes (
git commit -m 'Improve testbranch/solvers')
- Push to the Branch (
git push origin testbranch/solvers)
- Open a Pull Request
Distributed under the BSD-2-Clause License. See
LICENSE for more information.
Sin Yong Teng: firstname.lastname@example.org
Project Link: https://github.com/tsyet12/EvoOpt
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size EvoOpt-0.14.tar.gz (13.1 kB)||File type Source||Python version None||Upload date||Hashes View|