Route Plan Fleet
route_plan_fleetCapacitated, time-windowed routing for a fleet over up to 200 stops. PREMIUM (license).
Typical input {"stops": [{"id": "depot", "window": [480, 1080]}, {"id": "A", "demand": 3, "window": [540, 720], "service_min": 10}, ...], "matrix": [[...]], "vehicles": [{"id": "van1", "capacity": 10}, {"id": "van2", "capacity": 8, "max_distance": 120}]} returns {"routes": [{"vehicle": "van1", "stops": [{"id": "A", "arrive_min": 545, ...}], "distance": 42.5, "load": 9}], "unserved": [], "solver_status": "FEASIBLE"}. Windows and service times are minutes from the start of the day; travel time comes from time_matrix (minutes) or, if absent, the distance matrix read as minutes. Set drop_penalty to allow stops to be left unserved at that cost instead of returning INFEASIBLE. Use for daily dispatch. Not a map service; bring your own matrices. Errors: on invalid, missing, or malformed input this tool never raises a protocol error — it returns {"error": ""} (for example {"error": "stops must be a list of stop objects, depot first"}). Every call is read-only and idempotent, so after correcting the input it is always safe to retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depot | No | index of the depot in stops (default 0). | |
| stops | Yes | depot first; each: id, demand, window [earliest_min, latest_min], service_min. | |
| matrix | Yes | square distance matrix in your units. | |
| vehicles | Yes | list of {id, capacity, max_distance}; capacity in the units of demand. | |
| time_matrix | No | optional square travel-time matrix in minutes (defaults to matrix). | |
| drop_penalty | No | cost of leaving a stop unserved (0 = every stop must be served). | |
| time_limit_s | No | solver time budget in seconds (default 10, max 60). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||