• Stars
    star
    2
  • Language
    Ada
  • License
    Other
  • Created almost 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Genetic Algorithm Implementation for Ada

Ada-GA

This project is a small library to compute genetic algorithm in Ada.

Currently :

  • binary chromosomes are provided, additional chromosome could be used in creating a new chromosome type
  • Population Elitism (conserv a pourcentage of the best chromosomes)
  • Mutations
  • CrossOver

Random Generators are clearly separated on :

  • Mutation
  • CrossOver
  • Chromosome

a test function show the use of the library for a scalar encoding of chromosome.

Updates

2023-08-06 : recompile on linux, not added to alire package manager, the name of the lib is too short.

Install - Compile - Test

This project should compile on every Ada 2005 compliant compiler.We currently use GNAT 2005.

to compile the project, go in the project directory and launch gprbuild command line.

gprbuild

C:\Projets\Ada\Projets\Ada-GA>gprbuild
using project file ga.gpr
gcc -c -g -gnat05 -O3 test.adb
gcc -c -g -gnat05 -O3 ga.adb
gcc -c -g -gnat05 -O3 gascalar.adb
gprbind test.bexch
gnatbind test.ali
gcc -c b__test.adb
gcc test.o -o test.exe