<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">Op 19-11-12 17:17, Mats Norén schreef:<br>
</div>
<blockquote
cite="mid:CAAE3K7UtX1T8Ordyd4seMQ9g5am1BtSuoxErOJ=bWDM5-hUJcg@mail.gmail.com"
type="cite">Hi,<br>
I've been looking at the VRP example in Drools and I'm thinking
about using it for multi depot cvrp and / or capacitated vrp with
time windows. <br>
Has anyone else tried planner for these use cases and can maybe
shed some light on their implementation?<br>
</blockquote>
The VRP example is already capacitated.<br>
<br>
Multi-depot is pretty easy: just assign different a different
starting Location for every Vehicle.<br>
Unless you want Vehicles to change Depot sometimes, then it's a bit
more complex.<br>
<br>
Time windows is more difficult if you don't want to break
incremental score calculation.<br>
Doing an insertLogical() for the arrival time of every CustomerVisit
should work.<br>
Then it's just a matter of checking if that logically inserted fact
CustomerVisitArrivalTime falls within the TimeWindow of the
customer.<br>
<br>
<blockquote
cite="mid:CAAE3K7UtX1T8Ordyd4seMQ9g5am1BtSuoxErOJ=bWDM5-hUJcg@mail.gmail.com"
type="cite">
<br>
Regards,<br>
Mats<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>