On 18-07-13 05:30, john poole wrote:
I'm using the Nurse Rostering code as a base and adding my own
rules, etc.
Are there any examples of "wanted" patterns? It looks like all the input
files, and the drl rules are all for "unwanted" patterns. I just want to
make sure I'm not missing something obvious.
Positive constraints (aka
"wanted" patterns) are fully supported in
OptaPlanner.
Just none of the example use them (IIRC).
Instead of doing this for an unwanted pattern:
scoreHolder.addSoftConstraintMatch(kcontext, -
$pattern.getWeight());
do this for a wanted pattern:
scoreHolder.addSoftConstraintMatch(kcontext, $pattern.getWeight());
Also, you probably want your solver configuration's
constructionHeuristic not use any pickEarly.
--
View this message in context:
http://drools.46999.n3.nabble.com/Wanted-Patterns-in-Planner-Rostering-tp...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users