All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.planner.examples.machinereassignment.benchmark.machineReassignmentBenchmarkConfig.xml Maven / Gradle / Ivy

Go to download

Drools Planner optimizes automated planning by combining metaheuristic search algorithms with rule engine powered score calculation. This is the drools-planner-examples module which contains examples on how to use Drools Planner.

There is a newer version: 6.0.0.Alpha9
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<plannerBenchmark>
  <benchmarkDirectory>local/data/machinereassignment</benchmarkDirectory>
  <!--<parallelBenchmarkCount>AUTO</parallelBenchmarkCount>-->
  <warmUpSecondsSpend>30</warmUpSecondsSpend>

  <inheritedSolverBenchmark>
    <problemBenchmarks>
      <problemIOClass>org.drools.planner.examples.machinereassignment.persistence.MachineReassignmentProblemIO</problemIOClass>
      <!--<inputSolutionFile>data/machinereassignment/input/model_a1_1.txt</inputSolutionFile>-->
      <!--<inputSolutionFile>data/machinereassignment/input/model_a1_2.txt</inputSolutionFile>-->
      <!--<inputSolutionFile>data/machinereassignment/input/model_a1_3.txt</inputSolutionFile>-->
      <!--<inputSolutionFile>data/machinereassignment/input/model_a1_4.txt</inputSolutionFile>-->
      <!--<inputSolutionFile>data/machinereassignment/input/model_a1_5.txt</inputSolutionFile>-->
      <!--<inputSolutionFile>data/machinereassignment/input/model_a2_1.txt</inputSolutionFile>-->
      <!--<inputSolutionFile>data/machinereassignment/input/model_a2_2.txt</inputSolutionFile>-->
      <!--<inputSolutionFile>data/machinereassignment/input/model_a2_3.txt</inputSolutionFile>-->
      <!--<inputSolutionFile>data/machinereassignment/input/model_a2_4.txt</inputSolutionFile>-->
      <!--<inputSolutionFile>data/machinereassignment/input/model_a2_5.txt</inputSolutionFile>-->
      <inputSolutionFile>data/machinereassignment/input/model_b_1.txt</inputSolutionFile>
      <inputSolutionFile>data/machinereassignment/input/model_b_2.txt</inputSolutionFile>
      <inputSolutionFile>data/machinereassignment/input/model_b_3.txt</inputSolutionFile>
      <inputSolutionFile>data/machinereassignment/input/model_b_4.txt</inputSolutionFile>
      <inputSolutionFile>data/machinereassignment/input/model_b_5.txt</inputSolutionFile>
      <inputSolutionFile>data/machinereassignment/input/model_b_6.txt</inputSolutionFile>
      <inputSolutionFile>data/machinereassignment/input/model_b_7.txt</inputSolutionFile>
      <inputSolutionFile>data/machinereassignment/input/model_b_8.txt</inputSolutionFile>
      <inputSolutionFile>data/machinereassignment/input/model_b_9.txt</inputSolutionFile>
      <inputSolutionFile>data/machinereassignment/input/model_b_10.txt</inputSolutionFile>
      <!--<problemStatisticType>BEST_SOLUTION_CHANGED</problemStatisticType>-->
      <!--<problemStatisticType>CALCULATE_COUNT_PER_SECOND</problemStatisticType>-->
      <!--<problemStatisticType>MEMORY_USE</problemStatisticType>-->
    </problemBenchmarks>

    <solver>
      <!--<environmentMode>DEBUG</environmentMode>-->
      <solutionClass>org.drools.planner.examples.machinereassignment.domain.MachineReassignment</solutionClass>
      <planningEntityClass>org.drools.planner.examples.machinereassignment.domain.MrProcessAssignment</planningEntityClass>

      <scoreDirectorFactory>
        <scoreDefinitionType>HARD_AND_SOFT_LONG</scoreDefinitionType>
        <incrementalScoreCalculatorClass>org.drools.planner.examples.machinereassignment.solver.score.MachineReassignmentIncrementalScoreCalculator</incrementalScoreCalculatorClass>
        <!--<scoreDrl>/org/drools/planner/examples/machinereassignment/solver/machineReassignmentScoreRules.drl</scoreDrl>-->
      </scoreDirectorFactory>
      <termination>
        <maximumMinutesSpend>5</maximumMinutesSpend>
      </termination>
    </solver>
  </inheritedSolverBenchmark>

  <solverBenchmark>
    <name>original</name>
    <solver>
      <customSolverPhase>
        <customSolverPhaseCommandClass>org.drools.planner.examples.machinereassignment.solver.solution.initializer.MrOriginalMachineSolutionInitializer</customSolverPhaseCommandClass>
      </customSolverPhase>
    </solver>
  </solverBenchmark>
  <solverBenchmark>
    <name>entityTabu7-2000</name>
    <solver>
      <customSolverPhase>
        <customSolverPhaseCommandClass>org.drools.planner.examples.machinereassignment.solver.solution.initializer.MrOriginalMachineSolutionInitializer</customSolverPhaseCommandClass>
      </customSolverPhase>
      <localSearch>
        <unionMoveSelector>
          <changeMoveSelector/>
          <swapMoveSelector/>
        </unionMoveSelector>
        <acceptor>
          <planningEntityTabuSize>7</planningEntityTabuSize>
        </acceptor>
        <forager>
          <minimalAcceptedSelection>2000</minimalAcceptedSelection>
        </forager>
      </localSearch>
    </solver>
  </solverBenchmark>
  <!--<solverBenchmark>-->
    <!--<name>entityTabu7-fading7-2000</name>-->
    <!--<solver>-->
      <!--<customSolverPhase>-->
        <!--<customSolverPhaseCommandClass>org.drools.planner.examples.machinereassignment.solver.solution.initializer.MrOriginalMachineSolutionInitializer</customSolverPhaseCommandClass>-->
      <!--</customSolverPhase>-->
      <!--<localSearch>-->
        <!--<unionMoveSelector>-->
          <!--<changeMoveSelector/>-->
          <!--<swapMoveSelector/>-->
        <!--</unionMoveSelector>-->
        <!--<acceptor>-->
          <!--<planningEntityTabuSize>7</planningEntityTabuSize>-->
          <!--<fadingPlanningEntityTabuSize>7</fadingPlanningEntityTabuSize>-->
        <!--</acceptor>-->
        <!--<forager>-->
          <!--<minimalAcceptedSelection>2000</minimalAcceptedSelection>-->
        <!--</forager>-->
      <!--</localSearch>-->
    <!--</solver>-->
  <!--</solverBenchmark>-->
  <!--<solverBenchmark>-->
    <!--<name>entityTabu5-fading10-2000</name>-->
    <!--<solver>-->
      <!--<customSolverPhase>-->
        <!--<customSolverPhaseCommandClass>org.drools.planner.examples.machinereassignment.solver.solution.initializer.MrOriginalMachineSolutionInitializer</customSolverPhaseCommandClass>-->
      <!--</customSolverPhase>-->
      <!--<localSearch>-->
        <!--<unionMoveSelector>-->
          <!--<changeMoveSelector/>-->
          <!--<swapMoveSelector/>-->
        <!--</unionMoveSelector>-->
        <!--<acceptor>-->
          <!--<planningEntityTabuSize>5</planningEntityTabuSize>-->
          <!--<fadingPlanningEntityTabuSize>10</fadingPlanningEntityTabuSize>-->
        <!--</acceptor>-->
        <!--<forager>-->
          <!--<minimalAcceptedSelection>2000</minimalAcceptedSelection>-->
        <!--</forager>-->
      <!--</localSearch>-->
    <!--</solver>-->
  <!--</solverBenchmark>-->
  <solverBenchmark>
    <name>lateAcceptance1000</name>
    <solver>
      <customSolverPhase>
        <customSolverPhaseCommandClass>org.drools.planner.examples.machinereassignment.solver.solution.initializer.MrOriginalMachineSolutionInitializer</customSolverPhaseCommandClass>
      </customSolverPhase>
      <localSearch>
        <unionMoveSelector>
          <changeMoveSelector>
          </changeMoveSelector>
          <swapMoveSelector>
          </swapMoveSelector>
        </unionMoveSelector>
        <acceptor>
          <lateAcceptanceSize>1000</lateAcceptanceSize>
        </acceptor>
        <forager>
          <minimalAcceptedSelection>500</minimalAcceptedSelection>
        </forager>
      </localSearch>
    </solver>
  </solverBenchmark>
  <solverBenchmark>
    <name>lateAcceptance2000</name>
    <solver>
      <customSolverPhase>
        <customSolverPhaseCommandClass>org.drools.planner.examples.machinereassignment.solver.solution.initializer.MrOriginalMachineSolutionInitializer</customSolverPhaseCommandClass>
      </customSolverPhase>
      <localSearch>
        <unionMoveSelector>
          <changeMoveSelector>
          </changeMoveSelector>
          <swapMoveSelector>
          </swapMoveSelector>
        </unionMoveSelector>
        <acceptor>
          <lateAcceptanceSize>2000</lateAcceptanceSize>
        </acceptor>
        <forager>
          <minimalAcceptedSelection>500</minimalAcceptedSelection>
        </forager>
      </localSearch>
    </solver>
  </solverBenchmark>
</plannerBenchmark>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy