Repository containing a genetic algorithm (GA) to optimize the Lennard-Jones potential.
particle.c contains a basic, sequential GA.
particle_omp.c makes use of OpenMP to parallelise the GA.
particle_ompi.c makes use of, you guessed it, OpenMPI to parallelise the GA - best used on an HPC cluster.
plot_solution.py visualises the optimised results using Matplotlib.
make all
- compiles the C scripts.
make particle
, make particle_omp
, and make particle_ompi
each compiles an individual script.
run
, run_omp
, and run_ompi
each runs an individual script.
make clean
- removes compiled C scripts.
make clean_all
- removes compiled C scripts and run artifacts