Skip to content

Add routing improvement limits - #85

Closed
erickreutz wants to merge 1 commit into
ankane:masterfrom
lugg:eric/upstream-routing-improvement-limits
Closed

erickreutz wants to merge 1 commit into
ankane:masterfrom
lugg:eric/upstream-routing-improvement-limits

Conversation

@erickreutz

Copy link
Copy Markdown
Contributor

OR-Tools exposes native improvement-rate stopping through RoutingSearchParameters::improvement_limit_parameters, but the nested parameters are not available in Ruby. This adds a Ruby hash getter and setter for the coefficient and solution-distance fields.

The interface mirrors the native parameter names and remains independent from solution tracing. Existing routing search behavior is unchanged unless the parameters are set.

Expose native improvement-rate stopping through routing search parameters. Keep the interface independent from solution tracing and preserve existing behavior unless configured.
@erickreutz erickreutz changed the title feat(routing): Add improvement search limits Add routing improvement limits Jul 28, 2026
@ankane ankane closed this in 2ec19af Oct 2, 2026
@ankane

ankane commented Oct 2, 2026

Copy link
Copy Markdown
Owner

Thanks @erickreutz, added a version of this in the commit above that more closely matches the Python library.

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.

2 participants