How to pre-check constraints conflict in timefold? #1444
Replies: 2 comments 1 reply
-
Hello @hangocanh2303,
and:
These two pieces of constraint streams would do the exact opposite, and if they are both penalized as a hard constraint, then the solution is guaranteed to break hard constraints. The only way to figure this out reliably would be to parse the Java code, somehow figure out what the filters do, and realizing that they are in conflict. We do not have any tools for this, and I am a bit skeptical that it is feasible. Especially considering that the above example is only the most simplistic one, and real world use cases would be much harder to introspect. |
Beta Was this translation helpful? Give feedback.
-
@triceo thank you for your response. I mean: |
Beta Was this translation helpful? Give feedback.
-
Hi everyone
I have a question
When the user enters multiple constraints that conflict with each other such that it is certain that no solution can satisfy both, how can we pre-check this, explain it, and notify the user early?
Beta Was this translation helpful? Give feedback.
All reactions