Skip to content

docs: update vehicle routing use case guide - #2691

Merged
triceo merged 15 commits into
TimefoldAI:mainfrom
TomCools:docs/update-vehicle-routing
Dec 1, 2026
Merged

triceo merged 15 commits into
TimefoldAI:mainfrom
TomCools:docs/update-vehicle-routing

Conversation

@TomCools

Copy link
Copy Markdown
Contributor

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Medium severity · 1 Low severity

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.

@triceo triceo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am adding a few comments, but mostly this PR is for @rsynek to review.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Review effort: Lite
Findings: 1 Low severity

Open (1)
Resolved since last review (2)

Copilot AI review requested due to automatic review settings September 29, 2026 08:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Review effort: Lite
Findings: 1 High severity · 1 Low severity

Open (2)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Review effort: Lite
Findings: 1 High severity

Open (1)
Resolved since last review (2)

Copilot AI lite review requested due to automatic review settings October 4, 2026 13:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active critical and moderate issues remain, including crashes on unreachable routes, inefficient duplicate location handling, and an incorrect visit-count constraint definition.

4 open issues

Review effort: Lite

@rsynek rsynek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change still contains multiple moderate documentation import errors that would make the provided service-definition and REST examples fail to compile.

6 open issues
2 resolved since last review

Review effort: Lite

@rsynek

rsynek commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

@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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

Copilot AI lite review requested due to automatic review settings November 24, 2026 12:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 triceo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Radek's absence, and after a discussion, we will merge this as is.

This branch was successfully deployed

1 active and 1 inactive deployments
documentation (preview) — bf902d8e Deployed Dec 1, 2026 by TomCools via Build Documentation #936
internal — bf902d8e Deployed Dec 1, 2026 by TomCools via approval_required #936
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants