Define complex dependencies and constraints between jobs in your routes
relations
array within each job. Each relation specifies:
type
indicating the constraint typejobs
that are part of this relationenforceCompatibility
is true, the solver ensures that only compatible resources work together on SAME_TIME related jobs. Resources must define their compatible partners using the compatibleResources
field.Minimum Time Interval Behavior:
When minTimeInterval
is specified, the last job in the jobs
array must arrive/depart at least minTimeInterval
seconds after all other jobs. This is useful for staggered arrivals or ensuring adequate spacing between operations.compatibleResources
field to your resource definitions:
compatibleResources
can work with anyoneenforceCompatibility: true
on SAME_TIME relationspartialPlanning
for relations that might be too restrictiveenforceCompatibility
, ensure resources have properly configured compatibleResources
lists/v2/vrp/jobs/{id}/explanation
endpoint to understand why certain relations couldn’t be satisfied in your solution.