GeneticSharp icon indicating copy to clipboard operation
GeneticSharp copied to clipboard

Strange behavior of MixProbability in UniformCrossover

Open leshacsharp opened this issue 1 year ago • 0 comments

Hey,

The UniformCrossover has MixProbability field for swapping genes. In the current implementation genes are swapped when the event is NOT occuried. Why not vice versa?

https://github.com/giacomelli/GeneticSharp/blob/b6567e3d2d328ce00cae3cea2d79a1e1ba40d944/src/GeneticSharp.Domain/Crossovers/UniformCrossover.cs#L62-L71

Thanks!

leshacsharp avatar May 30 '24 15:05 leshacsharp