Sync Suggest VRP
Synchronous suggest operation for low latency results.
Exactly one job in jobs may be left unassigned - that is the job being suggested. Every other job must carry initialResource (and normally initialArrival) to describe the schedule the new job is inserted into. Alternatively, one whole job relation may be unassigned, in which case every job named by that relation is left without initialResource. Any other combination is rejected.
Note that initialArrival is a sequencing hint, not a pin: the solver re-times already assigned jobs as early as the shift allows. Use windows on a job to hold a committed time.
Body
OnRoute Request for solving, evaluating
List of available resources (vehicles, drivers, workers) that can be assigned to perform jobs. Each resource defines their working schedules, location constraints, capacity limits, and capabilities. At least one resource is required, with a maximum of 2000 resources per request.
1 - 2000 elementsList of jobs/tasks to be assigned to resources. Each job specifies service requirements, location, time constraints, duration, and resource preferences. Jobs represent the work that needs to be scheduled and optimized. At least one job is required, with a maximum of 10,000 jobs per request.
1 - 10000 elementsCost configuration for financial-based optimization. When provided, the solver derives internal weights from these cost values, allowing optimization decisions to be expressed in monetary terms. All costs are in EUR (or your preferred currency - treated as unitless by the solver).
Response
Suggestions
OnRoute response from solve
Reports that the explanation is incomplete because a limit in options.explanation was hit. Absent on a complete explanation. When present, a job with no entry in alternatives - and an unserved job whose unservedReasons list is empty - may simply never have been analysed.