Op 29-03-13 14:15, Al Ferguson schreef:
Thanks ge0ffrey.
I successfully implemented hard constraints by following your tips.
For soft constraints, I successfully implemented the highest availability
rule.
But it seems that among the examples provided, there is no situation similar
to the rule to minimize shipments (look at the
*warehouseIds.add(allocatedResource.getWarehouseId())* condition).
Rules such as "closest warehouse" depend on this factor: we want don't
want
this constraint to be calculated twice or more when more than one orderLine
is assigned to the same warehouse.
Any clue?
Look into example score rules that use "exists" or
"not".
Note: "not exists" is exactly the same as just "not"
--
View this message in context:
http://drools.46999.n3.nabble.com/Planner-drl-for-Selection-and-Decreasin...
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