org.optaplanner.examples.curriculumcourse.benchmark.curriculumCourseBenchmarkConfig.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of optaplanner-examples Show documentation
Show all versions of optaplanner-examples Show documentation
OptaPlanner solves planning problems.
This lightweight, embeddable planning engine implements powerful and scalable algorithms
to optimize business resource scheduling and planning.
This module contains the examples which demonstrate how to use it in a normal Java application.
<?xml version="1.0" encoding="UTF-8"?> <plannerBenchmark> <benchmarkDirectory>local/data/curriculumcourse</benchmarkDirectory> <parallelBenchmarkCount>AUTO</parallelBenchmarkCount> <warmUpSecondsSpend>30</warmUpSecondsSpend> <inheritedSolverBenchmark> <problemBenchmarks> <xstreamAnnotatedClass>org.optaplanner.examples.curriculumcourse.domain.CourseSchedule</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_SCORE</problemStatisticType> </problemBenchmarks> <solver> <solutionClass>org.optaplanner.examples.curriculumcourse.domain.CourseSchedule</solutionClass> <planningEntityClass>org.optaplanner.examples.curriculumcourse.domain.Lecture</planningEntityClass> <scoreDirectorFactory> <scoreDefinitionType>HARD_SOFT</scoreDefinitionType> <scoreDrl>/org/optaplanner/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.optaplanner.examples.curriculumcourse.solver.move.factory.PeriodChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <moveListFactoryClass>org.optaplanner.examples.curriculumcourse.solver.move.factory.RoomChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <moveListFactoryClass>org.optaplanner.examples.curriculumcourse.solver.move.factory.LectureSwapMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <entityTabuSize>10</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>900</acceptedCountLimit><!-- TODO tweak me --> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>jit</name> <solver> <localSearch> <unionMoveSelector> <changeMoveSelector> <valueSelector> <variableName>period</variableName> </valueSelector> </changeMoveSelector> <changeMoveSelector> <valueSelector> <variableName>room</variableName> </valueSelector> </changeMoveSelector> <swapMoveSelector> <filterClass>org.optaplanner.examples.curriculumcourse.solver.move.DifferentCourseSwapMoveFilter</filterClass> </swapMoveSelector> </unionMoveSelector> <acceptor> <entityTabuSize>10</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>900</acceptedCountLimit><!-- TODO tweak me --> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>phase_cached</name> <solver> <localSearch> <unionMoveSelector> <changeMoveSelector> <cacheType>PHASE</cacheType> <valueSelector> <variableName>period</variableName> </valueSelector> </changeMoveSelector> <changeMoveSelector> <cacheType>PHASE</cacheType> <valueSelector> <variableName>room</variableName> </valueSelector> </changeMoveSelector> <swapMoveSelector> <cacheType>PHASE</cacheType> <filterClass>org.optaplanner.examples.curriculumcourse.solver.move.DifferentCourseSwapMoveFilter</filterClass> </swapMoveSelector> </unionMoveSelector> <acceptor> <entityTabuSize>10</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>900</acceptedCountLimit><!-- TODO tweak me --> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>mimic-jit</name> <solver> <localSearch> <unionMoveSelector> <changeMoveSelector> <valueSelector> <variableName>period</variableName> </valueSelector> </changeMoveSelector> <changeMoveSelector> <valueSelector> <variableName>room</variableName> </valueSelector> </changeMoveSelector> <cartesianProductMoveSelector> <changeMoveSelector> <entitySelector id="entitySelector"/> <valueSelector> <variableName>period</variableName> </valueSelector> </changeMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="entitySelector"/> <valueSelector> <variableName>room</variableName> </valueSelector> </changeMoveSelector> </cartesianProductMoveSelector> <swapMoveSelector> <filterClass>org.optaplanner.examples.curriculumcourse.solver.move.DifferentCourseSwapMoveFilter</filterClass> </swapMoveSelector> </unionMoveSelector> <acceptor> <entityTabuSize>10</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>900</acceptedCountLimit><!-- TODO tweak me --> </forager> </localSearch> </solver> </solverBenchmark> <!--<solverBenchmark>--> <!--<name>simulatedAnnealing100</name>--> <!--<solver>--> <!--<localSearch>--> <!--<unionMoveSelector>--> <!--<cacheType>PHASE</cacheType>--> <!--<changeMoveSelector>--> <!--<valueSelector>--> <!--<variableName>period</variableName>--> <!--</valueSelector>--> <!--</changeMoveSelector>--> <!--<changeMoveSelector>--> <!--<valueSelector>--> <!--<variableName>room</variableName>--> <!--</valueSelector>--> <!--</changeMoveSelector>--> <!--<swapMoveSelector>--> <!--<filterClass>org.optaplanner.examples.curriculumcourse.solver.move.DifferentCourseSwapMoveFilter</filterClass>--> <!--</swapMoveSelector>--> <!--</unionMoveSelector>--> <!--<acceptor>--> <!--<simulatedAnnealingStartingTemperature>0hard/100soft</simulatedAnnealingStartingTemperature>--> <!--</acceptor>--> <!--<forager>--> <!--<acceptedCountLimit>4</acceptedCountLimit>--> <!--</forager>--> <!--</localSearch>--> <!--</solver>--> <!--</solverBenchmark>--> </plannerBenchmark>