Note that there are some explanatory texts on larger screens.

plurals
  1. PODrools Planner: Planner not providing expected result based on Best Score
    primarykey
    data
    text
    <p>I have tried posting on the user forum for Drools, but haven't been getting any responses (I am sure they are just busy), so I am hoping to attract a wider audience here.</p> <p>I am very confused by the results I am getting as they seem to not be providing me with the "best score". Here is some of the log output: </p> <pre><code>[construction steps] 2013-03-13 08:00:08,305 [com....] INFO Phase constructionHeuristic ended: step total (60), time spend (2222), best score (-200hard/-2780soft). [local search steps] 2013-03-13 08:00:21,807 [com....] INFO Phase localSearch ended: step total (42), time spend (15724), best score (0hard/-2495soft). 2013-03-13 08:00:21,807 [com....] INFO Solving ended: time spend (15724), best score (0hard/-2495soft), average calculate count per second (3748). </code></pre> <p>However, the results it gives me back contains a broken hard constraint (even though the log clearly states "Solving ended: time spend (15724), best score (0hard/-2495soft)") - it is giving me a result with score -200hard/-2495soft (which appears to be the hard score of the construction phase and the soft score of the local search phase). Is this how it is supposed to be? Did I miss something in the manual (I have read it, but I haven't digested it completely)? </p> <p>Here is most of my solver config (just the potentially relevant portion): </p> <pre><code>&lt;termination&gt; &lt;terminationCompositionStyle&gt;OR&lt;/terminationCompositionStyle&gt; &lt;maximumSecondsSpend&gt;60&lt;/maximumSecondsSpend&gt; &lt;scoreAttained&gt;0hard/0soft&lt;/scoreAttained&gt; &lt;/termination&gt; &lt;constructionHeuristic&gt; &lt;constructionHeuristicType&gt;FIRST_FIT_DECREASING&lt;/constructionHeuristicType&gt; &lt;constructionHeuristicPickEarlyType&gt;FIRST_LAST_STEP_SCORE_EQUAL_OR_IMPROVING&lt;/constructionHeuristicPickEarlyType&gt; &lt;/constructionHeuristic&gt; &lt;localSearch&gt; &lt;termination&gt; &lt;terminationCompositionStyle&gt;OR&lt;/terminationCompositionStyle&gt; &lt;maximumUnimprovedStepCount&gt;20&lt;/maximumUnimprovedStepCount&gt; &lt;scoreAttained&gt;0hard/0soft&lt;/scoreAttained&gt; &lt;/termination&gt; &lt;unionMoveSelector&gt; &lt;changeMoveSelector&gt; &lt;entitySelector&gt; &lt;entityFilterClass&gt;com.....RequiredTypeEntityFilter&lt;/entityFilterClass&gt; &lt;/entitySelector&gt; &lt;/changeMoveSelector&gt; &lt;swapMoveSelector&gt; &lt;entitySelector&gt; &lt;entityFilterClass&gt;com.....RequiredTypeEntityFilter&lt;/entityFilterClass&gt; &lt;/entitySelector&gt; &lt;/swapMoveSelector&gt; &lt;/unionMoveSelector&gt; &lt;acceptor&gt; &lt;solutionTabuSize&gt;1000&lt;/solutionTabuSize&gt; &lt;planningEntityTabuSize&gt;7&lt;/planningEntityTabuSize&gt; &lt;/acceptor&gt; &lt;forager&gt; &lt;minimalAcceptedSelection&gt;1000&lt;/minimalAcceptedSelection&gt; &lt;/forager&gt; &lt;/localSearch&gt; </code></pre> <p>Thanks in advance!</p> <p><strong>Edit</strong>: Here is a little more information that might be helpful... As stated above, it says my best (Hard) score is 0, but the solution it gives me contains a Hard constraint violation. I added some code to printout the constraints (using DroolsScoreDirector to get to the WorkingMemory and ultimately the ConstraintOccurrences)... this printout shows a hard constraint as well. </p> <pre><code>ConstraintType: NEGATIVE_HARD, RuleID: endLocationMustMatchStartLocation, Causes:... </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload