org.optaplanner.examples.travelingtournament.benchmark.travelingTournamentBenchmarkConfig.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/travelingtournament</benchmarkDirectory> <parallelBenchmarkCount>AUTO</parallelBenchmarkCount> <warmUpSecondsSpentLimit>30</warmUpSecondsSpentLimit> <inheritedSolverBenchmark> <problemBenchmarks> <xStreamAnnotatedClass>org.optaplanner.examples.travelingtournament.domain.TravelingTournament</xStreamAnnotatedClass> <inputSolutionFile>data/travelingtournament/unsolved/1-nl14.xml</inputSolutionFile> <problemStatisticType>BEST_SCORE</problemStatisticType> <!--<problemStatisticType>STEP_SCORE</problemStatisticType>--> <!--<problemStatisticType>CALCULATE_COUNT_PER_SECOND</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> <solutionClass>org.optaplanner.examples.travelingtournament.domain.TravelingTournament</solutionClass> <entityClass>org.optaplanner.examples.travelingtournament.domain.Match</entityClass> <scoreDirectorFactory> <scoreDefinitionType>HARD_SOFT</scoreDefinitionType> <scoreDrl>org/optaplanner/examples/travelingtournament/solver/travelingTournamentScoreRules.drl</scoreDrl> </scoreDirectorFactory> <termination> <hoursSpentLimit>2</hoursSpentLimit> <!--<minutesSpentLimit>10</minutesSpentLimit>--> </termination> </solver> </inheritedSolverBenchmark> <solverBenchmark> <name>tabuSearch</name> <solver> <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> <solutionTabuSize>1500</solutionTabuSize> <moveTabuSize>7</moveTabuSize> </acceptor> <forager> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>simulatedAnnealing-0hard-8000soft</name> <solver> <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>0hard/8000soft</simulatedAnnealingStartingTemperature> <!--<entityTabuSize>5</entityTabuSize>--> </acceptor> <forager> <!--<pickEarlyType>FIRST_BEST_SCORE_IMPROVING</pickEarlyType>--> <acceptedCountLimit>4</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>simulatedAnnealing-0hard-10000soft</name> <solver> <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>0hard/10000soft</simulatedAnnealingStartingTemperature> <!--<entityTabuSize>5</entityTabuSize>--> </acceptor> <forager> <!--<pickEarlyType>FIRST_BEST_SCORE_IMPROVING</pickEarlyType>--> <acceptedCountLimit>4</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>simulatedAnnealing-2hard-10000soft</name> <solver> <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> <!--<entityTabuSize>5</entityTabuSize>--> </acceptor> <forager> <!--<pickEarlyType>FIRST_BEST_SCORE_IMPROVING</pickEarlyType>--> <acceptedCountLimit>4</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> </plannerBenchmark>