org.optaplanner.examples.pas.benchmark.patientAdmissionScheduleBenchmarkConfig.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/pas</benchmarkDirectory> <!--<parallelBenchmarkCount>AUTO</parallelBenchmarkCount>--> <warmUpSecondsSpend>30</warmUpSecondsSpend> <inheritedSolverBenchmark> <problemBenchmarks> <xstreamAnnotatedClass>org.optaplanner.examples.pas.domain.PatientAdmissionSchedule</xstreamAnnotatedClass> <inputSolutionFile>data/pas/unsolved/testdata01.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata02.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata03.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata04.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata05.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata06.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata07.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata08.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata09.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata10.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata11.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata12.xml</inputSolutionFile> <inputSolutionFile>data/pas/unsolved/testdata13.xml</inputSolutionFile> <problemStatisticType>BEST_SCORE</problemStatisticType> </problemBenchmarks> <solver> <solutionClass>org.optaplanner.examples.pas.domain.PatientAdmissionSchedule</solutionClass> <planningEntityClass>org.optaplanner.examples.pas.domain.BedDesignation</planningEntityClass> <scoreDirectorFactory> <scoreDefinitionType>HARD_SOFT</scoreDefinitionType> <scoreDrl>/org/optaplanner/examples/pas/solver/patientAdmissionScheduleBaseScoreRules.drl</scoreDrl> <!-- TODO SameBedInSameNightScoreRule should only be checked for construction heuristics --> <!--<scoreDrl>/org/optaplanner/examples/pas/solver/patientAdmissionScheduleSameBedInSameNightScoreRule.drl</scoreDrl>--> </scoreDirectorFactory> <termination> <!-- On Geoffrey De Smet's PC: 372 (short run), 3720 (long run). On Peter Demeester's PC: 300 (short run), 3000 (long run). --> <maximumSecondsSpend>372</maximumSecondsSpend> </termination> </solver> </inheritedSolverBenchmark> <solverBenchmark> <name>SolutionInitializer</name> <solver> <customSolverPhase> <customSolverPhaseCommandClass>org.optaplanner.examples.pas.solver.solution.initializer.PatientAdmissionScheduleSolutionInitializer</customSolverPhaseCommandClass> </customSolverPhase> </solver> </solverBenchmark> <solverBenchmark> <name>undoMoveTabuSize3-random</name> <solver> <customSolverPhase> <customSolverPhaseCommandClass>org.optaplanner.examples.pas.solver.solution.initializer.PatientAdmissionScheduleSolutionInitializer</customSolverPhaseCommandClass> </customSolverPhase> <localSearch> <moveListFactory> <selectionOrder>RANDOM</selectionOrder> <moveListFactoryClass>org.optaplanner.examples.pas.solver.move.factory.BedDesignationPillarPartSwapMoveFactory</moveListFactoryClass> </moveListFactory> <acceptor> <solutionTabuSize>1000</solutionTabuSize> <undoMoveTabuSize>3</undoMoveTabuSize> </acceptor> <forager> <acceptedCountLimit>500</acceptedCountLimit><!-- TODO tweak me --> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>undoMoveTabuSize3-shuffled</name> <solver> <customSolverPhase> <customSolverPhaseCommandClass>org.optaplanner.examples.pas.solver.solution.initializer.PatientAdmissionScheduleSolutionInitializer</customSolverPhaseCommandClass> </customSolverPhase> <localSearch> <moveListFactory> <cacheType>STEP</cacheType> <selectionOrder>SHUFFLED</selectionOrder> <moveListFactoryClass>org.optaplanner.examples.pas.solver.move.factory.BedDesignationPillarPartSwapMoveFactory</moveListFactoryClass> </moveListFactory> <acceptor> <solutionTabuSize>1000</solutionTabuSize> <undoMoveTabuSize>3</undoMoveTabuSize> </acceptor> <forager> <acceptedCountLimit>500</acceptedCountLimit><!-- TODO tweak me --> </forager> </localSearch> </solver> </solverBenchmark> </plannerBenchmark>