How cuongtv312/marl-delivery works
Project type and purpose
• This is an open-source, multi-agent reinforcement learning (MARL) simulation tool for package delivery.
• It provides two agent types: a BFS-based greedy agent (greedyagent.py) and a PPO-based RL agent (simple_PPO.ipynb), all orchestrated via a command-line interface in main.py.
File structure
• Top-level scripts:
• main.py – CLI entry point to launch experiments.
• agent.py – Base/abstract agent class defining the agent interface.
• greedyagent.py – Concrete implementation of a BFS-driven greedy agent.
• env.py – Defines the Env class: simulation engine, observation/state conversion, reward shaping, step/reset logic.
• Data / resources:
• map.txt, map1.txt … map5.txt – Environment configuration files (grid layouts).
• Experiment/training:
• simple_PPO.ipynb – Jupyter notebook to train/test RL (PPO) agents.
• Metadata:
• requirements.txt, LICENSE, README.md, Group-Project.pdf.
• No separate “frontend” or “backend”: this is a single-process Python application.
README for additional insights
• It describes five test configurations (map files, seed, steps, agents, packages).
• It recommends not modifying Env class core logic, but allowing tweaks to convert_state or reward_shaping.
• It highlights BFS vs. RL performance comparisons.