<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <br>
    <br>
    Op 25-10-11 15:57, Guilherme Kunigami schreef:
    <blockquote
cite="mid:CAK0MeX4kANh+e_6Air-bQpnZvT2dHahjpVTXRitwW2XO1Lg-pA@mail.gmail.com"
      type="cite">I'm trying to upgrade from drools 5.2.0 to 5.3.0 and
      having some difficulties with the planner benchmark.
      <div><br>
      </div>
      <div>I'd like to make a set of move factories common to all local
        search solvers, by adding them to&nbsp;inheritedSolverBenchmark
        block. But it seems that the localSearch environment always
        requires a selector, so I can't specify the localSearch
        environment for the solverBenchmark's &nbsp;without providing a
        selector. Here's a piece of code that gives runtime error:&nbsp;<a
          moz-do-not-send="true" href="http://paste.ubuntu.com/718806/">http://paste.ubuntu.com/718806/</a></div>
    </blockquote>
    From the UpgradeFromPreviousVersionRecipe.txt:<br>
    <br>
    Warning for *SolverBenchmarkConfig.xml:<br>
    &nbsp; If the &lt;inheritedSolverBenchmark&gt; contains a
    &lt;selector&gt;, &lt;acceptor&gt; or &lt;forager&gt;,<br>
    &nbsp; that can no longer be inherited individually. Copy the
    &lt;selector&gt;, &lt;acceptor&gt; or &lt;forager&gt; to every
    &lt;solverBenchmark&gt;.<br>
    &nbsp; Because a benchmark specific &lt;localSearch&gt; will not
    overwrite the inheriting &lt;localSearch&gt;,<br>
    &nbsp; but instead add an extra localSearch phase, which will result in 2
    separate, sequential localSearch phases.<br>
    <br>
    <br>
    This is annoying indeed... but as we can now define multiple phases
    to be run sequentially for 1 solver, for example<br>
    &lt;localSearch&gt;20 minutes simulated
    annealing&lt;/localSearch&gt;<br>
    &lt;localSearch&gt;10 minutes tabu search&lt;/localSearch&gt;<br>
    I haven't see a good way yet on how to define inheriting that it
    works properly.<br>
    If you got an idea, open an issue (issues.jboss.org JBRULES) and
    clearly describe it there.<br>
    <blockquote
cite="mid:CAK0MeX4kANh+e_6Air-bQpnZvT2dHahjpVTXRitwW2XO1Lg-pA@mail.gmail.com"
      type="cite">
      <div><br>
      </div>
      <div>The error is:</div>
      <div>Exception in thread "main"
        java.lang.IllegalArgumentException: A selector requires
        configuration, for example a moveFactoryClass.</div>
      <div><br>
      </div>
      <div>--- Note ---</div>
      <div><br>
      </div>
      <div>If I understood correcly, the following configuration from
        examination examples:</div>
      <div><br>
      </div>
      <div>examinationStepLimitSolverBenchmarkConfig.xml</div>
      <div><br>
      </div>
      <div>contains a bug, because it specifies a maximum step count for
        a general solver</div>
      <div><br>
      </div>
      <div>
        <div>&lt;termination&gt;</div>
        <div>&nbsp; &nbsp; &lt;maximumStepCount&gt;70&lt;/maximumStepCount&gt;</div>
        <div>&lt;/termination&gt;</div>
      </div>
      <div><br>
      </div>
      <div>This gave the following exception:</div>
      <div><br>
      </div>
      <div>Exception in thread "main"
        java.lang.UnsupportedOperationException: StepCountTermination
        can only be used for phase termination.</div>
    </blockquote>
    Thanks for reporting this, I 'll fix it.<br>
    <blockquote
cite="mid:CAK0MeX4kANh+e_6Air-bQpnZvT2dHahjpVTXRitwW2XO1Lg-pA@mail.gmail.com"
      type="cite">
      <div><br>
      </div>
      <div>
        <div>Thanks,</div>
      </div>
      <div><br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
    <pre class="moz-signature" cols="72">-- 
With kind regards,
Geoffrey De Smet</pre>
  </body>
</html>