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; }
public Route(Problem problem) { Depot depot = problem.Depot; Problem = problem; Solution = null; RouteList = new List <AbsNode>(); ServiceBeginingTimes = new List <double>(); AddNode(depot); AddNode(depot); }
public void SetNodes(List <NodeInfo> nodes, string abbr = "None", int capacity = 200) { VehicleCap = capacity; Abbr = abbr; AllNodes = nodes; Depot = new Depot(nodes[0]); Customers = new List <Customer>(); for (var i = 1; i < nodes.Count; ++i) { Customers.Add(new Customer(nodes[i])); } }
public void SetNodes(List<NodeInfo> nodes, string abbr="None", int capacity=200) { VehicleCap = capacity; Abbr = abbr; AllNodes = nodes; Depot = new Depot(nodes[0]); Customers = new List<Customer>(); for (var i = 1; i < nodes.Count; ++i) Customers.Add(new Customer(nodes[i])); }