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

Planner Benchmark configuration: it should be possible to inherit and partially overwrite phase configurations

XMLWordPrintable

      If you configure something like this:

        <inheritedSolverBenchmark>
          ...
          <solver>
            ...
            <localSearch>
              <selector>
                <selector>
                  <moveFactoryClass>org.drools.planner.examples.cloudbalancing.solver.move.factory.CloudComputerChangeMoveFactory</moveFactoryClass>
                </selector>
                <selector>
                  <moveFactoryClass>org.drools.planner.examples.cloudbalancing.solver.move.factory.CloudProcessSwapMoveFactory</moveFactoryClass>
                </selector>
              </selector>
              <forager>
                <minimalAcceptedSelection>4</minimalAcceptedSelection>
              </forager>
            </localSearch>
          </solver>
        </inheritedSolverBenchmark>
      
        <solverBenchmark>
          <name>simulatedAnnealing400</name>
          <solver>
            <localSearch>
              <acceptor>
                <simulatedAnnealingStartingTemperature>0hard/400soft</simulatedAnnealingStartingTemperature>
              </acceptor>
            </localSearch>
          </solver>
        </solverBenchmark>
        <solverBenchmark>
          <name>simulatedAnnealing800</name>
          <solver>
            <localSearch>
              <acceptor>
                <simulatedAnnealingStartingTemperature>0hard/800soft</simulatedAnnealingStartingTemperature>
              </acceptor>
            </localSearch>
          </solver>
        </solverBenchmark>
      

      You get 2 localSearch phases per benchmark, (the second of which crashes due to missing config), instead of 1 localSearch phase as you'd expect.

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

                Created:
                Updated: