giacomelli / GeneticSharp

GeneticSharp is a fast, extensible, multi-platform and multithreading C# Genetic Algorithm library that simplifies the development of applications using Genetic Algorithms (GAs).
MIT License
1.27k stars 332 forks source link

added new ScalableFloatingPointChromosome capable of storing value be… #35

Closed sikora507 closed 5 years ago

sikora507 commented 6 years ago

…tween min/max for any given number of bits (more bits, greater precision)

sikora507 commented 6 years ago

I've added new chromosome capable of storing values between min and max value for any given number of bits. For example If we want to store values between -5 and 5 in 3 bits, we have 2^3 = 8 values available. That way [0, 0, 0] will be minimum value (-5) and [1, 1, 1] maximum value(5). [0, 0, 1] will become -3,75 [0, 1, 0] will become -2,5 and so on, up to [1, 1, 1] = 5

giacomelli commented 5 years ago

Closing it because of 6 months of inactive. If in any moment the points from https://github.com/giacomelli/GeneticSharp/pull/35#pullrequestreview-161407626 was solved, please fell free to re-open it.