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

FlipBitMutation with IntegerChromosome #49

Closed EMostafaAli closed 5 years ago

EMostafaAli commented 5 years ago

Describe the bug Using FlipBitMutation with IntegerChromosome throws System.InvalidCastException

To Reproduce Please see the attached sample project Ex2.zip

Expected behavior As IntegerChromosome implements BinaryChromsome, I am expected that it should work

Version: version 2.2.0