Beispiel #1
0
 public int SelectSeedCustomer(List<Customer> customers, Depot depot,
     Solomon87InitialStrategy strategy = Solomon87InitialStrategy.HighestDemand)
 {
     if (strategy == Solomon87InitialStrategy.HighestDemand)
         return SearhForHighestDemand(depot, customers);
     if (strategy == Solomon87InitialStrategy.HighestDistance)
         return SearhForHighestDistance(depot, customers);
     return -1;
 }
Beispiel #2
0
 public int SelectSeedCustomer(List <Customer> customers, Depot depot,
                               Solomon87InitialStrategy strategy = Solomon87InitialStrategy.HighestDemand)
 {
     if (strategy == Solomon87InitialStrategy.HighestDemand)
     {
         return(SearhForHighestDemand(depot, customers));
     }
     if (strategy == Solomon87InitialStrategy.HighestDistance)
     {
         return(SearhForHighestDistance(depot, customers));
     }
     return(-1);
 }