Skip to content

VRP with Time Windows - More than 1 time window per location #456

@ilaif

Description

@ilaif

Hey guys,

Amazing library!

I have a situation where a location (or "customer") has two or more available time windows (let's say it's open in the morning, closed for siesta, and then open again until the evening).
The following SetRange line of code: time_dimension.CumulVar(order).SetRange(start, end) gives one such constraint, how can I add two with "OR" logic between them?

Thanks,
Ilai

Metadata

Metadata

Assignees

Labels

Solver: RoutingUses the Routing library and the original CP solver

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions