<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">On 11-04-13 18:38, Mats Nor&eacute;n wrote:<br>
    </div>
    <blockquote
cite="mid:CAAE3K7VkSdSLEF1Jsk7KTtBC6oa8ju1jDG8Y_QQKw8z9R9MXHA@mail.gmail.com"
      type="cite">
      <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.&nbsp;</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. <br>
        </div>
      </div>
    </blockquote>
    That could be multiple entityClasses.<br>
    Or it could just be 1 entityClass with multiple variables.<br>
    <blockquote
cite="mid:CAAE3K7VkSdSLEF1Jsk7KTtBC6oa8ju1jDG8Y_QQKw8z9R9MXHA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div style=""><br>
        </div>
        <div style="">Is it feasible or is it troublesome to have
          several planning entities at the same time?</div>
      </div>
    </blockquote>
    Definitely feasible. Local search is designed to be able to deal
    with multiple entityClasses.<br>
    The Construction heuristics in 5.5 probably don't not support
    multiple entityClasses,<br>
    but the new implementation of Construction Heuristics in 6 should
    support it (although they aren't enabled by default yet for
    6.0.0.Beta1 - you have to explicitly define the &lt;placer&gt;
    configuration).<br>
    Current workaround is to do a simplistic SolutionInitializer OR use
    the &lt;placer&gt; api (which will be made the default in the coming
    weeks).<br>
    <br>
    <blockquote
cite="mid:CAAE3K7VkSdSLEF1Jsk7KTtBC6oa8ju1jDG8Y_QQKw8z9R9MXHA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <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&eacute;n <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:mats.noren@gmail.com" target="_blank">mats.noren@gmail.com</a>&gt;</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">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:ge0ffrey.spam@gmail.com"
                        target="_blank">ge0ffrey.spam@gmail.com</a>&gt;</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&nbsp; 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&nbsp; (arrivalTime
                    &lt; startTime or arrivalTime &gt; 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 moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
                        href="mailto:rules-users@lists.jboss.org"
                        target="_blank">rules-users@lists.jboss.org</a><br>
                      <a moz-do-not-send="true"
                        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>
      <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>