Class VRPODInstanceProfitODDependant
java.lang.Object
es.urjc.etsii.grafo.io.Instance
es.urjc.etsii.grafo.vrpod.model.instance.VRPODInstance
es.urjc.etsii.grafo.vrpod.model.instance.VRPODInstanceProfitODDependant
- All Implemented Interfaces:
Comparable<Instance>
-
Field Summary
Fields inherited from class es.urjc.etsii.grafo.vrpod.model.instance.VRPODInstance
_dist, capacity, clients2Ods, FILE_PATTERN, generator, INSTANCE_COMPARATOR, locations, name, numberOfDestinations, numOcassionalDrivers, ods2Clients, odsCoordinates, packetSizes, rho, zeta
Fields inherited from class es.urjc.etsii.grafo.io.Instance
LOAD_TIME_NANOS
-
Constructor Summary
ConstructorsConstructorDescriptionVRPODInstanceProfitODDependant
(String name, int numOccasionalDrivers, int capacity, int numberOfDestinations) -
Method Summary
Modifier and TypeMethodDescriptiondouble
getCost
(int od, int customer) Get the profit an OD would get if he(she delivers the packet to the given customerMethods inherited from class es.urjc.etsii.grafo.vrpod.model.instance.VRPODInstance
compareTo, computeDistances, distanceBetween, generatorType, getCapacity, getClientsOfOccasionalDriver, getDistance, getGenerator, getLocations, getName, getNumberOfClients, getNumberOfDestinations, getNumOccasionalDrivers, getOdsOfClient, getPacketSize, getRecommendedNumberOfShakes, getRho, getZeta, initializeClients, inverseOds2Customer
Methods inherited from class es.urjc.etsii.grafo.io.Instance
customProperties, equals, getId, getPath, getProperty, getPropertyOrDefault, getUniquePropertiesKeys, hashCode, resetProperties, setPath, setProperty, toString
-
Constructor Details
-
VRPODInstanceProfitODDependant
public VRPODInstanceProfitODDependant(String name, int numOccasionalDrivers, int capacity, int numberOfDestinations)
-
-
Method Details
-
getCost
public double getCost(int od, int customer) Description copied from class:VRPODInstance
Get the profit an OD would get if he(she delivers the packet to the given customer- Specified by:
getCost
in classVRPODInstance
- Parameters:
od
- The ocassional driver idcustomer
- The customer id- Returns:
- The profit
-