[rules-users] Planner: drl for Selection and Decreasing

Geoffrey De Smet ge0ffrey.spam at gmail.com
Fri Mar 29 09:40:27 EDT 2013


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-Decreasing-tp4022999p4023118.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



More information about the rules-users mailing list