public float getSolutionFitness() { if (showBestSolution && solution != null) { return(solution.fitness()); } else if (!showBestSolution && solutions != null && solutions.Count > 0) { return(solutions[0].fitness()); } return(-1); }
public float getSolutionFitness() { if (showBestSolution && solution != null) { return(solution.fitness()); } else if (!showBestSolution && solutions != null && solutions.Count > 0) { return(solutions[0].fitness()); } return(-1); }