Example #1
0
 // setter for selected tour from gui radiobtn
 public void Selected(tour value)
 {
     // selected reference tsp instance to perform calulations on
     if (value == tour.berlin)
     {
         selected = berlin;
     }
     else
     {
         selected = lin;
     }
 }
Example #2
0
 // constructor to load two tsp instances and store cities in list
 public TSPSolver()
 {
     // load instances of tsp for two routes
     berlin = new TSPInstance("berlin52");
     lin    = new TSPInstance("lin318");
 }