Skip to main content

Rolling Horizon Evolutionary Algorithm

Project description

Rolling Horizon Evolutionary Algorithm

PyPI version

An implementation of the Rolling Horizon Evolutionary Algorithm

Installation

using pip

pip install RollingHorizonEA

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

DOI

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RollingHorizonEA-0.1.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

RollingHorizonEA-0.1.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file RollingHorizonEA-0.1.2.tar.gz.

File metadata

  • Download URL: RollingHorizonEA-0.1.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for RollingHorizonEA-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e43f6e712b01d497b6e048aa1c7c589c805c771caddc78c016aacb324eb72276
MD5 2380b1fa1c4e43152c59e0a41f643645
BLAKE2b-256 3a2f9ad7ccb6c146f4c120198b8391f5b002f5e037476728c552160a7f1e929a

See more details on using hashes here.

File details

Details for the file RollingHorizonEA-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: RollingHorizonEA-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.9.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2

File hashes

Hashes for RollingHorizonEA-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1ab5ad4aa1861454fd236d3e8152866526513c069ab682da7c126ad0b98d529b
MD5 9fa4f0628dc9c32a8fe70b338bc66927
BLAKE2b-256 08bffbd0909a4c9bafea9744facf9aa85584cb7a4fcbdac9d3f4954cd1a8e894

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page