Skip to content

feat(routing): Expose restoration time limits - #7

Merged
erickreutz merged 1 commit into
masterfrom
eric/bound-routing-restoration
Oct 2, 2026
Merged

erickreutz merged 1 commit into
masterfrom
eric/bound-routing-restoration

Conversation

@erickreutz

Copy link
Copy Markdown
Member

Route restoration runs before the time limit supplied to a later solve. Expose RoutingModel#update_time_limit(seconds) so callers can set a separate native allowance after closing the model and before restoring routes.

The binding accepts finite, nonnegative seconds, including fractional values. The native limit is cooperative and may overrun. A valid restored assignment remains usable, while a nil result does not distinguish an invalid route from an exhausted allowance. Subsequent solves apply their own search limits. Regression coverage exercises restoration after exhaustion and replacement of the restoration limit by a seeded solve.

This supplies the native binding used by the planner restoration change in https://github.com/lugg/api/pull/4007.

@erickreutz
erickreutz merged commit de0fa40 into master Oct 2, 2026
6 checks passed
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.

1 participant