Class RoutingProblem


  • public class RoutingProblem
    extends Object
    Definition of the vehicle routing problem instance.
    • Constructor Detail

      • RoutingProblem

        public RoutingProblem​(String name,
                              List<? extends VehicleData> vehicles,
                              LocationData depot,
                              List<? extends LocationData> visits)
        Create routing problem instance.
        Parameters:
        name - the instance name
        vehicles - list of vehicles (not null)
        depot - the depot (may be null if there is no depot)
        visits - list of visits (not null)
    • Method Detail

      • name

        public String name()
        Get routing problem instance name.
        Returns:
        routing problem instance name
      • visits

        public List<LocationData> visits()
        Get locations that should be visited.
        Returns:
        visits
      • vehicles

        public List<VehicleData> vehicles()
        Vehicles that are part of the problem definition.
        Returns:
        vehicles