How hadielnemr/uavs-task-assignment-and-path-planning works
Project type and purpose
• This is an academic/scientific codebase implementing and comparing multiple metaheuristic optimisation algorithms (ACO, WOA, DA, GA, PSO, SA) to solve the Multi-UAV Task Assignment and Path Planning (MUTAPP) problem (a variant of MTSP).
• It’s not a typical client-server or web application but a monolithic Python-based tool with separate modules per algorithm, a test harness, parameter configurations, and visualization via Matplotlib.
File structure
• Top-level directories each correspond to an algorithm or hybrid approach:
• ACO, WOA, DA, PSO_path_planning, GA submission, SA2_mod
• Combined/hybrid folders: “ACO & WOA” and “ACO&DA”
• Within each folder:
• Core algorithm code (e.g., classes.py, optimization.py or .py with algorithm logic)
• Task_Assignment.py (defines the problem input and orchestrates runs)
• parameters.py (tunable hyperparameters)
• Test_cases.py (predefined problem instances and automated runs)
• Shared root files: Task_Assignment.py, LICENSE, README.md
• No deployment/build scripts—this is designed for local execution in Python.
README for additional insights
• Confirms scope: comparing Simulated Annealing, Genetic Algorithm, H-ACO-WOA, H-ACO-DA, etc.
• Emphasizes OOP in Python and Matplotlib for visualization.
a. Main components
1. Problem Definition & Input Layer
• Task_Assignment modules (root and per-algorithm)
• parameters.py
• Test_cases.py
2. Algorithm Engines
• ACO engine (ACO/classes.py, optimization.py)
• WOA engine (WOA/woa.py, woa_parameters.py)
• DA engine (DA/DA.py, da_parameters.py)
• GA engine (GA submission/GA_path_planning/GA.py)
• PSO engine (PSO_path_planning/PSO_pp.py, pso_parameters.py)
• SA engine (SA2_mod/optimization.py)
3. Hybrid Controllers
• H-ACO-WOA (folder “ACO & WOA”)
• H-ACO-DA (folder “ACO&DA”)
4. Visualization Layer
• generates Matplotlib figures of routes and convergence plots
5. Output & Results
• plots (images folder)
• numerical results printed or saved in results/ under ACO&DA
6. External Dependencies
• Python runtime, NumPy, Matplotlib
b. Relationships & Data Flow
• Inputs (task definitions + parameters) feed into each Algorithm Engine.
• Engines produce solution data (UAV routes, fitness metrics).
• Hybrid Controllers coordinate two engines and combine their outputs.
• Visualization Layer consumes solution data to render figures.
• Results are archived to disk or printed to console.
c. Architectural patterns & principles
• Modular layering: separating problem definition, algorithm logic, and visualization.
• Plug-and-play modules: each algorithm conforms to a Task_Assignment interface.
• Hybridization: controllers orchestrate multiple engines.
• OOP organization: engines encapsulate state and behaviour in classes.py.
d. Key technologies
• Python 3.x
• Matplotlib for visualization
• Standard libraries (os, sys, random, math)