public class SolutionFactory extends Object
VehicleRoutingSolution instances.| Modifier and Type | Method and Description |
|---|---|
static VehicleRoutingSolution |
emptySolution()
Create an empty solution.
|
static VehicleRoutingSolution |
solutionFromVisits(List<PlanningVehicle> vehicles,
PlanningDepot depot,
List<PlanningVisit> visits)
Create a new solution from given vehicles, depot and visits.
|
public static VehicleRoutingSolution emptySolution()
public static VehicleRoutingSolution solutionFromVisits(List<PlanningVehicle> vehicles, PlanningDepot depot, List<PlanningVisit> visits)
The returned solution's vehicles and locations are new collections so modifying the solution won't affect the collections given as arguments.
Elements of the argument collections are NOT cloned.
vehicles - vehiclesdepot - depotvisits - visitsCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.