Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-163

Benchmarker runs forever (because of infinite loop in drools or optaplanner)

XMLWordPrintable

    • Hide

      <solverBenchmark>
      <name>Move Tabu 1 of 10</name>
      <solver>
      <localSearch>
      <termination>
      <terminationCompositionStyle>OR</terminationCompositionStyle>
      <scoreAttained>0hard/0soft</scoreAttained>
      <maximumSecondsSpend>120</maximumSecondsSpend>
      <maximumUnimprovedStepCount>500</maximumUnimprovedStepCount>
      </termination>
      <unionMoveSelector>
      <changeMoveSelector/>
      <swapMoveSelector/>
      </unionMoveSelector>
      <acceptor>
      <moveTabuSize>1</moveTabuSize>
      </acceptor>
      <forager>
      <acceptedCountLimit>10</acceptedCountLimit>
      </forager>
      </localSearch>
      </solver>
      </solverBenchmark>

      Show
      <solverBenchmark> <name>Move Tabu 1 of 10</name> <solver> <localSearch> <termination> <terminationCompositionStyle>OR</terminationCompositionStyle> <scoreAttained>0hard/0soft</scoreAttained> <maximumSecondsSpend>120</maximumSecondsSpend> <maximumUnimprovedStepCount>500</maximumUnimprovedStepCount> </termination> <unionMoveSelector> <changeMoveSelector/> <swapMoveSelector/> </unionMoveSelector> <acceptor> <moveTabuSize>1</moveTabuSize> </acceptor> <forager> <acceptedCountLimit>10</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark>

      Tracing the log the console stops writing additional moves after some seconds.
      As you can see in the "Steps to reproduce" section I tried to use a maximum of 120 seconds to wait for such an endless loop or score trap.
      Unfortunately the benchmarker never stops. Meanwhile one of my CPU-Cores is still under heavy load until I terminate the benchmark run.

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            arno_hernach Arno Hernach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: