mvermand wrote
drools planner to forcefully reject any "solution" that
breaks this one
rule,
continue searching for other solutions and guarantee that the "best
solution" will not propose a combination that fails this rule?
Use <termination><scoreAttained>...</></>. See manual section
termination
for more information, combine it in AND like with your current termination.
If you need to separate this constraint out from the other hard constraints,
instead of giving it just a high weight, you need to make it an extra score
level. Currently there is no build-in ScoreDefinition with 3 score levels,
so you 'll need to create a custom one (which isn't too hard). All this is
explained in the manual chapter score calculation.
Make sure you'r reading the latest manual 5.5.0.CR1
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Drools-planner-unbreakable-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.