Using AddNoOverlap, would like to have the model track individual overlaps
#4659
Unanswered
atrauzzi
asked this question in
CP-SAT questions
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Heads up, I'm using the C# lib, but I doubt that'll impact the answer I'm looking for! 🙂
I'm working with two sets of intervals. First set are made using
model.NewOptionalIntervalVar, second set are made usingmodel.NewIntervalVar. Overall, I have things working quite well with aAddNoOverlapusing both full lists, but I'd like to enhance the model so that when it's solved, I can come back and get more granular insights into which overlaps occurred.To accomplish this, I have started with the following:
What I'm thinking is that I need to break out a
conflictedboolean for each combination ofavailabilityandexclusion(I'm not worried about that getting too heavy as I will always be using a small set of data). This means that I no longer useAddNoOverlapon both full sets, but instead iterate over eachproviderAvailabilityand add aNoOverlapconstraint for each permutation withscheduleExclusions.The question is: What I should be doing with this
conflictedboolean that I've made to ensure it gets a value based on whether theconstraintI've created has passed or failed?Beta Was this translation helpful? Give feedback.
All reactions