[rules-users] [Drools Planner] Multi depot CVRP / CVRPTW

Mats Norén mats.noren at gmail.com
Tue Nov 20 07:54:06 EST 2012


Ok, so on the first rule should fire for all occurrences of a Customer
since each Customer should have at least one visit?

It's not another planning variable,
> instead,
> do something like
>
> when
>   ...
> then
>    insertLogical(new CustomerVisitArrivalTime(...));
> end
>
> when
>     CustomerVisitArrivalTime($c : customer, $a : arrival)
>     not CustomerTimeWindow(customer == $c, $a > start, $a < end)
> then
>     insertLogical(new IntConstraintOccurrence(...))
> end
>
> See nurseRosteringScoreRules.drl for an example of use of
> insertLogical's like that
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>

Btw, thanks for your help and thanks for a great product!

Regards,
Mats
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20121120/d83b9780/attachment.html 


More information about the rules-users mailing list