Unassigned jobs

When job cannot be assigned, it goes to the list of unassigned jobs:

  "unassigned": [
    {
      "jobId": "job2",
      "reasons": [
        {
          "code": "TIME_WINDOW_CONSTRAINT",
          "description": "cannot be visited within time window",
          "details": [
            {
              "vehicle_id": "vehicle_1",
              "shift_index": 0
            }
          ]
        }
      ]

Each item in this list has job id, reason code, description and, optionally, some extra details like vehicle id and shift index. You will get as many reasons as tours in the solution. This information can be used to understand why the job was not added to the existing tours.

Reasons of unassigned jobs

codedescriptionpossible action
NO_REASON_FOUNDunknown
SKILL_CONSTRAINTcannot serve required skillallocate more vehicles with given skill?
TIME_WINDOW_CONSTRAINTcannot be visited within time windowallocate more vehicles, relax time windows, etc.?
CAPACITY_CONSTRAINTdoes not fit into any vehicle due to capacityallocate more vehicles?
REACHABLE_CONSTRAINTlocation unreachablechange job location to routable place?
MAX_DISTANCE_CONSTRAINTcannot be assigned due to max distance constraint of vehicleallocate more vehicles?
MAX_DURATION_CONSTRAINTcannot be assigned due to max duration constraint of vehicleallocate more vehicles?
BREAK_CONSTRAINTbreak is not assignablecorrect break location or/and time window?
LOCKING_CONSTRAINTcannot be served due to relation lockreview relations?
AREA_CONSTRAINTcannot be assigned due to area constraintmake sure that jobs inside allowed areas
TOUR_SIZE_CONSTRAINTcannot be assigned due to tour size constraint of vehiclemake sure that there are enough vehicles to serve jobs
TOUR_ORDER_CONSTRAINTcannot be assigned due to tour order constrainttour order might be too strict or not vehicles enough
GROUP_CONSTRAINTcannot be assigned due to group constrainttry to reduce amount of jobs in the group?
COMPATIBILITY_CONSTRAINTcannot be assigned due to compatibility constraintreview job's compatibilities
RELOAD_RESOURCE_CONSTRAINTcannot be assigned due to reload resource constraintreview shared resource allocation for vehicle reloads

Example

An example of problem with unassigned jobs can be found here.