Skip to main content

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

Metadata

Release files for RollingHorizonEA 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RollingHorizonEA 0.1.2
File Size Uploaded Provenance Actions
RollingHorizonEA-0.1.2.tar.gz 3.0 kB Without provenance Details for RollingHorizonEA-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for RollingHorizonEA 0.1.2
File Interpreter ABI Platform Actions
RollingHorizonEA-0.1.2-py3-none-any.whl Python 3 none any Details for RollingHorizonEA-0.1.2-py3-none-any.whl

Total release size: 19.1 kB

Release files / RollingHorizonEA-0.1.2.tar.gz

Download URL RollingHorizonEA-0.1.2.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e43f6e712b01d497b6e048aa1c7c589c805c771caddc78c016aacb324eb72276
BLAKE2b-256 checksum
How to use checksums
3a2f9ad7ccb6c146f4c120198b8391f5b002f5e037476728c552160a7f1e929a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / RollingHorizonEA-0.1.2-py3-none-any.whl

Download URL RollingHorizonEA-0.1.2-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ab5ad4aa1861454fd236d3e8152866526513c069ab682da7c126ad0b98d529b
BLAKE2b-256 checksum
How to use checksums
08bffbd0909a4c9bafea9744facf9aa85584cb7a4fcbdac9d3f4954cd1a8e894
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for RollingHorizonEA 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page