Abstract: Evolutionary algorithms are widely used in unmanned aerial vehicle path planning for their flexibility and effectiveness. Nevertheless, they are so sensitive to the change of environment that they cannot adapt to all scenarios. Due to this drawback, previously successful planners frequently fail in new scenes. In this paper, a first-of-its-kind machine learning method named Evolutionary Programmer is proposed to solve this problem. Concretely, the most commonly used Evolutionary Algorithms are decomposed into a series of operators, which constitute the operator library of the system. The new method recomposes the operators into an integrated planner; thus, the most suitable operators can be selected for adapting to changing circumstances. Different from normal machine programmers, this method focuses on a specific task with high-level integrated instructions and thus alleviates the problem of huge search space caused by the briefness of instructions. On this basis, a 64-bit sequence is presented to represent the path planner and then evolved with a modified Genetic Algorithm. Finally, the most suitable planner is created by utilizing the information of the previous planner and various randomly generated ones.
Introduction
Unmanned Aerial Vehicle (UAV) path planning is a complex NP-hard problem that requires navigating through environments filled with obstacles, radar threats, and no-fly zones (NFZs) while optimizing for fuel and path smoothness. While Nature-inspired Evolutionary Algorithms (EAs)—such as Genetic Algorithms (GA) or Particle Swarm Optimization (PSO)—have proven effective, they are often "brittle." A planner optimized for a specific terrain frequently fails when moved to a new environment, requiring manual tuning by human engineers.
To address this, we propose the Evolutionary Programmer (EP), a meta-algorithm designed to autonomously construct custom path-planning programs. By treating an algorithm as a sequence of modular, high-level functional blocks rather than a monolithic block of code, the EP can evolve the most effective combination of operators for any given scenario.
The Evolutionary Programmer Framework
The core of the EP is a modular architecture that decomposes established EAs into a library of reusable operators.
Operator Library and Encoding
The system utilizes an operator library derived from state-of-the-art algorithms, including GA, PSO, and Differential Evolution. These operators are categorized into initialization, sorting/selection, exploitation/exploration, and path smoothing (e.g., B-splines). Each unique planner configuration is represented as a 64-bit binary genome, where segments of the bitstring correspond to specific operator choices and parameter settings.
Meta-Evolutionary Process
When presented with a new environment, the EP initiates a meta-evolutionary cycle. It uses a modified Genetic Algorithm to evolve a population of 64-bit "programs." Each program is tested against the current map, and its fitness is evaluated based on path quality (safety, length, and smoothness) and computational efficiency.
Rotated Coordinate System
To enhance efficiency, the EP employs a rotated coordinate system. Instead of searching a standard 3D Cartesian grid, the search space is aligned with the UAV's flight direction from start to target. This significantly reduces the search space and computational overhead.
Experimental Environment
The EP was evaluated using simulated 3D landscapes. These environments were generated using multi-layer noise to create realistic mountains and valleys, with varying levels of obstacle density and threat models, including radar detection zones and missile attack radii.
Results and Discussion
The Evolutionary Programmer demonstrated significant improvements over static, human-designed benchmarks:
- Success Rate (SR): In dense, complex environments, the EP achieved a 96.5% success rate, vastly outperforming standard algorithms like JADE or PSO, which often fell below 30% success in the same scenarios.
- Computational Efficiency: Evolved planners were capable of finding valid paths in approximately 0.3 seconds, suggesting potential for near-real-time re-planning during flight.
- Adaptability: The results confirm that no single standard algorithm is universally optimal. The EP's strength lies in its ability to select the most suitable logic—for example, choosing specific exploration operators for one map while switching to more aggressive exploitation in another.
Conclusion
The Evolutionary Programmer represents a significant step toward autonomous UAV systems. By evolving high-level integrated instructions rather than raw code, the system avoids the pitfalls of traditional machine programming while maintaining high adaptability. Future work will focus on bridging the simulation-to-real gap, accounting for physical disturbances like wind and sensor noise through Reinforcement Learning.
Summary updated