Find the best available time slots for new jobs in existing routes
initialResource
and initialArrival
. Jobs without these fields are considered candidates for suggestion.initialResource
and initialArrival
setScore Type | Description | Impact |
---|---|---|
hardScore | Constraint violations that must be avoided | Must be 0 for feasible solutions |
mediumScore | Important but flexible constraints | Lower is better |
softScore | Optimization objectives like travel time | Lower is better |
feasible | Overall feasibility indicator | true/false |
executedAfter
field indicates where the job would be inserted:
Define existing routes accurately
initialResource
and initialArrival
values to represent your actual schedule.Set appropriate limits
maxSuggest
to balance between offering choices and API performance. Start with 5-10 suggestions.Handle infeasible suggestions
onlyFeasibleSuggestions
is false, check the feasible
flag and hardScore
to identify problematic suggestions.Consider time granularity
suggestionTimeGranularity
to match your booking intervals (e.g., 900 for 15-minute slots).