<div dir="ltr"><div>Thanks Geoffrey,<br></div><div class="gmail_extra"><br><div class="gmail_quote">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 class="im"><br></div></div></blockquote><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><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 class="im">
<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 class="h5"><br></div></div></div></blockquote><div><br></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 bgcolor="#FFFFFF" text="#000000"><div><div class="h5">
<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>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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></blockquote></div><br></div></div>