oelin / ac2

A PettingZoo AEC environment for Ant Colony Coverage (AC2).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AC2

A PettingZoo AEC environment for Ant Colony Coverage (AC2).

Usage

from ac2 import AC2, AC2Configuration

configuration = AC2Configuration(
    map_size=16,
    number_of_agents=16,
    number_of_obstacles=16,
    difficulty=0.01,
    duration=1000,
)

env = AC2(configuration=configuration)

The environment can be parallelized using aec_to_parallel().

from pettingzoo.utils.conversions import aec_to_parallel

parallel_env = aec_to_parallel(env)

About

A PettingZoo AEC environment for Ant Colony Coverage (AC2).

License:MIT License


Languages

Language:Python 100.0%