Rolling Horizon Evolutionary Algorithm
Project description
# Rolling Horizon Evolutionary Algorithm
[](https://badge.fury.io/py/RHEA)
An implementation of the [Rolling Horizon Evolutionary Algorithm](https://www.semanticscholar.org/paper/Rolling-horizon-evolution-versus-tree-search-for-in-Liebana-Samothrakis/0cff838805be4b6366756a553daca0036778c1e0)
## Installation
### using pip
```
pip install rhea
```
## Usage
To use the rolling horizon evolutionary algorithm, you will need your game class to implement the `Environment` interface.
### Examples
Examples of setting up any game environment can be found in the `examples` directory and run with:
```
python run.py
```
#### m_max example
```
num_dims = 600
m = 50
num_evals = 50
rollout_length = 10
mutation_probability = 0.1
# Set up the problem domain as m-max game
environment = MMaxGame(num_dims, m)
rhea = RollingHorizonEvolutionaryAlgorithm(rollout_length, environment, mutation_probability, num_evals)
rhea.run()
```
## Cite
If you want to cite this library, please use the following DOI
[](https://badge.fury.io/py/RHEA)
An implementation of the [Rolling Horizon Evolutionary Algorithm](https://www.semanticscholar.org/paper/Rolling-horizon-evolution-versus-tree-search-for-in-Liebana-Samothrakis/0cff838805be4b6366756a553daca0036778c1e0)
## Installation
### using pip
```
pip install rhea
```
## Usage
To use the rolling horizon evolutionary algorithm, you will need your game class to implement the `Environment` interface.
### Examples
Examples of setting up any game environment can be found in the `examples` directory and run with:
```
python run.py
```
#### m_max example
```
num_dims = 600
m = 50
num_evals = 50
rollout_length = 10
mutation_probability = 0.1
# Set up the problem domain as m-max game
environment = MMaxGame(num_dims, m)
rhea = RollingHorizonEvolutionaryAlgorithm(rollout_length, environment, mutation_probability, num_evals)
rhea.run()
```
## Cite
If you want to cite this library, please use the following DOI
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file RollingHorizonEA-0.0.1.tar.gz.
File metadata
- Download URL: RollingHorizonEA-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2d387ebbc756d6c09c977e151f3cfa5c8c6e783f615e9f1feb91259d20fae10
|
|
| MD5 |
76e879a709e596445d7ade62837f700a
|
|
| BLAKE2b-256 |
15abbc1414ee11728e78a03d3e5182f6c05fca4e65d6d54db059800402d856e2
|
File details
Details for the file RollingHorizonEA-0.0.1-py3-none-any.whl.
File metadata
- Download URL: RollingHorizonEA-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/38.5.2 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25f037941a520d7ef7352e82d1ec4a3a487d83e17b63a68d01dbadc650f78167
|
|
| MD5 |
78712bb9f0f2a44b077dd8a0e4e692cf
|
|
| BLAKE2b-256 |
3200e02599d6886e9746a4c59dab7f3b74a887281f7f4b2fc70b985f7d6b2bd0
|