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

Add constructor with values to FloatingPointChromosome #33

Closed mersadk closed 6 years ago

mersadk commented 6 years ago

As it is now when ever you create instance of FloatingPointChromosome, it will randomly create gene values.

I have a case where I need to stop optimization at some time, save results to DB and resume it later. For this I need to be able to give gene values to FloatingPointChromosome.

If you are willing to merge, I'll create pull request with this fix.

giacomelli commented 6 years ago

This will be a good improvement to FloatingPointChromosome. Yeah, you could create the pull request.

Thanks.

mersadk commented 6 years ago

Done.