Skip to content

feat(routing): Bind improvement search limits - #2

Merged
erickreutz merged 1 commit into
masterfrom
eric/bind-routing-improvement-limit
Jul 26, 2026
Merged

feat(routing): Bind improvement search limits#2
erickreutz merged 1 commit into
masterfrom
eric/bind-routing-improvement-limit

Conversation

@erickreutz

@erickreutz erickreutz commented Jul 26, 2026

Copy link
Copy Markdown
Member

References ENG-1408.

Exposes OR-Tools improvement_limit_parameters on RoutingSearchParameters as a Ruby hash with the native coefficient and solution-distance fields. This keeps stopping inside OR-Tools and preserves the existing no-GVL solve paths.

The behavioral regression runs the same deterministic search with and without the native limit: the baseline reaches its 500-solution ceiling, while the limited search stops earlier and returns a traced best objective matching its assignment.

Verified with the full 108-test suite on Ruby 4.0.5, plus focused routing and solution-trace tests.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@erickreutz
erickreutz merged commit 2633136 into master Jul 26, 2026
6 checks passed
@erickreutz
erickreutz deleted the eric/bind-routing-improvement-limit branch July 26, 2026 17:27
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