<div dir="ltr">Hi Geoffrey,<div style>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. </div>
<div style>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. </div><div style><br></div><div style>Is it feasible or is it troublesome to have several planning entities at the same time?</div>
<div style><br></div><div style>Regards,</div><div style>Mats</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 4, 2013 at 4:49 PM, Mats Norén <span dir="ltr"><<a href="mailto:mats.noren@gmail.com" target="_blank">mats.noren@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks Geoffrey,<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div class="im">On Mon, Mar 4, 2013 at 4:33 PM, Geoffrey De Smet <span dir="ltr"><<a href="mailto:ge0ffrey.spam@gmail.com" target="_blank">ge0ffrey.spam@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<br>The example only does the capacitated vehicle routing problem (VRP +
capacity limits), not the windowed vehicle routing problem.<div><br></div></div></blockquote></div><div><br>By "your example" I meant the pseudo rule you sent me in a previous mail and not the cvrp example in drools-planner-examples. <br>
</div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000"><div>
<blockquote type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
Should I add each CustomerTimeWindow as a fact in the
VrpSchedule.getProblemFacts?<br>
</div>
</div>
</blockquote></div>
Yes, so your score rules can exploit it.<br>
Also, you 'll want to make sure that your score rule penalize "the
number of minutes that a time window isn't met".<div><div><br></div></div></div></blockquote><div><br></div></div><div>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) ?<br>
<br></div><div>Regards,<br>Mats<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im"><div bgcolor="#FFFFFF" text="#000000"><div>
<div>
<blockquote type="cite"><fieldset></fieldset>
<br>
<pre>_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a></pre>
</blockquote>
<br>
</div></div></div>
<br></div><div class="im">_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></blockquote></div><br></div></div>
</blockquote></div><br></div>