org.optaplanner.examples.cloudbalancing.benchmark.cloudBalancingBenchmarkConfig.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/cloudbalancing</benchmarkDirectory> <parallelBenchmarkCount>AUTO</parallelBenchmarkCount> <warmUpSecondsSpentLimit>30</warmUpSecondsSpentLimit> <inheritedSolverBenchmark> <problemBenchmarks> <xStreamAnnotatedClass>org.optaplanner.examples.cloudbalancing.domain.CloudBalance</xStreamAnnotatedClass> <!--<inputSolutionFile>data/cloudbalancing/unsolved/2computers-6processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/3computers-9processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/4computers-12processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/5computers-15processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/6computers-18processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/7computers-21processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/8computers-24processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/9computers-27processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/10computers-30processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/11computers-33processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/12computers-36processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/13computers-39processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/14computers-42processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/15computers-45processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/16computers-48processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/17computers-51processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/18computers-54processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/19computers-57processes.xml</inputSolutionFile>--> <!--<inputSolutionFile>data/cloudbalancing/unsolved/20computers-60processes.xml</inputSolutionFile>--> <inputSolutionFile>data/cloudbalancing/unsolved/100computers-300processes.xml</inputSolutionFile> <inputSolutionFile>data/cloudbalancing/unsolved/200computers-600processes.xml</inputSolutionFile> <inputSolutionFile>data/cloudbalancing/unsolved/400computers-1200processes.xml</inputSolutionFile> <inputSolutionFile>data/cloudbalancing/unsolved/800computers-2400processes.xml</inputSolutionFile> <inputSolutionFile>data/cloudbalancing/unsolved/1600computers-4800processes.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.cloudbalancing.domain.CloudBalance</solutionClass> <entityClass>org.optaplanner.examples.cloudbalancing.domain.CloudProcess</entityClass> <scoreDirectorFactory> <scoreDefinitionType>HARD_SOFT</scoreDefinitionType> <scoreDrl>org/optaplanner/examples/cloudbalancing/solver/cloudBalancingScoreRules.drl</scoreDrl> <initializingScoreTrend>ONLY_DOWN/ONLY_DOWN</initializingScoreTrend> </scoreDirectorFactory> <termination> <minutesSpentLimit>5</minutesSpentLimit> </termination> </solver> </inheritedSolverBenchmark> <!--<solverBenchmark>--> <!--<name>BRANCH_AND_BOUND</name>--> <!--<solver>--> <!--<exhaustiveSearch>--> <!--<exhaustiveSearchType>BRANCH_AND_BOUND</exhaustiveSearchType>--> <!--</exhaustiveSearch>--> <!--</solver>--> <!--</solverBenchmark>--> <solverBenchmark> <name>First Fit</name> <solver> <constructionHeuristic> <constructionHeuristicType>FIRST_FIT</constructionHeuristicType> </constructionHeuristic> </solver> </solverBenchmark> <solverBenchmark> <name>First Fit Decreasing</name> <solver> <constructionHeuristic> <constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType> </constructionHeuristic> </solver> </solverBenchmark> <solverBenchmark> <name>Tabu Search</name> <solver> <constructionHeuristic> <constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType> </constructionHeuristic> <localSearch> <unionMoveSelector> <changeMoveSelector/> <swapMoveSelector/> <pillarChangeMoveSelector/> <pillarSwapMoveSelector/> </unionMoveSelector> <acceptor> <entityTabuSize>7</entityTabuSize> </acceptor> <forager> <acceptedCountLimit>1000</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>Simulated Annealing</name> <solver> <constructionHeuristic> <constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType> </constructionHeuristic> <localSearch> <unionMoveSelector> <changeMoveSelector/> <swapMoveSelector/> <pillarChangeMoveSelector/> <pillarSwapMoveSelector/> </unionMoveSelector> <acceptor> <simulatedAnnealingStartingTemperature>0hard/400soft</simulatedAnnealingStartingTemperature> </acceptor> <forager> <acceptedCountLimit>4</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> <solverBenchmark> <name>Late Acceptance</name> <solver> <constructionHeuristic> <constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType> </constructionHeuristic> <localSearch> <unionMoveSelector> <changeMoveSelector/> <swapMoveSelector/> <pillarChangeMoveSelector/> <pillarSwapMoveSelector/> </unionMoveSelector> <acceptor> <lateAcceptanceSize>400</lateAcceptanceSize> </acceptor> <forager> <acceptedCountLimit>4</acceptedCountLimit> </forager> </localSearch> </solver> </solverBenchmark> </plannerBenchmark>