public void AdjustCompatibilityThreshold()
{
// has this been disabled (unlimited species)
if (paramMaxNumberOfSpecies < 1)
{
return;
}
double thresholdIncrement = 0.01;
if (Population.Species.Count > paramMaxNumberOfSpecies)
{
paramCompatibilityThreshold += thresholdIncrement;
}
else if (Population.Species.Count < 2)
{
paramCompatibilityThreshold -= thresholdIncrement;
}
}