public void Setup() { _pool = GATestHelper.GetTravelingSalesmanPopulation(); var calc = new SimpleTravelingSalesmanSolution(); foreach (var chromosome in _pool) { chromosome.FitnessScore = calc.GetFitnessScoreFor(chromosome); } }
public static Chromosome GetTravelingSalesmanChromosome() { var _solution = new SimpleTravelingSalesmanSolution(); return(new OrderedChromosome(_solution.GetOptions())); }
public void BeforeEach() { _config = GATestHelper.GetTravelingSalesmanDefaultConfiguration(); _solution = new SimpleTravelingSalesmanSolution(); }
public void BeforeEach() { _config = GATestHelper.GetTravelingSalesmanDefaultConfiguration(); _config.DuplicationStrategy = DuplicationStrategy.Allow; _solution = new SimpleTravelingSalesmanSolution(); }