Skip to content

feat(routing): Bind piecewise cumul costs - #3

Merged
erickreutz merged 1 commit into
masterfrom
eric/bind-routing-piecewise-cumul-costs
Jul 28, 2026
Merged

feat(routing): Bind piecewise cumul costs#3
erickreutz merged 1 commit into
masterfrom
eric/bind-routing-piecewise-cumul-costs

Conversation

@erickreutz

@erickreutz erickreutz commented Jul 28, 2026

Copy link
Copy Markdown
Member

Expose RoutingDimension#set_cumul_var_piecewise_linear_cost through Rice with Ruby array inputs. Validate curve shape and positivity before constructing the native function. OR-Tools copies the curve into the model, so search retains no Ruby objects.

Cold, warm, disabled, lifetime, objective, and validation behavior are covered. The isolated change also compiles and passes the complete suite on clean upstream v0.18.0.


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

Expose RoutingDimension piecewise linear cumul costs with Ruby array inputs. Validate curve shape before constructing the native function and rely on OR-Tools' copied model ownership during cold and warm solves.
@erickreutz
erickreutz force-pushed the eric/bind-routing-piecewise-cumul-costs branch from f493064 to 3ccc634 Compare July 28, 2026 20:14
@erickreutz
erickreutz merged commit b7fb94d into master Jul 28, 2026
7 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