You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f3d2d9f
Browse filesBrowse the repository at this point in the historyBrowse files
feat(routing): add optional distance matrix inputs to C++ models (#2036)
Adds optional physical-distance matrix inputs to the C++ routing model, independent of cost and transit time. This is the foundation for the distance limits and vehicle-specific tier pricing discussed in #2018; user-facing interfaces and consumers will follow separately.
- Adds registration, getters, CPU problem storage and CPU-to-device transfer.
- Validates host matrix dimensions, distance values and vehicle-type correspondence and coverage.
- Keeps distance inputs out of the solver's internal cost/time buffer and uses explicit indices for time-matrix access and detection.
Registering distance does not change scoring or add distance constraints, tier charges or a distance-minimization objective. Models that omit it retain their cost/time behavior. Native consumers should rebuild because the C++ model layouts gain members.
Local validation: all 73 tests in `ROUTING_UNIT_TEST` pass, including 13 distance-matrix tests using the public routing API. Pre-commit, clang-format and Vale pass.
Authors:
- José M Baca (https://github.com/josembd)
- Ramakrishna Prabhu (https://github.com/ramakrishnap-nv)
Approvers:
- Hugo Linsenmaier (https://github.com/hlinsen)
- Ramakrishna Prabhu (https://github.com/ramakrishnap-nv)
URL: #2036
0 commit comments