How mal4vrp/maenvs4vrp works
MAEnvs4VRP is a multi-agent vehicle-routing simulation and reinforcement-learning library. A user configures a problem environment and instance generator, resets to obtain observations, selects feasible agent actions, and receives updated state and reward. The repository provides sequential and batched variants, many routing-problem families, and neural solver baselines. The graph groups problem families rather than listing every near-parallel implementation; sampled source and the README support the shown links, while details of unsampled family implementations are not asserted.
Main entry points: parallel_environments Parallel Environments · environments Sequential Environments · attention_model Attention Training · train_reinforce_shared_baseline.py Pointer Training
Components 14
Environment Core
- Instance Builders
maenvs4vrp/core/env_generator_builder.py - Observation Builder
maenvs4vrp/core/env_observation_builder.py - AEC Environment
maenvs4vrp/core/env.py - Agent Selector
maenvs4vrp/core/env_agent_selector.py - Reward Evaluator
maenvs4vrp/core/env_agent_reward.py
Routing Problems
- Sequential Environments
maenvs4vrp/environments
Batched Environments
- Parallel Environments
maenvs4vrp/parallel_environments - Parallel Base
maenvs4vrp/core/parallel_env.py
Neural Solvers
- Attention Model
maenvs4vrp/neuro_solvers/attention_model/policy_net_am.py - Attention Training
maenvs4vrp/neuro_solvers/attention_model - 2D Pointer Model
maenvs4vrp/neuro_solvers/two_d_ptr/td_pointer_model.py - Pointer Training
maenvs4vrp/neuro_solvers/two_d_ptr/train_reinforce_shared_baseline.py
Shared Utilities
- Routing Operations
maenvs4vrp/utils/ops.py
Other components
- Environment User
Connections 17
- Environment User → Sequential Environments: configures
- Environment User → Parallel Environments: chooses batch
- Sequential Environments → Instance Builders: uses builders
maenvs4vrp/environments/gmtdvrp/env.py - Sequential Environments → Observation Builder: uses builder
maenvs4vrp/environments/gmtdvrp/env.py - Sequential Environments → Agent Selector: uses selector
maenvs4vrp/environments/gmtdvrp/env.py - Sequential Environments → Reward Evaluator: uses evaluator
maenvs4vrp/environments/gmtdvrp/env.py - Sequential Environments → AEC Environment: extends base
maenvs4vrp/environments/gmtdvrp/env.py - Parallel Environments → Parallel Base: extends base
maenvs4vrp/parallel_environments/pcvrptw/env.py - Parallel Environments → Instance Builders: uses builders
maenvs4vrp/parallel_environments/pcvrptw/env.py - Parallel Environments → Observation Builder: uses builder
maenvs4vrp/parallel_environments/pcvrptw/env.py - Parallel Environments → Reward Evaluator: uses evaluator
maenvs4vrp/parallel_environments/pcvrptw/env.py - Sequential Environments → Routing Operations: calls utilities
maenvs4vrp/environments/gmtdvrp/env.py - Parallel Environments → Routing Operations: calls utilities
maenvs4vrp/parallel_environments/pcvrptw/env.py - Attention Training → Attention Model: trains model
maenvs4vrp/neuro_solvers/attention_model/train_ppo.py - Pointer Training → 2D Pointer Model: trains model
maenvs4vrp/neuro_solvers/two_d_ptr/train_reinforce_shared_baseline.py - Attention Training → Parallel Environments: trains on
- Pointer Training → Parallel Environments: trains on