Route optimization constraints
Every rule the optimizer can respect when it plans your routes, in one table: what you set, and where you set it.
Full table of route optimization constraints
Constraints are the rules a route plan must follow: vehicle capacity, driver shifts, time windows, closed roads and more. “Dashboard, API” means you set it in the routeDesk dashboard or in a request to the routeOptimizer API. “API” means only in an API request. “API, mobile app” means it is set in an API request or in the mobile driver app.
Vehicles and shifts
| Constraint | What you set | Where |
|---|---|---|
| Vehicle capacity | Maximum load per vehicle by weight (kg) or volume (m³). Capacity in units: API. | Dashboard, API |
| Allowed overload | A percentage by which a vehicle may exceed its capacity. | Dashboard, API |
| Two compartments | Separate capacities, for example rack and floor, with automatic assignment of stops, splitting of big orders and a delivery priority per compartment. | Dashboard, API |
| Shift hours | Start and end time per vehicle, and the latest time all work must be finished. | Dashboard, API |
| Start and end location | A depot per vehicle: a terminal, an address or a stop. The vehicle returns to the start or ends at its last stop. | Dashboard, API |
| Lunch break time | One break per vehicle: the earliest start, the latest end and the duration. | Dashboard, API |
| Lunch break place | The place where the driver takes the break: the route passes through it. | API, mobile app web dashboard: coming soon |
| Several tours per day | The vehicle goes back to the warehouse and out again: maximum number of tours and reload time at the warehouse. | Dashboard, API |
| Maximum stops | A limit on the number of stops per vehicle, and per customer type. | Dashboard, API |
| Vehicle type | Car, truck, bus, bicycle, motorcycle, scooter or on foot. Travel times follow the chosen type. | Dashboard, API |
| Vehicle speed coefficient | A coefficient that adjusts the travel speed of one vehicle, set per vehicle in Settings > Default parameters or in the vehicle constraints. | Dashboard, API |
| Vehicle cost | A fixed cost per vehicle and a global cost of a new vehicle: the higher it is, the fewer vehicles are used. | Dashboard, API |
| Vehicle limited to areas | A vehicle serves only the areas you list for it. | API |
Stops and orders
| Constraint | What you set | Where |
|---|---|---|
| Time windows | Earliest and latest arrival per stop. An open side falls back to the shift start or end. | Dashboard, API |
| Service time | Time spent at a stop, set per stop or per stop type. | Dashboard, API |
| Stop priority | A priority level per stop. | Dashboard, API |
| Load per stop | Weight, volume or units of each stop. | Dashboard, API |
| Preferred vehicle | Pin a stop to one or several vehicles, for example by plate number. | Dashboard, API |
| Pickup and delivery pairs | The pickup is visited before its delivery, by the same vehicle. Dashboard: orders from the system. Plain CSV import: API. | Dashboard, API |
| Visit order | A stop must come before or after other stops. | API |
| Grouping of stops | Visit stops with the same coordinates, the same customer or within a radius in meters as one stop. | Dashboard, API |
Roads and areas
| Constraint | What you set | Where |
|---|---|---|
| Excluded areas | Draw or select areas on the map: for this run, no route uses roads inside them. | Dashboard, API |
| Dated road bans | Closed roads or areas with a start and end date, saved once and used by every run. | API |
| Avoid ferries, highways and tolls | Try to avoid ferries, highways, toll roads, living streets and track roads. A preference, applied where possible. | Dashboard, API |
| Slower zones (speed inside polygons) | Make travel inside chosen polygons slower: multiply the travel time by a whole number or add a fixed cost. Approximate, based on the straight line between two stops. | API |
| Delivery areas | Draw polygons on the map, save or import them, and optimize only the stops inside the chosen areas. | Dashboard, API |
| Planning by area | An extra cost when a route moves from one area to another, and distance limits inside and between areas. | Dashboard, API |
Optimization modes
| Constraint | What you set | Where |
|---|---|---|
| Whole-fleet optimization | One plan for all selected areas and all selected vehicles in a single run, with no area-by-area splitting. | Dashboard, API |
| Balance load | Distribute the load evenly between the selected vehicles. | Dashboard, API |
| Optimize by distance or duration | Choose whether the plan minimizes kilometers or time. | Dashboard, API |
| Distance between stops | A maximum distance between two consecutive stops, by default or per area. | Dashboard, API |
| Maximum waiting time | The longest idle time allowed between two stops. | Dashboard, API |
| Automatic clustering | Split the stops into clusters by distance or by the number of clusters. | Dashboard, API |
Need a rule that is not in the table? Contact us.
Plan routes with your own rules
Set vehicles, shifts and road rules in the browser with routeDesk, or send the same constraints in a request to the routeOptimizer API.