Repository navigation
docs: update vehicle routing use case guide - #2691
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
One or more issues must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
Updates the vehicle-routing guide to use the service module, maps enrichment, asynchronous REST APIs, and incremental shadow variables.
Changes:
- Reworks the domain model and constraints for medium-score unassigned visits.
- Adds DTOs, model conversion, REST configuration, and service testing guidance.
- Updates the quickstart source link and service-module Maven setup.
| File | Description |
|---|---|
| docs/src/modules/ROOT/pages/quickstart/quarkus-vehicle-routing/vehicle-routing-solution.adoc | Updated as part of this pull request. |
| docs/src/modules/ROOT/pages/quickstart/quarkus-vehicle-routing/vehicle-routing-model.adoc | Updated as part of this pull request. |
| docs/src/modules/ROOT/pages/quickstart/quarkus-vehicle-routing/vehicle-routing-constraints.adoc | Updated as part of this pull request. |
| docs/src/modules/ROOT/pages/quickstart/quarkus-vehicle-routing/vehicle-routing-api.adoc | Updated as part of this pull request. |
| docs/src/modules/ROOT/pages/quickstart/quarkus-vehicle-routing/quarkus-vehicle-routing-quickstart.adoc | Updated as part of this pull request. |
| docs/src/modules/ROOT/pages/_attributes.adoc | Updated as part of this pull request. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
rsynek
left a comment
There was a problem hiding this comment.
Nicely written! Please see my question and comments inline; some parts may need a bit of polishing.
- Mention diminished returns termination is on by default - Use ModelRequest in the REST test instead of an ad-hoc map - The build creates src/build/openapi.json when missing - Drop the redundant getLocationSetName() override - Deduplicate locations in the convertor and getLocations() - Cover unreachable travel times, handle them in the nearby meter - Explain the Haversine local computation and fixed speed - Explain how the guide's tests relate to the quickstart's - Note why LocationInputDTO is kept and the capacity assumption
There was a problem hiding this comment.
🔵 Needs a closer look
The documentation contains an unresolved moderate issue because the constraint’s stated goal of maximizing assigned visits conflicts with its implementation, which maximizes total service duration instead.
2 open issues
2 resolved since last review
Review effort: Lite
|
@TomCools the copilot comments about changes imports are relevant; there was a change in the package structure in the service-definition module. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed because the change contains two moderate correctness gaps: unknown route keys can be silently dropped, and zero-duration unassigned visits receive no effective penalty.
No open issues 🎉
6 resolved since last review
Review effort: Lite
There was a problem hiding this comment.
🟡 Changes recommended
The documentation contains unresolved moderate and critical inconsistencies that could cause production to use the wrong travel-time provider, misstate the optimization objective, or fail on disconnected road networks.
3 open issues
Review effort: Lite
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed because the guide’s objective behavior is ambiguous for zero-duration visits, creating a moderate correctness concern about whether valid visits are actually prioritized for assignment.
No open issues 🎉
3 resolved since last review
Review effort: Lite
There was a problem hiding this comment.
🔵 Needs a closer look
The example contains an active moderate inconsistency where the maximizeVisitsAssigned constraint penalizes unassigned visits by service duration, so it may favor fewer long visits instead of maximizing the assigned visit count as documented.
No open issues 🎉
Review effort: Lite
triceo
left a comment
There was a problem hiding this comment.
In Radek's absence, and after a discussion, we will merge this as is.



Updated the vehicle routing use case guide to use the new service module. We don't describe everything in detail yet, but at least it mentions the maps service and the updated structure (to better lean into incremental) which I'm also fixing in TimefoldAI/timefold-quickstarts#1218.