A comprehensive framework for evaluating multi-agent reinforcement learning algorithms in Space-Air-Ground Integrated Networks (SAGIN).
pip install -r requirements.txt
# Compare all available algorithms
python main.py --comparison --algorithm all --episodes 100 --statistical-runs 5
# Test single algorithm with statistical analysis
python main.py --comparison --algorithm ae_maddpg --episodes 50 --statistical-runs 3
# Standard training without comparison
python main.py --algorithm ae_maddpg --episodes 100
# Enable 3GPP channel models and MAC protocol simulation
python main.py --comparison --algorithm all --3gpp-channels --mac-protocols
Results are saved to results/sagin_multi_algorithm_evaluation/ with:
The framework supports these algorithm types:
- ae_maddpg: Attention-Enhanced Multi-Agent DDPG
- baseline_maddpg: Standard Multi-Agent DDPG
- qmix: QMIX
- independent_ppo: Independent PPO
- greedy_heuristic: Greedy baseline
- random_policy: Random baseline
src/algorithms/your_algorithm/:class YourAlgorithm:
def __init__(self, config):
# Initialize your algorithm
pass
def act(self, obs):
# Return actions for all agents
return actions
def store_experience(self, obs, actions, rewards, next_obs, done):
# Store experience for training
pass
def update(self):
# Update algorithm parameters
pass
def set_eval_mode(self):
# Set to evaluation mode
pass
src/experiments/comparison_experiment.py:try:
from algorithms.your_algorithm.your_algorithm import YourAlgorithm
except ImportError:
YourAlgorithm = None
available_algorithms = {
# ... existing algorithms
'your_algorithm': YourAlgorithm,
}
python main.py --comparison --algorithm your_algorithm --episodes 50
Modify configs/experiment_config.json to customize:
src/
├── algorithms/ # Algorithm implementations
├── environments/ # SAGIN environment and channel models
├── experiments/ # Experiment frameworks
├── evaluation/ # Metrics and statistical analysis
├── protocols/ # MAC layer and QoS management
└── visualization/ # Plotting and animation tools
configs/ # Configuration files
results/ # Experiment results
main.py # Main entry point
# Run comprehensive comparison
python main.py --comparison --algorithm all --episodes 200 --statistical-runs 10 --3gpp-channels --mac-protocols
# Fast testing with reduced episodes
python main.py --comparison --algorithm ae_maddpg --episodes 20 --statistical-runs 3
# Generate visualizations without training
python main.py --algorithm ae_maddpg --video --video-mode overview
If you see "Warning: No algorithm implementations found":
src/algorithms/ directory--test-mode for quick validationsrc/ is in Python pathFor detailed documentation, see USAGE_GUIDE.md.
$ claude mcp add SkyNetRL-Multi-Agent-Reinforcement-Learning-for-Space-Air-Ground-Networks \
-- python -m otcore.mcp_server <graph>