org.optaplanner.examples.examination.benchmark.examinationBenchmarkConfig.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/examination</benchmarkDirectory> <parallelBenchmarkCount>AUTO</parallelBenchmarkCount> <warmUpSecondsSpend>30</warmUpSecondsSpend> <inheritedSolverBenchmark> <problemBenchmarks> <xstreamAnnotatedClass>org.optaplanner.examples.examination.domain.Examination</xstreamAnnotatedClass> <inputSolutionFile>data/examination/unsolved/exam_comp_set1.xml</inputSolutionFile> <inputSolutionFile>data/examination/unsolved/exam_comp_set2.xml</inputSolutionFile> <inputSolutionFile>data/examination/unsolved/exam_comp_set3.xml</inputSolutionFile> <inputSolutionFile>data/examination/unsolved/exam_comp_set4.xml</inputSolutionFile> <inputSolutionFile>data/examination/unsolved/exam_comp_set5.xml</inputSolutionFile> <inputSolutionFile>data/examination/unsolved/exam_comp_set6.xml</inputSolutionFile> <inputSolutionFile>data/examination/unsolved/exam_comp_set7.xml</inputSolutionFile> <inputSolutionFile>data/examination/unsolved/exam_comp_set8.xml</inputSolutionFile> <problemStatisticType>BEST_SCORE</problemStatisticType> </problemBenchmarks> <solver> <!--<environmentMode>FAST_ASSERT</environmentMode>--> <solutionClass>org.optaplanner.examples.examination.domain.Examination</solutionClass> <planningEntityClass>org.optaplanner.examples.examination.domain.Exam</planningEntityClass> <scoreDirectorFactory> <scoreDefinitionType>HARD_SOFT</scoreDefinitionType> <scoreDrl>/org/optaplanner/examples/examination/solver/examinationScoreRules.drl</scoreDrl> </scoreDirectorFactory> <termination> <!-- Official benchmark maximumSecondsSpend allowed on: - ge0ffrey's main pc: 429 - ge0ffrey's old pc: 1152 --> <maximumSecondsSpend>429</maximumSecondsSpend> </termination> </solver> </inheritedSolverBenchmark> <solverBenchmark> <name>2000_entityTabu10_random</name> <solver> <customSolverPhase> <customSolverPhaseCommandClass>org.optaplanner.examples.examination.solver.solution.initializer.ExaminationSolutionInitializer</customSolverPhaseCommandClass> </customSolverPhase> <localSearch> <unionMoveSelector> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.PeriodChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.RoomChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.ExamSwapMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <entityTabuSize>10</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>2000</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>2000_entityTabu10_shuffled</name> <solver> <customSolverPhase> <customSolverPhaseCommandClass>org.optaplanner.examples.examination.solver.solution.initializer.ExaminationSolutionInitializer</customSolverPhaseCommandClass> </customSolverPhase> <localSearch> <unionMoveSelector> <moveListFactory> <cacheType>PHASE</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.PeriodChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.RoomChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.ExamSwapMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <entityTabuSize>10</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>2000</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>2000_entityTabu10_random_union</name> <solver> <customSolverPhase> <customSolverPhaseCommandClass>org.optaplanner.examples.examination.solver.solution.initializer.ExaminationSolutionInitializer</customSolverPhaseCommandClass> </customSolverPhase> <localSearch> <unionMoveSelector> <cacheType>PHASE</cacheType> <moveListFactory> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.PeriodChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.RoomChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.ExamSwapMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <entityTabuSize>10</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>2000</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>2000_entityTabu10_shuffled_union</name> <solver> <customSolverPhase> <customSolverPhaseCommandClass>org.optaplanner.examples.examination.solver.solution.initializer.ExaminationSolutionInitializer</customSolverPhaseCommandClass> </customSolverPhase> <localSearch> <unionMoveSelector> <cacheType>PHASE</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <moveListFactory> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.PeriodChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.RoomChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <moveListFactoryClass>org.optaplanner.examples.examination.solver.move.factory.ExamSwapMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <entityTabuSize>10</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>2000</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> </plannerBenchmark>