Replies: 1 comment 4 replies
-
Hello @jason076! Honestly, I never thought of it as a score trap, but you are correct. It could be one. Thankfully, the |
Beta Was this translation helpful? Give feedback.
4 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.
-
I am wondering if the implementation of connected ranges is a score trap. I am referring to the following example from the documentation:
https://docs.timefold.ai/timefold-solver/latest/constraints-and-score/score-calculation#collectorsConnectedRanges
E.G if the solver moves job4 to the right now starting on 9:00 and ending on 10:15. Now Job4 and Job5 will have less overlap but the maximum overlap of the connected range will still be 2 for the truck equipment. Isn't this per definition a score trap? We have a similar constraint in our project and one employee of timefold suggested to us that it is better to sum up the number of jobs per equipment for each time grain. So we can check capacity violation for each time grain. In that implementation the score improves if job4 is moved to the left as previously described.
Of course our constraint is horribly slow but has no score traps. Is this why connected ranges are designed as they are? It is faster and you just accept the score traps?
Beta Was this translation helpful? Give feedback.
All reactions