-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Mickdep/GeneticAlgorithmCPP
- Loading branch information
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# GeneticAlgorithmCPP | ||
Genetic algorithm programmed in C++ using raw pointers. In practice smart pointers are better to use but just for some practice I decided to use raw pointers. | ||
|
||
## Note ## | ||
This algorithm is not perfect and there are many vectors than can affect the outcome and/or the performance. | ||
For instance the mutation chance of 1% might be too high, or the population size might be too low/high. | ||
Besides, there are different methods of selection and crossover. | ||
|
||
Tweaking these vectors is key to good outcome and/or performance. | ||
|
||
In this example the goal of the algorithm was to guess a string of characters. This is just to demonstrate the function of the genetic algorithm. | ||
If you want to use this algorithm for your own use you can simply substitute the individual's gene by your own object. Do not forget to change the way fitness is calculated and how mutation is implemented. | ||
|
||
## Screenshot ## |