Repository navigation
Conversation
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved issues were identified that would block approval.
Review effort: Lite
Findings: None
What changed in this PR
Improves vehicle-routing score calculation incrementality by replacing route-wide demand and driving-time loops with shadow variables and last-visit aggregation.
Changes:
- Adds cumulative demand and driving-time shadow data to visits.
- Updates vehicle totals to use the final route visit.
| File | Description |
|---|---|
| use-cases/vehicle-routing/src/main/java/org/acme/vehiclerouting/domain/Visit.java | Updated as part of this pull request. |
| use-cases/vehicle-routing/src/main/java/org/acme/vehiclerouting/domain/Vehicle.java | 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.
This comment has been minimized.
This comment has been minimized.
triceo
left a comment
There was a problem hiding this comment.
LGTM if you've seen FULL_ASSERT pass.
|
This pull request, as it stands, would leave the Solver documentation stale in the places below; an automated check found these issues and can be wrong.
The documentation fix belongs in A new commit on the branch replaces this comment, and drift that is still there when the group merges gets a docs pull request against
|
Description of the change
The quickstart setup used foreach loops to calculate totals on the vehicle. This is bad for incremental score calculation.
Replaced that with a shadow variable on Visits, and only take the last element on the vehicle and add the home stretch and capacity.
Checklist
Development
Code Review