|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbasics.VehicleRoutingProblem
public class VehicleRoutingProblem
Contains and describes the vehicle routing problem.
A routing problem is defined as jobs, vehicles and costs.
To construct the problem, use VehicleRoutingProblem.Builder (VehicleRoutingProblem.Builder.newInstance()).
By default, fleetSize is INFINITE and fleetComposition is HOMOGENEOUS, transport-costs are calculated as euclidean-distance (CrowFlyCosts), and activity-costs are set to DefaultVehicleRoutingActivityCosts which represent hard time-windows (missed time-windows are penalyzed with Double.MAX_VALUE).
| Nested Class Summary | |
|---|---|
static class |
VehicleRoutingProblem.Builder
Builder to build the routing-problem. |
static class |
VehicleRoutingProblem.Constraint
Overall problem constraints. |
static class |
VehicleRoutingProblem.FleetComposition
Enum that characterizes fleet-compostion. |
static class |
VehicleRoutingProblem.FleetSize
Enum that characterizes the fleet-size. |
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
log
|
| Method Summary | |
|---|---|
VehicleRoutingActivityCosts |
getActivityCosts()
Returns activityCosts. |
VehicleRoutingProblem.FleetComposition |
getFleetComposition()
Returns fleet-composition. |
VehicleRoutingProblem.FleetSize |
getFleetSize()
Returns type of fleetSize, either INFINITE or FINITE. |
java.util.Map<java.lang.String,Job> |
getJobs()
Returns the unmodifiable job map. |
Neighborhood |
getNeighborhood()
|
java.util.Collection<VehicleRoutingProblem.Constraint> |
getProblemConstraints()
Returns unmodifiable collection of problem-constraints. |
VehicleRoutingTransportCosts |
getTransportCosts()
Returns routing costs. |
java.util.Collection<VehicleType> |
getTypes()
Returns the entire, unmodifiable collection of types. |
java.util.Collection<Vehicle> |
getVehicles()
Returns the entire, unmodifiable collection of vehicles. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static org.apache.log4j.Logger log
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic Neighborhood getNeighborhood()
public VehicleRoutingProblem.FleetComposition getFleetComposition()
public VehicleRoutingProblem.FleetSize getFleetSize()
By default, it is INFINITE.
public java.util.Map<java.lang.String,Job> getJobs()
public java.util.Collection<VehicleRoutingProblem.Constraint> getProblemConstraints()
public java.util.Collection<VehicleType> getTypes()
VehicleTypeImplpublic java.util.Collection<Vehicle> getVehicles()
Vehiclepublic VehicleRoutingTransportCosts getTransportCosts()
VehicleRoutingTransportCostspublic VehicleRoutingActivityCosts getActivityCosts()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||