示例#1
0
 public GeneticAlgorithmTsp(int iterations, Tsp tsp, int size)
 {
     Iterations = iterations;
     Tsp        = tsp;
     Population = new List <Solution>();
     Size       = size;
 }
示例#2
0
 public Solution(IEnumerable <int> ordering)
 {
     Ordering = new List <int>(ordering);
     Tsp.Evaluate(this);
 }