By Anant MishraDesign study
Fictional vehicle, visits, loads and durations. Offline software checks only. No real route, optimizer, AI planner, municipal deployment, policy comparison or measured saving is claimed.
Design feature 01
Four synthetic trip cases
Design feature 02
Explicit capacity and time boundaries
Design feature 03
No optimizer or field trial
Executive Summary
Checking intermediate payload, full-unload assumptions, service-start windows, waiting and final shift completion for a supplied fictional trip, before claiming plan quality.
Architectural Deep Dive
A fictional trip, not a deployed dispatch system
This Design study proposes a constraint check for one supplied waste-collection trip. The vehicle, pickups, unloading visits, capacity and durations are invented. No municipality, client, road network, driver, facility or actual collection result is represented.
The implemented component is a small offline arithmetic reference and synthetic software tests. It does not generate a route, call an AI model, optimize an objective, query maps or run a collection policy. Its purpose is to identify violations of explicitly declared constraints before a future comparison treats a proposed trip as usable.
Declare the model's limits first
The proposed contract starts one vehicle empty at relative minute zero. It accepts a nonempty ordered list of visits and requires the final visit to be an unload. Payload uses integer grams and durations use whole minutes. Travel times are supplied per leg rather than calculated from coordinates.
Each visit declares its kind, travel duration, service duration, pickup quantity and earliest and latest service-start minutes. Stop IDs identify fictional visits, not real assets. They must be unique within the supplied trip. The reference does not compare these visits with an external service plan, so complete coverage remains outside its scope.
Google's capacity-routing documentation demonstrates the need to respect a vehicle's load limit along its route. This study uses that constraint concept without executing the documented solver or adopting its example data. Our pickup quantities and capacity are independent inventions. [1]
Inspect the four-visit base case
The fictional vehicle capacity is 1,000 kilograms. Its sequence is pickup A at 600 kilograms, unload U1, pickup B at 500 kilograms and unload U2. Every leg takes ten minutes. Each pickup takes five minutes, and each full unload takes ten.
With no waiting, the first service starts at minute ten and ends at fifteen. U1 starts at twenty-five and ends at thirty-five. B starts at forty-five and ends at fifty. U2 starts at sixty and ends at seventy. All service starts fit the base fixture's declared windows and completion fits its ninety-minute shift limit.
The resulting 600-kilogram peak and seventy-minute elapsed duration are computed from synthetic inputs. They establish no real payload availability, unloading speed or travel time. Full unloading resets the planned load to zero as an explicit assumption; actual facility admission and completed unloading would require separate evidence.
Test three different failure boundaries
The over-capacity variant places both pickups before the first unload. Its planned load reaches 1,100 kilograms against the 1,000-kilogram limit. A later reset to zero leaves the earlier violation visible.
A second variant keeps the original sequence but sets U2's latest permitted service start to minute fifty-five. The calculated start at sixty violates that window. A third retains the base windows but limits the shift to sixty-five minutes, earlier than the calculated final completion at seventy.
The four published fixture cases therefore comprise one sequence that passes the declared arithmetic constraints and three that fail them. They are not four field trials, a success rate or a comparison of real collection policies.
Specify the meaning of a time window
Google's time-window routing guide distinguishes time-constrained visits from an unconstrained distance-only example. It provides a primary reference for making timing part of the model. This release does not implement OR-Tools, reproduce its solver results or claim an optimized route. [2]
For this reference, service starts at the later of arrival and the earliest start. Waiting counts toward elapsed time. The latest start is inclusive; it is not a required completion deadline. Finishing service after that latest start is permitted if the separate shift limit is still respected.
A real facility's completion deadline, closing process or queue would need additional constraints. A future implementation must also decide how to represent road uncertainty, volume limits, incompatible waste, partial unloading and equipment availability. None is silently approximated here.
Keep invalid input distinct from an infeasible proposal
The checker rejects malformed records, missing values, negative quantities, booleans masquerading as integers, reversed windows, unknown visit kinds, inconsistent units and duplicate visit IDs. It does not supply default travel or pickup values when evidence is absent.
A structurally valid proposal can still violate capacity, a start window, the shift limit or the required unloading finish. Those issues appear in its result with the hypothetical visit trace. The checker continues arithmetic after a violation for inspection, while retaining a failed overall constraint result. That continuation does not describe executed movement.
What can be reproduced now
The AM-RP-002 preparation pack links the fixed four-case fixture, reference, counterexample tests and contract guide. They run offline with the Python standard library. Earlier collection counting, observation eligibility and material-account files remain unchanged.
The companion essay explains the interpretation. Next work needs authorized fleet and service data, verified capacity and travel/service assumptions, complete plan coverage, relevant operating rules, uncertainty handling and accountable field evaluation. Digital-twin policy comparison, AI optimization, measured savings, DGX experiments, peer review and scholarly indexing remain unestablished.
Proposed approach
- Implemented
- Offline constraint-check reference
- Pending
- Fleet data and policy evaluation
Sources
- Capacity Constraints — Google OR-Tools documentation; reviewed 8 November 2026
- Vehicle Routing Problem with Time Windows — Google OR-Tools documentation; reviewed 8 November 2026
Related reading
Read the publishing standards or suggest a correction.