forEachUniquePair usage #1987
jerome1968
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Hi @jerome1968 Your constraint is a bit weird with the fact it takes a String to define if the visit is actually subject to the constraint. I would model this instead as:
Changing your domain like this, makes the whole thing a lot easier. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello, I see in the quickstarts that constraints with forEachUniquePair use a Joiner, but in my case I do not need any join to be done. In the constraint below, I want to set that two specific visits must have to be assigned to the same carrier. In my solution, this constraint is violated with score 0 (though the constraint weight is 200). If a given visit1 is subject to the constraint, the other visit2 is known as the constraint parameter for visit1 (getParameter()). May be I missed something with the forEachUniquePair usage... Any advice?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions