org.optaplanner.examples.tennis.solver.tennisSolverConfig.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 all versions of optaplanner-examples
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"?> <solver xmlns="https://www.optaplanner.org/xsd/solver" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://www.optaplanner.org/xsd/solver https://www.optaplanner.org/xsd/solver/solver.xsd"> <!--<environmentMode>FULL_ASSERT</environmentMode>--><!-- To slowly prove there are no bugs in this code --> <!--<moveThreadCount>AUTO</moveThreadCount>--><!-- To solve faster by saturating multiple CPU cores --> <!-- Domain model configuration --> <solutionClass>org.optaplanner.examples.tennis.domain.TennisSolution</solutionClass> <entityClass>org.optaplanner.examples.tennis.domain.TeamAssignment</entityClass> <!-- Score configuration --> <scoreDirectorFactory> <!--<constraintProviderClass>org.optaplanner.examples.tennis.optional.score.TennisConstraintProvider</constraintProviderClass>--> <scoreDrl>org/optaplanner/examples/tennis/solver/tennisConstraints.drl</scoreDrl> <!--<assertionScoreDirectorFactory>--> <!--<scoreDrl>org/optaplanner/examples/tennis/solver/tennisConstraints.drl</scoreDrl>--> <!--</assertionScoreDirectorFactory>--> <initializingScoreTrend>ONLY_DOWN</initializingScoreTrend> </scoreDirectorFactory> <!-- Optimization algorithms configuration --> <termination> <secondsSpentLimit>120</secondsSpentLimit> </termination> <constructionHeuristic> <constructionHeuristicType>FIRST_FIT</constructionHeuristicType> </constructionHeuristic> <localSearch> <acceptor> <lateAcceptanceSize>500</lateAcceptanceSize> <!--<entityTabuSize>7</entityTabuSize>--> </acceptor> <forager> <!--<acceptedCountLimit>1000</acceptedCountLimit>--> <acceptedCountLimit>1</acceptedCountLimit> </forager> </localSearch> </solver>