Skip to content
/ ac2 Public

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

License

Notifications You must be signed in to change notification settings

oelin/ac2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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)