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

Benchmarker: Best score graph is empty (regression)

    XMLWordPrintable

Details

    Description

      The log says:

      13:22:45.275 [markThread-1] INFO  VehicleRoutingSolution belgium-n500-k20 has 1 depots, 20 vehicles and 499 customers with a search space of 10^1169.
      13:22:45.275 [markThread-1] INFO  Imported: data/vehiclerouting/import/belgium/basic/air/belgium-n500-k20.vrp
      13:22:45.306 [markThread-1] INFO  Solving started: time spent (4), best score (-499init/0hard/0soft), environment mode (REPRODUCIBLE), move thread count (NONE), random (JDK with seed 0).
      13:22:45.721 [markThread-1] INFO  Construction Heuristic phase (0) ended: time spent (419), best score (0hard/-59547soft), score calculation speed (301472/sec), step total (499).
      13:24:45.302 [markThread-1] INFO  Local Search phase (1) ended: time spent (120000), best score (0hard/-55303soft), score calculation speed (150543/sec), step total (45622).
      13:24:45.302 [markThread-1] INFO  Solving ended: time spent (120000), best score (0hard/-55303soft), score calculation speed (151057/sec), phase total (2), environment mode (REPRODUCIBLE), move thread count (NONE).
      1
      

      which clearly says CH ends at -59547soft at 419ms and LS at -55303soft at 120000ms.

      But the best score graph for soft score is empty:

      to reproduce:

      in generalOptaPlannerBenchmarkConfig.xml throw this:

      <?xml version="1.0" encoding="UTF-8"?>
      <plannerBenchmark xmlns="https://www.optaplanner.org/xsd/benchmark" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="https://www.optaplanner.org/xsd/benchmark https://www.optaplanner.org/xsd/benchmark/benchmark.xsd">
        <benchmarkDirectory>local/data/general</benchmarkDirectory>
        <warmUpMinutesSpentLimit>1</warmUpMinutesSpentLimit>
      
        <inheritedSolverBenchmark>
          <solver>
            <termination>
              <minutesSpentLimit>2</minutesSpentLimit>
            </termination>
          </solver>
        </inheritedSolverBenchmark>
      
        <solverBenchmark>
          <name>NQueens</name>
          <solver>
            <solutionClass>org.optaplanner.examples.nqueens.domain.NQueens</solutionClass>
            <entityClass>org.optaplanner.examples.nqueens.domain.Queen</entityClass>
            <scoreDirectorFactory>
              <constraintProviderClass>org.optaplanner.examples.nqueens.score.NQueensConstraintProvider</constraintProviderClass>
              <initializingScoreTrend>ONLY_DOWN</initializingScoreTrend>
            </scoreDirectorFactory>
          </solver>
          <problemBenchmarks>
            <solutionFileIOClass>org.optaplanner.examples.nqueens.persistence.NQueensXmlSolutionFileIO</solutionFileIOClass>
            <inputSolutionFile>data/nqueens/unsolved/256queens.xml</inputSolutionFile>
          </problemBenchmarks>
        </solverBenchmark>
        <solverBenchmark>
          <name>VRP</name>
          <solver>
            <solutionClass>org.optaplanner.examples.vehiclerouting.domain.VehicleRoutingSolution</solutionClass>
            <entityClass>org.optaplanner.examples.vehiclerouting.domain.Standstill</entityClass>
            <entityClass>org.optaplanner.examples.vehiclerouting.domain.Customer</entityClass>
            <entityClass>org.optaplanner.examples.vehiclerouting.domain.timewindowed.TimeWindowedCustomer</entityClass>
            <scoreDirectorFactory>
              <constraintProviderClass>org.optaplanner.examples.vehiclerouting.score.VehicleRoutingConstraintProvider</constraintProviderClass>
              <initializingScoreTrend>ONLY_DOWN</initializingScoreTrend>
            </scoreDirectorFactory>
          </solver>
          <problemBenchmarks>
            <solutionFileIOClass>org.optaplanner.examples.vehiclerouting.persistence.VehicleRoutingFileIO</solutionFileIOClass>
            <inputSolutionFile>data/vehiclerouting/import/belgium/basic/air/belgium-n500-k20.vrp</inputSolutionFile>
          </problemBenchmarks>
        </solverBenchmark>
      </plannerBenchmark>
      

      optionally run with `-Xmx2G -Dlogback.level.org.optaplanner=info`

      Attachments

        Activity

          People

            cchianel Christopher Chianelli
            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: