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> <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>--> <!--<problemStatisticType>STEP_SCORE</problemStatisticType>--> <!--<problemStatisticType>SCORE_CALCULATION_SPEED</problemStatisticType>--> <!--<problemStatisticType>BEST_SOLUTION_MUTATION</problemStatisticType>--> <!--<problemStatisticType>MOVE_COUNT_PER_STEP</problemStatisticType>--> <!--<problemStatisticType>MEMORY_USE</problemStatisticType>--> <!--<singleStatisticType>CONSTRAINT_MATCH_TOTAL_BEST_SCORE</singleStatisticType>--> <!--<singleStatisticType>CONSTRAINT_MATCH_TOTAL_STEP_SCORE</singleStatisticType>--> <!--<singleStatisticType>PICKED_MOVE_TYPE_BEST_SCORE_DIFF</singleStatisticType>--> <!--<singleStatisticType>PICKED_MOVE_TYPE_STEP_SCORE_DIFF</singleStatisticType>--> </problemBenchmarks> <solver> <!--<environmentMode>FAST_ASSERT</environmentMode>--> <solutionClass>org.optaplanner.examples.examination.domain.Examination</solutionClass> <entityClass>org.optaplanner.examples.examination.domain.Exam</entityClass> <entityClass>org.optaplanner.examples.examination.domain.LeadingExam</entityClass> <entityClass>org.optaplanner.examples.examination.domain.FollowingExam</entityClass> <scoreDirectorFactory> <scoreDrl>org/optaplanner/examples/examination/solver/examinationConstraints.drl</scoreDrl> <initializingScoreTrend>ONLY_DOWN</initializingScoreTrend>s </scoreDirectorFactory> <termination> <minutesSpentLimit>5</minutesSpentLimit> </termination> </solver> </inheritedSolverBenchmark> <solverBenchmark> <name>First Fit</name> <solver> <constructionHeuristic> <queuedEntityPlacer> <entitySelector id="placerEntitySelector"> <entityClass>org.optaplanner.examples.examination.domain.Exam</entityClass> <cacheType>PHASE</cacheType> </entitySelector> <cartesianProductMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="placerEntitySelector"/> <valueSelector variableName="period"> <downcastEntityClass>org.optaplanner.examples.examination.domain.LeadingExam</downcastEntityClass> <cacheType>PHASE</cacheType> </valueSelector> </changeMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="placerEntitySelector"/> <valueSelector variableName="room"> <cacheType>PHASE</cacheType> </valueSelector> </changeMoveSelector> </cartesianProductMoveSelector> </queuedEntityPlacer> </constructionHeuristic> </solver> </solverBenchmark> <solverBenchmark> <name>First Fit Decreasing</name> <solver> <constructionHeuristic> <queuedEntityPlacer> <entitySelector id="placerEntitySelector"> <entityClass>org.optaplanner.examples.examination.domain.Exam</entityClass> <cacheType>PHASE</cacheType> <selectionOrder>SORTED</selectionOrder> <sorterManner>DECREASING_DIFFICULTY</sorterManner> </entitySelector> <cartesianProductMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="placerEntitySelector"/> <valueSelector variableName="period"> <downcastEntityClass>org.optaplanner.examples.examination.domain.LeadingExam</downcastEntityClass> <cacheType>PHASE</cacheType> </valueSelector> </changeMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="placerEntitySelector"/> <valueSelector variableName="room"> <cacheType>PHASE</cacheType> </valueSelector> </changeMoveSelector> </cartesianProductMoveSelector> </queuedEntityPlacer> </constructionHeuristic> </solver> </solverBenchmark> <solverBenchmark> <name>Weakest Fit Decreasing</name> <solver> <constructionHeuristic> <queuedEntityPlacer> <entitySelector id="placerEntitySelector"> <entityClass>org.optaplanner.examples.examination.domain.Exam</entityClass> <cacheType>PHASE</cacheType> <selectionOrder>SORTED</selectionOrder> <sorterManner>DECREASING_DIFFICULTY</sorterManner> </entitySelector> <cartesianProductMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="placerEntitySelector"/> <valueSelector variableName="period"> <downcastEntityClass>org.optaplanner.examples.examination.domain.LeadingExam</downcastEntityClass> <cacheType>PHASE</cacheType> <!--<selectionOrder>SORTED</selectionOrder>--> <!--<sorterManner>INCREASING_STRENGTH</sorterManner>--> </valueSelector> </changeMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="placerEntitySelector"/> <valueSelector variableName="room"> <cacheType>PHASE</cacheType> <selectionOrder>SORTED</selectionOrder> <sorterManner>INCREASING_STRENGTH</sorterManner> </valueSelector> </changeMoveSelector> </cartesianProductMoveSelector> </queuedEntityPlacer> </constructionHeuristic> </solver> </solverBenchmark> <solverBenchmark> <name>Tabu Search</name> <solver> <constructionHeuristic> <queuedEntityPlacer> <entitySelector id="placerEntitySelector"> <entityClass>org.optaplanner.examples.examination.domain.Exam</entityClass> <cacheType>PHASE</cacheType> <selectionOrder>SORTED</selectionOrder> <sorterManner>DECREASING_DIFFICULTY</sorterManner> </entitySelector> <cartesianProductMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="placerEntitySelector"/> <valueSelector variableName="period"> <downcastEntityClass>org.optaplanner.examples.examination.domain.LeadingExam</downcastEntityClass> <cacheType>PHASE</cacheType> <!--<selectionOrder>SORTED</selectionOrder>--> <!--<sorterManner>INCREASING_STRENGTH</sorterManner>--> </valueSelector> </changeMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="placerEntitySelector"/> <valueSelector variableName="room"> <cacheType>PHASE</cacheType> <selectionOrder>SORTED</selectionOrder> <sorterManner>INCREASING_STRENGTH</sorterManner> </valueSelector> </changeMoveSelector> </cartesianProductMoveSelector> </queuedEntityPlacer> </constructionHeuristic> <localSearch> <unionMoveSelector> <cartesianProductMoveSelector> <changeMoveSelector> <entitySelector id="cartesianProductEntitySelector"> <entityClass>org.optaplanner.examples.examination.domain.Exam</entityClass> </entitySelector> <valueSelector variableName="room"/> </changeMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="cartesianProductEntitySelector"/> <valueSelector variableName="period"> <downcastEntityClass>org.optaplanner.examples.examination.domain.LeadingExam</downcastEntityClass> </valueSelector> </changeMoveSelector> </cartesianProductMoveSelector> <swapMoveSelector> <entitySelector> <entityClass>org.optaplanner.examples.examination.domain.LeadingExam</entityClass> </entitySelector> </swapMoveSelector> </unionMoveSelector> <acceptor> <entityTabuSize>10</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>2000</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>Late Acceptance</name> <solver> <constructionHeuristic> <queuedEntityPlacer> <entitySelector id="placerEntitySelector"> <entityClass>org.optaplanner.examples.examination.domain.Exam</entityClass> <cacheType>PHASE</cacheType> <selectionOrder>SORTED</selectionOrder> <sorterManner>DECREASING_DIFFICULTY</sorterManner> </entitySelector> <cartesianProductMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="placerEntitySelector"/> <valueSelector variableName="period"> <downcastEntityClass>org.optaplanner.examples.examination.domain.LeadingExam</downcastEntityClass> <cacheType>PHASE</cacheType> <!--<selectionOrder>SORTED</selectionOrder>--> <!--<sorterManner>INCREASING_STRENGTH</sorterManner>--> </valueSelector> </changeMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="placerEntitySelector"/> <valueSelector variableName="room"> <cacheType>PHASE</cacheType> <selectionOrder>SORTED</selectionOrder> <sorterManner>INCREASING_STRENGTH</sorterManner> </valueSelector> </changeMoveSelector> </cartesianProductMoveSelector> </queuedEntityPlacer> </constructionHeuristic> <localSearch> <unionMoveSelector> <cartesianProductMoveSelector> <changeMoveSelector> <entitySelector id="cartesianProductEntitySelector"> <entityClass>org.optaplanner.examples.examination.domain.Exam</entityClass> </entitySelector> <valueSelector variableName="room"/> </changeMoveSelector> <changeMoveSelector> <entitySelector mimicSelectorRef="cartesianProductEntitySelector"/> <valueSelector variableName="period"> <downcastEntityClass>org.optaplanner.examples.examination.domain.LeadingExam</downcastEntityClass> </valueSelector> </changeMoveSelector> </cartesianProductMoveSelector> <swapMoveSelector> <entitySelector> <entityClass>org.optaplanner.examples.examination.domain.LeadingExam</entityClass> </entitySelector> </swapMoveSelector> </unionMoveSelector> <acceptor> <lateAcceptanceSize>1000</lateAcceptanceSize> </acceptor> <forager> <acceptedCountLimit>1</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> </plannerBenchmark>