A simple genetic algorithm implementation involving a series of selection, crossover, mutation methods that minimises a fitness function to find an optimal path given any bitmap image of obstacles, from a starting point to finish.
Selection methods:
- Roulette Wheel
- Tournament
- Rank-based
Crossover methods:
- k-point
- Uniform
Mutation methods:
- Bit-flip
- Bit-swap
You need to have at least MATLAB 2020a or later versions + few more adds-on to be install inside MATLAB as required when the program is run.
- Clone the repo
- Run the main.m file from the directory in MATLAB in the console
- Install any adds-on needed, as outputed
- The result png is overwriten to the same bmp image, and is displayed automatically once the algorithm converges