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>

public class VRPODInstanceProfitODDependant extends VRPODInstance
  • 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 class VRPODInstance
      Parameters:
      od - The ocassional driver id
      customer - The customer id
      Returns:
      The profit