private float CalculateFitness() { float _fitness = 0; if (cache.TryGetFitness(genotype, out _fitness)) { return(_fitness); } cache.AddCalculatedFitness(genotype.ToString(), _fitness); return(_fitness); }
private float CalculateFitness() { float _fitness = 0; if (cache.TryGetFitness(genotype, out _fitness)) { return(_fitness); } cache.AddCalculatedFitness(genotype.ToString(), _fitness); return(_fitness); }