org.optaplanner.examples.app.benchmark.generalOptaPlannerBenchmarkConfig.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/general</benchmarkDirectory> <!--<warmUpMinutesSpentLimit>10</warmUpMinutesSpentLimit>--> <inheritedSolverBenchmark> <solver> <termination> <minutesSpentLimit>5</minutesSpentLimit> </termination> </solver> <!--<subSingleCount>8</subSingleCount>--> </inheritedSolverBenchmark> <solverBenchmark> <name>Cloud Balancing Late Acceptance</name> <problemBenchmarks> <xStreamAnnotatedClass>org.optaplanner.examples.cloudbalancing.domain.CloudBalance</xStreamAnnotatedClass> <inputSolutionFile>data/cloudbalancing/unsolved/200computers-600processes.xml</inputSolutionFile> <inputSolutionFile>data/cloudbalancing/unsolved/800computers-2400processes.xml</inputSolutionFile> </problemBenchmarks> <solver> <solutionClass>org.optaplanner.examples.cloudbalancing.domain.CloudBalance</solutionClass> <entityClass>org.optaplanner.examples.cloudbalancing.domain.CloudProcess</entityClass> <scoreDirectorFactory> <scoreDrl>org/optaplanner/examples/cloudbalancing/solver/cloudBalancingConstraints.drl</scoreDrl> <initializingScoreTrend>ONLY_DOWN</initializingScoreTrend> </scoreDirectorFactory> <constructionHeuristic> <constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType> </constructionHeuristic> <localSearch> <unionMoveSelector> <changeMoveSelector/> <swapMoveSelector/> </unionMoveSelector> <acceptor> <lateAcceptanceSize>400</lateAcceptanceSize> </acceptor> <forager> <acceptedCountLimit>4</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>Machine Reassignment Tabu Search</name> <problemBenchmarks> <solutionFileIOClass>org.optaplanner.examples.machinereassignment.persistence.MachineReassignmentFileIO</solutionFileIOClass> <inputSolutionFile>data/machinereassignment/import/model_b_1.txt</inputSolutionFile> <inputSolutionFile>data/machinereassignment/import/model_b_10.txt</inputSolutionFile> </problemBenchmarks> <solver> <solutionClass>org.optaplanner.examples.machinereassignment.domain.MachineReassignment</solutionClass> <entityClass>org.optaplanner.examples.machinereassignment.domain.MrProcessAssignment</entityClass> <scoreDirectorFactory> <incrementalScoreCalculatorClass>org.optaplanner.examples.machinereassignment.solver.score.MachineReassignmentIncrementalScoreCalculator</incrementalScoreCalculatorClass> </scoreDirectorFactory> <customPhase> <customPhaseCommandClass>org.optaplanner.examples.machinereassignment.solver.solution.initializer.ToOriginalMachineSolutionInitializer</customPhaseCommandClass> </customPhase> <localSearch> <unionMoveSelector> <changeMoveSelector/> <swapMoveSelector/> </unionMoveSelector> <acceptor> <entityTabuSize>7</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>2000</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>Course Scheduling Late Acceptance</name> <problemBenchmarks> <xStreamAnnotatedClass>org.optaplanner.examples.curriculumcourse.domain.CourseSchedule</xStreamAnnotatedClass> <inputSolutionFile>data/curriculumcourse/unsolved/comp07.xml</inputSolutionFile> <inputSolutionFile>data/curriculumcourse/unsolved/comp08.xml</inputSolutionFile> </problemBenchmarks> <solver> <solutionClass>org.optaplanner.examples.curriculumcourse.domain.CourseSchedule</solutionClass> <entityClass>org.optaplanner.examples.curriculumcourse.domain.Lecture</entityClass> <scoreDirectorFactory> <scoreDrl>org/optaplanner/examples/curriculumcourse/solver/curriculumCourseConstraints.drl</scoreDrl> </scoreDirectorFactory> <constructionHeuristic> <constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType> </constructionHeuristic> <localSearch> <unionMoveSelector> <changeMoveSelector/> <swapMoveSelector> <filterClass>org.optaplanner.examples.curriculumcourse.solver.move.DifferentCourseSwapMoveFilter</filterClass> </swapMoveSelector> </unionMoveSelector> <acceptor> <lateAcceptanceSize>600</lateAcceptanceSize> </acceptor> <forager> <acceptedCountLimit>4</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>Examination Tabu Search</name> <problemBenchmarks> <xStreamAnnotatedClass>org.optaplanner.examples.examination.domain.Examination</xStreamAnnotatedClass> <inputSolutionFile>data/examination/unsolved/exam_comp_set2.xml</inputSolutionFile> <inputSolutionFile>data/examination/unsolved/exam_comp_set3.xml</inputSolutionFile> </problemBenchmarks> <solver> <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> </scoreDirectorFactory> <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>Nurse Rostering Tabu Search</name> <problemBenchmarks> <xStreamAnnotatedClass>org.optaplanner.examples.nurserostering.domain.NurseRoster</xStreamAnnotatedClass> <inputSolutionFile>data/nurserostering/unsolved/medium01.xml</inputSolutionFile> <inputSolutionFile>data/nurserostering/unsolved/medium_hint01.xml</inputSolutionFile> </problemBenchmarks> <solver> <solutionClass>org.optaplanner.examples.nurserostering.domain.NurseRoster</solutionClass> <entityClass>org.optaplanner.examples.nurserostering.domain.ShiftAssignment</entityClass> <scoreDirectorFactory> <scoreDrl>org/optaplanner/examples/nurserostering/solver/nurseRosteringConstraints.drl</scoreDrl> </scoreDirectorFactory> <constructionHeuristic> <constructionHeuristicType>WEAKEST_FIT</constructionHeuristicType> </constructionHeuristic> <localSearch> <unionMoveSelector> <moveListFactory> <cacheType>STEP</cacheType> <moveListFactoryClass>org.optaplanner.examples.nurserostering.solver.move.factory.ShiftAssignmentPillarPartSwapMoveFactory</moveListFactoryClass> </moveListFactory> <changeMoveSelector> <entitySelector> <filterClass>org.optaplanner.examples.nurserostering.domain.solver.MovableShiftAssignmentSelectionFilter</filterClass> </entitySelector> </changeMoveSelector> <swapMoveSelector> <entitySelector> <filterClass>org.optaplanner.examples.nurserostering.domain.solver.MovableShiftAssignmentSelectionFilter</filterClass> </entitySelector> </swapMoveSelector> <pillarChangeMoveSelector> <subPillarType>SEQUENCE</subPillarType> <pillarSelector> <entitySelector> <filterClass>org.optaplanner.examples.nurserostering.domain.solver.MovableShiftAssignmentSelectionFilter</filterClass> </entitySelector> </pillarSelector> </pillarChangeMoveSelector> <pillarSwapMoveSelector> <subPillarType>SEQUENCE</subPillarType> <pillarSelector> <entitySelector> <filterClass>org.optaplanner.examples.nurserostering.domain.solver.MovableShiftAssignmentSelectionFilter</filterClass> </entitySelector> </pillarSelector> </pillarSwapMoveSelector> </unionMoveSelector> <acceptor> <entityTabuSize>7</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>800</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>TravelingTournament Tabu Search</name> <problemBenchmarks> <xStreamAnnotatedClass>org.optaplanner.examples.travelingtournament.domain.TravelingTournament</xStreamAnnotatedClass> <inputSolutionFile>data/travelingtournament/unsolved/1-nl14.xml</inputSolutionFile> </problemBenchmarks> <solver> <solutionClass>org.optaplanner.examples.travelingtournament.domain.TravelingTournament</solutionClass> <entityClass>org.optaplanner.examples.travelingtournament.domain.Match</entityClass> <scoreDirectorFactory> <scoreDrl>org/optaplanner/examples/travelingtournament/solver/travelingTournamentConstraints.drl</scoreDrl> </scoreDirectorFactory> <localSearch> <unionMoveSelector> <swapMoveSelector> <cacheType>PHASE</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <filterClass>org.optaplanner.examples.travelingtournament.solver.move.factory.InverseMatchSwapMoveFilter</filterClass> </swapMoveSelector> <moveListFactory> <cacheType>STEP</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <moveListFactoryClass>org.optaplanner.examples.travelingtournament.solver.move.factory.MatchChainRotationsMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <simulatedAnnealingStartingTemperature>2hard/10000soft</simulatedAnnealingStartingTemperature> </acceptor> <forager> <acceptedCountLimit>4</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> </plannerBenchmark>