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

org.drools.planner.examples.curriculumcourse.benchmark.curriculumCourseBenchmarkConfig.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/curriculumcourse</benchmarkDirectory>
  <parallelBenchmarkCount>AUTO</parallelBenchmarkCount>
  <warmUpSecondsSpend>30</warmUpSecondsSpend>

  <inheritedSolverBenchmark>
    <problemBenchmarks>
      <xstreamAnnotatedClass>org.drools.planner.examples.curriculumcourse.domain.CurriculumCourseSchedule</xstreamAnnotatedClass>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp01.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp02.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp03.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp04.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp05.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp06.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp07.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp08.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp09.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp10.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp11.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp12.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp13.xml</inputSolutionFile>
      <inputSolutionFile>data/curriculumcourse/unsolved/comp14.xml</inputSolutionFile>
      <problemStatisticType>BEST_SOLUTION_CHANGED</problemStatisticType>
    </problemBenchmarks>

    <solver>
      <solutionClass>org.drools.planner.examples.curriculumcourse.domain.CurriculumCourseSchedule</solutionClass>
      <planningEntityClass>org.drools.planner.examples.curriculumcourse.domain.Lecture</planningEntityClass>
      <scoreDirectorFactory>
        <scoreDefinitionType>HARD_AND_SOFT</scoreDefinitionType>
        <scoreDrl>/org/drools/planner/examples/curriculumcourse/solver/curriculumCourseScoreRules.drl</scoreDrl>
      </scoreDirectorFactory>
      <termination>
        <!--
          Official benchmark maximumSecondsSpend allowed on:
          ge0ffrey's main pc: 429
          ge0ffrey's old pc: 1152
        -->
        <maximumSecondsSpend>429</maximumSecondsSpend>
      </termination>
      <constructionHeuristic>
        <constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType>
      </constructionHeuristic>
    </solver>
  </inheritedSolverBenchmark>

  <solverBenchmark>
    <name>entityTabu10-custom-phase-shuffled</name>
    <solver>
      <localSearch>
        <unionMoveSelector>
          <moveListFactory>
            <cacheType>PHASE</cacheType>
            <selectionOrder>SHUFFLED</selectionOrder>
            <moveListFactoryClass>org.drools.planner.examples.curriculumcourse.solver.move.factory.PeriodChangeMoveFactory</moveListFactoryClass>
          </moveListFactory>
          <moveListFactory>
            <cacheType>PHASE</cacheType>
            <selectionOrder>SHUFFLED</selectionOrder>
            <moveListFactoryClass>org.drools.planner.examples.curriculumcourse.solver.move.factory.RoomChangeMoveFactory</moveListFactoryClass>
          </moveListFactory>
          <moveListFactory>
            <cacheType>PHASE</cacheType>
            <selectionOrder>SHUFFLED</selectionOrder>
            <moveListFactoryClass>org.drools.planner.examples.curriculumcourse.solver.move.factory.LectureSwapMoveFactory</moveListFactoryClass>
          </moveListFactory>
        </unionMoveSelector>
        <acceptor>
          <planningEntityTabuSize>10</planningEntityTabuSize>
        </acceptor>
        <forager>
          <minimalAcceptedSelection>900</minimalAcceptedSelection><!-- TODO tweak me -->
        </forager>
      </localSearch>
    </solver>
  </solverBenchmark>
  <solverBenchmark>
    <name>jit</name>
    <solver>
      <localSearch>
        <unionMoveSelector>
          <changeMoveSelector>
            <valueSelector>
              <planningVariableName>period</planningVariableName>
            </valueSelector>
          </changeMoveSelector>
          <changeMoveSelector>
            <valueSelector>
              <planningVariableName>room</planningVariableName>
            </valueSelector>
          </changeMoveSelector>
          <swapMoveSelector>
            <moveFilterClass>org.drools.planner.examples.curriculumcourse.solver.move.DifferentCourseSwapMoveFilter</moveFilterClass>
          </swapMoveSelector>
        </unionMoveSelector>
        <acceptor>
          <planningEntityTabuSize>10</planningEntityTabuSize>
        </acceptor>
        <forager>
          <minimalAcceptedSelection>900</minimalAcceptedSelection><!-- TODO tweak me -->
        </forager>
      </localSearch>
    </solver>
  </solverBenchmark>
  <solverBenchmark>
    <name>phase_cached</name>
    <solver>
      <localSearch>
        <unionMoveSelector>
          <changeMoveSelector>
            <cacheType>PHASE</cacheType>
            <valueSelector>
              <planningVariableName>period</planningVariableName>
            </valueSelector>
          </changeMoveSelector>
          <changeMoveSelector>
            <cacheType>PHASE</cacheType>
            <valueSelector>
              <planningVariableName>room</planningVariableName>
            </valueSelector>
          </changeMoveSelector>
          <swapMoveSelector>
            <cacheType>PHASE</cacheType>
            <moveFilterClass>org.drools.planner.examples.curriculumcourse.solver.move.DifferentCourseSwapMoveFilter</moveFilterClass>
          </swapMoveSelector>
        </unionMoveSelector>
        <acceptor>
          <planningEntityTabuSize>10</planningEntityTabuSize>
        </acceptor>
        <forager>
          <minimalAcceptedSelection>900</minimalAcceptedSelection><!-- TODO tweak me -->
        </forager>
      </localSearch>
    </solver>
  </solverBenchmark>
  <!--<solverBenchmark>-->
    <!--<name>simulatedAnnealing100</name>-->
    <!--<solver>-->
      <!--<localSearch>-->
        <!--<unionMoveSelector>-->
          <!--<cacheType>PHASE</cacheType>-->
          <!--<changeMoveSelector>-->
            <!--<valueSelector>-->
              <!--<planningVariableName>period</planningVariableName>-->
            <!--</valueSelector>-->
          <!--</changeMoveSelector>-->
          <!--<changeMoveSelector>-->
            <!--<valueSelector>-->
              <!--<planningVariableName>room</planningVariableName>-->
            <!--</valueSelector>-->
          <!--</changeMoveSelector>-->
          <!--<swapMoveSelector>-->
            <!--<moveFilterClass>org.drools.planner.examples.curriculumcourse.solver.move.DifferentCourseSwapMoveFilter</moveFilterClass>-->
          <!--</swapMoveSelector>-->
        <!--</unionMoveSelector>-->
        <!--<acceptor>-->
          <!--<simulatedAnnealingStartingTemperature>0hard/100soft</simulatedAnnealingStartingTemperature>-->
        <!--</acceptor>-->
        <!--<forager>-->
          <!--<minimalAcceptedSelection>4</minimalAcceptedSelection>-->
        <!--</forager>-->
      <!--</localSearch>-->
    <!--</solver>-->
  <!--</solverBenchmark>-->
</plannerBenchmark>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy