Hi Geoffrey,
Do you think it would be possible to integrate the nurse rostering example with the vrp example? By that I mean to schedule nurses *and* stops in an optimal way. At the same time. 
I'm looking at a home care service problem where there is a need for weekly schedules for the nurses as well as an ambition to minimize the driving distance as well. 

Is it feasible or is it troublesome to have several planning entities at the same time?

Regards,
Mats



On Mon, Mar 4, 2013 at 4:49 PM, Mats Norén <mats.noren@gmail.com> wrote:
Thanks Geoffrey,

On Mon, Mar 4, 2013 at 4:33 PM, Geoffrey De Smet <ge0ffrey.spam@gmail.com> wrote:

The example only does the capacitated vehicle routing problem (VRP + capacity limits), not the windowed vehicle routing problem.


By "your example" I meant the pseudo rule you sent me in a previous mail and not the  cvrp example in drools-planner-examples.

Should I add each CustomerTimeWindow as a fact in the VrpSchedule.getProblemFacts?
Yes, so your score rules can exploit it.
Also, you 'll want to make sure that your score rule penalize "the number of minutes that a time window isn't met".


Ok, by this you mean the difference in minutes from the arrivaltime and the customer timewindow? i.e., the largest of (arrivalTime - endTime) and (startTime-arrivalTime) given that  (arrivalTime < startTime or arrivalTime > endTime) ?

Regards,
Mats

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users