basics
Class VehicleRoutingProblemSolution
java.lang.Object
basics.VehicleRoutingProblemSolution
public class VehicleRoutingProblemSolution
- extends java.lang.Object
Contains the solution of a vehicle routing problem and its corresponding costs.
- Author:
- stefan schröder
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_COST_YET
public static double NO_COST_YET
VehicleRoutingProblemSolution
public VehicleRoutingProblemSolution(java.util.Collection<VehicleRoute> routes,
double cost)
- Constructs a solution with a number of
VehicleRoutes and their corresponding aggregate cost value.
- Parameters:
routes - cost -
copyOf
public static VehicleRoutingProblemSolution copyOf(VehicleRoutingProblemSolution solution2copy)
- Makes a deep copy of the solution to be copied.
- Parameters:
solution2copy -
- Returns:
getRoutes
public java.util.Collection<VehicleRoute> getRoutes()
getCost
public double getCost()
setCost
public void setCost(double cost)