Print

Print


Definitely a bug, which was introduced in when simulated binary crossover was added.  I believe the corrected code should be:

        if (crossoverType==C_ANY_POINT)
...
        else if (crossoverType==C_SIMULATED_BINARY)
...
        else crossoverProbability = 0.0f;

I've done recommit on SVN.

Sean


On Oct 17, 2012, at 10:23 AM, Peter Lanze wrote:

> Hi there,
> 
> using the crossover-type 'any', the crossoverProbability is always 0.0 !
> Looking into the setup from VectorSpecies, I find the code:
> 
> 
>        if (crossoverType==C_SIMULATED_BINARY)
> ......
>        else crossoverProbability = 0.0f;
> 
> 
> That's a feature? Or a bug?
> 
> Regards,
> 
> Peter