Skip to content

MysteryHS/cppgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of genetic algorithm using C++

This repo was created to learn some C++, mainly OOP using C++.

The goal is was to make a general class that you could extend to create your own solutions using genetic algorithm. You simply need to extend the class Solution and to implements the methods cross, mutate and evaluate.

An example was made with the class SolutionQueen, resolving the queen problem where on a chess board, you need to find a placement for N queens so that they cannot take each other.

Usage

Compile : $make
Run : $./main sizeOfSet nbOfIterations ratioMutate
Clean : $make clean

TODO

Add the possibility to pass argument to the constructor with the initVector function.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published