6.10 Solution Error Object

A solution error object describes one constraint violation found in a solution. Its type field gives the kind of violation, and determines its other fields. Fields common to many types are:

  • route: identifies the route concerned;
  • stop: the stop_id of the stop concerned;
  • vehicle_id: the vehicle concerned;
  • order_id: the order concerned.

The maintenance errors are:

  • MAINTENANCE_EVENT_MISSED: a maintenance event (event) that the route requires (for a periodic event, its occurrence) is not performed on the route (distance is null; end_distance is the odometer reading at the end of the route), or is performed outside its range (distance is the odometer reading at which it is performed).
  • MAINTENANCE_LOCATION_TIME_WINDOW_VIOLATION: a maintenance visit lies outside the operating times of its location.

The types, and their fields, are:

  • MISMATCHED_ORDER_STOP_LOCATION: route, stop, vehicle_id, order_id, expected_location, actual_location, pickup_or_delivery.
  • INVALID_START_LOCATION: route, vehicle_id, expected_start_loc, actual_start_loc.
  • INVALID_FINISH_LOCATION: route, vehicle_id, expected_finish_loc, actual_finish_loc.
  • MULTIPLE_PICKUP_STOPS: route, stop1, stop2, vehicle_id, order_id.
  • MULTIPLE_DELIVERY_STOPS: route, stop1, stop2, vehicle_id, order_id.
  • DELIVERY_WITHOUT_PICKUP: route, stop, vehicle_id, order_id.
  • PICKUP_WITHOUT_DELIVERY: route, stop, vehicle_id, order_id.
  • INVALID_ORDER_VEHICLE: route, stop, order_id, vehicle_id.
  • VEHICLE_WEIGHT_LIMIT_EXCEEDED: route, stop, vehicle_id, weight, capacity.
  • VEHICLE_VOLUME_LIMIT_EXCEEDED: route, stop, vehicle_id, volume, capacity.
  • OVERLAPPING_VEHICLE_ROUTES: route1, route2, vehicle_id, end_time, start_time.
  • MAX_DRIVE_TIME_EXCEEDED: route, vehicle_id, drive_time, max_drive_time.
  • MAX_WORK_TIME_EXCEEDED: route, vehicle_id, work_time, max_work_time.
  • MAX_DURATION_EXCEEDED: route, stop, vehicle_id, order_id, duration, max_duration.
  • INSUFFICIENT_SERVICE_TIME: route, stop, vehicle_id, required_time, actual_time.
  • INSUFFICIENT_TRANSIT_TIME: route, stop, vehicle_id, required_time, actual_time, start_loc, end_loc.
  • ORDER_TIME_WINDOW_VIOLATION: route, stop, vehicle_id, pickup_or_delivery, order_id, stop_time, earliest, latest.
  • MAINTENANCE_LOCATION_TIME_WINDOW_VIOLATION: route, stop, vehicle_id, location_id, stop_arrival_time, stop_departure_time, earliest, latest.
  • MAINTENANCE_EVENT_MISSED: route, vehicle_id, event, occurrence, minimum_distance, maximum_distance, distance, end_distance.
  • LOCATION_TIME_WINDOW_VIOLATION: route, stop, vehicle_id, pickup_or_delivery, location_id, stop_time, earliest, latest.
  • VEHICLE_START_TIME_WINDOW_VIOLATION: route, stop, vehicle_id, finish_time, earliest, latest.
  • VEHICLE_PICKUP_TIME_WINDOW_VIOLATION: route, stop, vehicle_id, earliest, latest.
  • VEHICLE_END_TIME_WINDOW_VIOLATION: route, stop, vehicle_id, finish_time, earliest, latest.
  • INCOMPLETE_BATCH: route, stop, undelivered_orders, vehicle_id.
  • COLOCATED_PICKUP_VIOLATION: route, stop, vehicle_id, prev_loc, current_loc.
  • DEPARTURE_PRECEDES_ARRIVAL: route, stop, vehicle_id, departure_time, arrival_time.
  • ARRIVAL_PRECEDES_DEPARTURE: route, second_stop, first_stop, vehicle_id, departure_time, arrival_time.
  • NOT_ENOUGH_LOADING_BAYS: route, stop, location, vehicle_id, required_bays, available_bays, start_time.
  • VEHICLE_NOT_STICKY: route, stop, first_loc, second_loc, vehicle_id.
  • MAX_BATCHES_EXCEEDED: route, vehicle_id, max_batches, batches.
  • MAX_DROPS_EXCEEDED: route, vehicle_id, max_drops, drops.
  • LOCKED_ORDER_ASSIGNED_TO_WRONG_VEHICLE: route, stop, order_id, correct_vehicle, incorrect_vehicle.
  • LOCKED_ORDER_UNASSIGNED: order_id, vehicle_id.
  • UNNECESSARY_BREAK: route, stop, vehicle_id.
  • BREAK_TOO_SHORT: route, stop, vehicle_id, min_break_duration, time_at_stop.
  • BREAK_WHILE_LOADED: route, stop, vehicle_id.
  • SIMPLE_BREAK_TOO_SHORT: route, stop, vehicle_id, time_at_stop, required_duration, arrival_time, time_from_start.
  • UNNECESSARY_SIMPLE_BREAK: route, stop, vehicle_id, time_at_stop, arrival_time, time_from_start.
  • INSUFFICIENT_SIMPLE_BREAKS: route, vehicle_id, unmatchedBreaks.
  • INSUFFICIENT_BREAKS: route, stop, vehicle_id, actual_break_time, required_duration, required_number.
  • INSUFFICIENT_COMPARTMENT_CAPACITY: route, stop, vehicle_id, capacity, amount, which_exceeded, compartment_id.
  • VEHICLE_COMPARTMENT_VIOLATION: route, stop, vehicle_id, compartment_id, order_id.
  • COMPARTMENT_COMPATIBILITY_VIOLATION: route, stop, vehicle_id, compartment_id, order_id.
  • ORDER_COMPATIBILITY_VIOLATION: route, stop, vehicle_id, order_id1, order_id2.
  • LOAD_ORDER_COMPATIBILITY_VIOLATION: route, stop, vehicle_id, order_id1, order_id2.
  • DELIVERY_BEFORE_PRECEDING_REQUEST: route, stop.
  • ROUTE_WITH_NO_LOCATIONS: route, vehicle_id.
  • LIFO_LOAD_ORDER_VIOLATION: route, stop, vehicle_id, order_delivered, order_on_top.
  • WEIGHT_CATEGORY_LOAD_ORDER_VIOLATION: route, stop, vehicle_id, order, stop_type.
  • MAXIMUM_ROUTE_COMPARTMENTS_VIOLATION: route, vehicle_id, route_compartments, maximum_route_compartments.
  • MAXIMUM_SIMULTANEOUS_COMPARTMENTS_VIOLATION: route, stop, vehicle_id, simultaneous_compartments, maximum_simultaneous_compartments.
  • ORDER_PRECEDENCE_VIOLATION: before_order_id, after_order_id, required_gap, actual_gap.
  • BATCH_ORDER_PRECEDENCE_VIOLATION: route, stop, vehicle_id, before_order_id, after_order_id.
  • JOINT_ORDER_VIOLATION: order1_id, order2_id, unassigned_id.
  • CONDITIONAL_ORDER_VIOLATION: order1_id, order2_id.
  • NOT_ASSIGNED_TO_SAME_VEHICLE: order1_id, vehicle1_id, order2_id, vehicle2_id.
  • ORDER_DELIVERED_MORE_THAN_ONCE: route, stop, vehicle1, route2, stop2, vehicle2, num_deliveries, order_id.
  • MULTIPLE_EXCLUSIVE_ORDERS_ASSIGNED: order_ids.