org.drools.planner.examples.app.benchmark.generalDroolsPlannerBenchmarkConfig.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of drools-planner-examples Show documentation
Show all versions of drools-planner-examples Show documentation
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.
<?xml version="1.0" encoding="UTF-8"?> <plannerBenchmark> <benchmarkDirectory>local/data/general</benchmarkDirectory> <warmUpSecondsSpend>30</warmUpSecondsSpend> <inheritedSolverBenchmark> <problemBenchmarks> <problemStatisticType>BEST_SOLUTION_CHANGED</problemStatisticType> </problemBenchmarks> </inheritedSolverBenchmark> <solverBenchmark> <name>travelingtournament_tabuSearch</name> <problemBenchmarks> <xstreamAnnotatedClass>org.drools.planner.examples.travelingtournament.domain.TravelingTournament</xstreamAnnotatedClass> <inputSolutionFile>data/travelingtournament/smart/unsolved/1-nl14.xml</inputSolutionFile> </problemBenchmarks> <solver> <solutionClass>org.drools.planner.examples.travelingtournament.domain.TravelingTournament</solutionClass> <planningEntityClass>org.drools.planner.examples.travelingtournament.domain.Match</planningEntityClass> <scoreDirectorFactory> <scoreDefinitionType>HARD_AND_SOFT</scoreDefinitionType> <scoreDrl>/org/drools/planner/examples/travelingtournament/solver/smart/smartTravelingTournamentScoreRules.drl</scoreDrl> </scoreDirectorFactory> <termination> <maximumMinutesSpend>5</maximumMinutesSpend> </termination> <localSearch> <unionMoveSelector> <moveListFactory> <cacheType>PHASE</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <moveListFactoryClass>org.drools.planner.examples.travelingtournament.solver.smart.move.factory.MatchSwapMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>STEP</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <moveListFactoryClass>org.drools.planner.examples.travelingtournament.solver.smart.move.factory.SmartTravelingTournamentMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <solutionTabuSize>1500</solutionTabuSize> <moveTabuSize>7</moveTabuSize> </acceptor> <forager> <!-- Real world problems require to use of <minimalAcceptedSelection> --> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>curriculumcourse_tabuSearch</name> <problemBenchmarks> <xstreamAnnotatedClass>org.drools.planner.examples.curriculumcourse.domain.CurriculumCourseSchedule</xstreamAnnotatedClass> <inputSolutionFile>data/curriculumcourse/unsolved/comp08.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> <maximumMinutesSpend>10</maximumMinutesSpend> </termination> <constructionHeuristic> <constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType> <constructionHeuristicPickEarlyType>FIRST_LAST_STEP_SCORE_EQUAL_OR_IMPROVING</constructionHeuristicPickEarlyType> </constructionHeuristic> <localSearch> <unionMoveSelector> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.drools.planner.examples.curriculumcourse.solver.move.factory.PeriodChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.drools.planner.examples.curriculumcourse.solver.move.factory.RoomChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.drools.planner.examples.curriculumcourse.solver.move.factory.LectureSwapMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <planningEntityTabuSize>10</planningEntityTabuSize> <solutionTabuSize>1500</solutionTabuSize> </acceptor> <forager> <minimalAcceptedSelection>900</minimalAcceptedSelection><!-- TODO tweak me --> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>examination_tabuSearch</name> <problemBenchmarks> <xstreamAnnotatedClass>org.drools.planner.examples.examination.domain.Examination</xstreamAnnotatedClass> <inputSolutionFile>data/examination/unsolved/exam_comp_set2.xml</inputSolutionFile> </problemBenchmarks> <solver> <solutionClass>org.drools.planner.examples.examination.domain.Examination</solutionClass> <planningEntityClass>org.drools.planner.examples.examination.domain.Exam</planningEntityClass> <scoreDirectorFactory> <scoreDefinitionType>HARD_AND_SOFT</scoreDefinitionType> <scoreDrl>/org/drools/planner/examples/examination/solver/examinationScoreRules.drl</scoreDrl> </scoreDirectorFactory> <termination> <maximumMinutesSpend>10</maximumMinutesSpend> </termination> <customSolverPhase> <customSolverPhaseCommandClass>org.drools.planner.examples.examination.solver.solution.initializer.ExaminationSolutionInitializer</customSolverPhaseCommandClass> </customSolverPhase> <localSearch> <unionMoveSelector> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.drools.planner.examples.examination.solver.move.factory.PeriodChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.drools.planner.examples.examination.solver.move.factory.RoomChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.drools.planner.examples.examination.solver.move.factory.ExamSwapMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <solutionTabuSize>1000</solutionTabuSize> <planningEntityTabuSize>10</planningEntityTabuSize> </acceptor> <forager> <minimalAcceptedSelection>1400</minimalAcceptedSelection> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>pas_tabuSearch</name> <problemBenchmarks> <xstreamAnnotatedClass>org.drools.planner.examples.pas.domain.PatientAdmissionSchedule</xstreamAnnotatedClass> <inputSolutionFile>data/pas/unsolved/testdata01.xml</inputSolutionFile> </problemBenchmarks> <solver> <solutionClass>org.drools.planner.examples.pas.domain.PatientAdmissionSchedule</solutionClass> <planningEntityClass>org.drools.planner.examples.pas.domain.BedDesignation</planningEntityClass> <scoreDirectorFactory> <scoreDefinitionType>HARD_AND_SOFT</scoreDefinitionType> <scoreDrl>/org/drools/planner/examples/pas/solver/patientAdmissionScheduleBaseScoreRules.drl</scoreDrl> </scoreDirectorFactory> <termination> <maximumMinutesSpend>5</maximumMinutesSpend> </termination> <customSolverPhase> <customSolverPhaseCommandClass>org.drools.planner.examples.pas.solver.solution.initializer.PatientAdmissionScheduleSolutionInitializer</customSolverPhaseCommandClass> </customSolverPhase> <localSearch> <moveListFactory> <moveListFactoryClass>org.drools.planner.examples.pas.solver.move.factory.BedDesignationPillarPartSwapMoveFactory</moveListFactoryClass> </moveListFactory> <acceptor> <solutionTabuSize>1000</solutionTabuSize> <undoMoveTabuSize>3</undoMoveTabuSize> </acceptor> <forager> <minimalAcceptedSelection>500</minimalAcceptedSelection> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>nurseRostering_tabuSearch</name> <problemBenchmarks> <xstreamAnnotatedClass>org.drools.planner.examples.nurserostering.domain.NurseRoster</xstreamAnnotatedClass> <inputSolutionFile>data/nurserostering/unsolved/medium01.xml</inputSolutionFile> </problemBenchmarks> <solver> <solutionClass>org.drools.planner.examples.nurserostering.domain.NurseRoster</solutionClass> <planningEntityClass>org.drools.planner.examples.nurserostering.domain.ShiftAssignment</planningEntityClass> <scoreDirectorFactory> <scoreDefinitionType>HARD_AND_SOFT</scoreDefinitionType> <scoreDrl>/org/drools/planner/examples/nurserostering/solver/nurseRosteringScoreRules.drl</scoreDrl> </scoreDirectorFactory> <termination> <maximumMinutesSpend>10</maximumMinutesSpend> </termination> <constructionHeuristic> <constructionHeuristicType>BEST_FIT</constructionHeuristicType> </constructionHeuristic> <localSearch> <unionMoveSelector> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.drools.planner.examples.nurserostering.solver.move.factory.EmployeeChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.drools.planner.examples.nurserostering.solver.move.factory.ShiftAssignmentSwapMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>STEP</cacheType> <moveListFactoryClass>org.drools.planner.examples.nurserostering.solver.move.factory.ShiftAssignmentPillarPartSwapMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <solutionTabuSize>1000</solutionTabuSize> <planningEntityTabuSize>11</planningEntityTabuSize> </acceptor> <forager> <minimalAcceptedSelection>800</minimalAcceptedSelection> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>nurseRostering_simulatedAnnealing</name> <problemBenchmarks> <xstreamAnnotatedClass>org.drools.planner.examples.nurserostering.domain.NurseRoster</xstreamAnnotatedClass> <inputSolutionFile>data/nurserostering/unsolved/medium01.xml</inputSolutionFile> </problemBenchmarks> <solver> <solutionClass>org.drools.planner.examples.nurserostering.domain.NurseRoster</solutionClass> <planningEntityClass>org.drools.planner.examples.nurserostering.domain.ShiftAssignment</planningEntityClass> <scoreDirectorFactory> <scoreDefinitionType>HARD_AND_SOFT</scoreDefinitionType> <scoreDrl>/org/drools/planner/examples/nurserostering/solver/nurseRosteringScoreRules.drl</scoreDrl> </scoreDirectorFactory> <termination> <maximumMinutesSpend>10</maximumMinutesSpend> </termination> <constructionHeuristic> <constructionHeuristicType>BEST_FIT</constructionHeuristicType> </constructionHeuristic> <localSearch> <unionMoveSelector> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.drools.planner.examples.nurserostering.solver.move.factory.EmployeeChangeMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>PHASE</cacheType> <moveListFactoryClass>org.drools.planner.examples.nurserostering.solver.move.factory.ShiftAssignmentSwapMoveFactory</moveListFactoryClass> </moveListFactory> <moveListFactory> <cacheType>STEP</cacheType> <moveListFactoryClass>org.drools.planner.examples.nurserostering.solver.move.factory.ShiftAssignmentPillarPartSwapMoveFactory</moveListFactoryClass> </moveListFactory> </unionMoveSelector> <acceptor> <simulatedAnnealingStartingTemperature>0hard/8soft</simulatedAnnealingStartingTemperature> <planningEntityTabuSize>5</planningEntityTabuSize> </acceptor> <forager> <!--<pickEarlyType>FIRST_BEST_SCORE_IMPROVING</pickEarlyType>--> <minimalAcceptedSelection>4</minimalAcceptedSelection> </forager> </localSearch> </solver> </solverBenchmark> </plannerBenchmark>