Skip to content

Repository containing a genetic algorithm (GA) to optimize the Lennard-Jones potential.

Notifications You must be signed in to change notification settings

wenkanglu/hpc-ga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hpc_ga

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

About

Repository containing a genetic algorithm (GA) to optimize the Lennard-Jones potential.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published