Evolutionary Centers Algorithm: Module for Python coded in C
Project description
# Evolutionary Centers Algorithm
ECA is a physics-inspired algorithm based on the center of mass concept on
a D-dimensional space for real-parameter single-objective optimization. The
general idea is to promote the creation of an irregular body using K mass points
in the current population, then the center of mass is calculated to get a new direction
for the next population... [read more.](https://www.dropbox.com/s/kqc22ki2edjtt0y/ECA-optimization.pdf)
## Parameters
- Parameters (suggested):
- Objective function: `fobj`
- Dimension: `D`
- K-value:
`K = 7`
- Population size:
`N = K*D`
- stepsize:
`eta_max = 2.0`
- binomial probability:
`P_bin = 0.03`
- Exploit parameter:
`P_exploit = 0.95`
- Max. number of evaluations:
`max_evals = 10000*D`
- Bounds:
- Lower: `low_bound`
- Upper: `up_bound`
- Search Type:
- Maximize:
- `minimize = True`
- minimize:
- `minimize = False`
## Example
You can write Python code to use ECA in your project:
```python
from ecapy import eca
# D-dimensional sphere function
def sphere(x):
s = 0.0
for xi in x:
s += xi**2
return s
x, fx = eca(sphere, D = 10, minimize=True)
```
ECA is a physics-inspired algorithm based on the center of mass concept on
a D-dimensional space for real-parameter single-objective optimization. The
general idea is to promote the creation of an irregular body using K mass points
in the current population, then the center of mass is calculated to get a new direction
for the next population... [read more.](https://www.dropbox.com/s/kqc22ki2edjtt0y/ECA-optimization.pdf)
## Parameters
- Parameters (suggested):
- Objective function: `fobj`
- Dimension: `D`
- K-value:
`K = 7`
- Population size:
`N = K*D`
- stepsize:
`eta_max = 2.0`
- binomial probability:
`P_bin = 0.03`
- Exploit parameter:
`P_exploit = 0.95`
- Max. number of evaluations:
`max_evals = 10000*D`
- Bounds:
- Lower: `low_bound`
- Upper: `up_bound`
- Search Type:
- Maximize:
- `minimize = True`
- minimize:
- `minimize = False`
## Example
You can write Python code to use ECA in your project:
```python
from ecapy import eca
# D-dimensional sphere function
def sphere(x):
s = 0.0
for xi in x:
s += xi**2
return s
x, fx = eca(sphere, D = 10, minimize=True)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ecapy-1.0.1.tar.gz
(4.5 kB
view details)
File details
Details for the file ecapy-1.0.1.tar.gz.
File metadata
- Download URL: ecapy-1.0.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52f73a06c075b0f8609f56b2cdbdc1ea1b4abbb6380bc72ef191734612b0c542
|
|
| MD5 |
6950415d6e3da2ae5853cc8ba7e365de
|
|
| BLAKE2b-256 |
ff99242bb569690a77dcc646da770a40964c4b16ca7c4de4e42da0b3992f4f39
|