Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetCumulVarSoftLowerBound for route duration #1372

Closed
KaramallahG opened this issue Jun 21, 2019 · 2 comments
Closed

SetCumulVarSoftLowerBound for route duration #1372

KaramallahG opened this issue Jun 21, 2019 · 2 comments
Assignees
Labels
Feature Request Missing Feature/Wrapper Solver: Routing Uses the Routing library and the original CP solver
Milestone

Comments

@KaramallahG
Copy link

It seemed that one can set a soft constraint on the start and the end of the route using SetCumulVarSoftLowerBound

index= routing.End(1)
time_dimension.SetCumulVarSoftLowerBound(index,60*60, 5)

Instead of limiting the beginning and the end, I want to make it more flexible by limiting the duration (end-start)
something like

index = routing (End(1) - Start(1))
time_dimension.SetCumulVarSoftLowerBound(index,60*60, 5)

is there such a method that can do that?
Many Thanks

@lperron lperron added Help Needed Modeling/Usage problem Solver: Routing Uses the Routing library and the original CP solver labels Jun 21, 2019
@lperron lperron added Feature Request Missing Feature/Wrapper and removed Help Needed Modeling/Usage problem labels Sep 7, 2019
@lperron
Copy link
Collaborator

lperron commented Sep 7, 2019

Actually not, there is a soft span upper bound in C++.
Nothing for the lower bound.

@Mizux Mizux self-assigned this Mar 23, 2020
@Mizux Mizux added this to the v7.7 milestone Mar 23, 2020
@Mizux Mizux modified the milestones: v7.7, v7.8 Jun 12, 2020
@Mizux Mizux modified the milestones: v7.8, v7.9 Jul 21, 2020
@Mizux Mizux modified the milestones: v8.0, v8.1 Sep 9, 2020
@Mizux
Copy link
Collaborator

Mizux commented Nov 24, 2020

Why not using a "duration" dimension instead of a "time" dimension and make it start a zero so you can use SetCumulVarSoftLowerBound() on end node....

@Mizux Mizux closed this as completed Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Missing Feature/Wrapper Solver: Routing Uses the Routing library and the original CP solver
Projects
None yet
Development

No branches or pull requests

3 participants