All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.optaplanner.examples.pas.benchmark.patientAdmissionScheduleBenchmarkConfig.xml Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 9.44.0.Final
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<plannerBenchmark>
  <benchmarkDirectory>local/data/pas</benchmarkDirectory>
  <parallelBenchmarkCount>AUTO</parallelBenchmarkCount>
  <warmUpSecondsSpentLimit>30</warmUpSecondsSpentLimit>

  <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_MEDIUM_SOFT</scoreDefinitionType>
        <scoreDrl>org/optaplanner/examples/pas/solver/patientAdmissionScheduleScoreRules.drl</scoreDrl>
      </scoreDirectorFactory>
      <termination>
        <secondsSpentLimit>300</secondsSpentLimit>
      </termination>
    </solver>
  </inheritedSolverBenchmark>

  <solverBenchmark>
    <name>FFD</name>
    <solver>
      <constructionHeuristic>
        <constructionHeuristicType>FIRST_FIT_DECREASING</constructionHeuristicType>
      </constructionHeuristic>
    </solver>
  </solverBenchmark>

  <solverBenchmark>
    <name>BFD</name>
    <solver>
      <constructionHeuristic>
        <constructionHeuristicType>BEST_FIT_DECREASING</constructionHeuristicType>
      </constructionHeuristic>
    </solver>
  </solverBenchmark>

  <solverBenchmark>
    <name>old MH</name>
    <solver>
      <constructionHeuristic>
        <constructionHeuristicType>BEST_FIT_DECREASING</constructionHeuristicType>
      </constructionHeuristic>
      <localSearch>
        <moveListFactory>
          <selectionOrder>RANDOM</selectionOrder>
          <moveListFactoryClass>org.optaplanner.examples.pas.solver.move.factory.BedDesignationPillarPartSwapMoveFactory</moveListFactoryClass>
        </moveListFactory>
        <acceptor>
          <undoMoveTabuSize>3</undoMoveTabuSize>
        </acceptor>
        <forager>
          <acceptedCountLimit>500</acceptedCountLimit>
        </forager>
      </localSearch>
    </solver>
  </solverBenchmark>
  <solverBenchmark>
    <name>TS 7</name>
    <solver>
      <constructionHeuristic>
        <constructionHeuristicType>BEST_FIT_DECREASING</constructionHeuristicType>
      </constructionHeuristic>
      <localSearch>
        <unionMoveSelector>
          <changeMoveSelector/>
          <swapMoveSelector/>
          <pillarSwapMoveSelector/>
        </unionMoveSelector>
        <acceptor>
          <entityTabuSize>7</entityTabuSize>
        </acceptor>
        <forager>
          <acceptedCountLimit>1000</acceptedCountLimit>
        </forager>
      </localSearch>
    </solver>
  </solverBenchmark>
  <solverBenchmark>
    <name>LA 200</name>
    <solver>
      <constructionHeuristic>
        <constructionHeuristicType>BEST_FIT_DECREASING</constructionHeuristicType>
      </constructionHeuristic>
      <localSearch>
        <unionMoveSelector>
          <changeMoveSelector/>
          <swapMoveSelector/>
          <pillarSwapMoveSelector/>
        </unionMoveSelector>
        <acceptor>
          <lateAcceptanceSize>200</lateAcceptanceSize>
        </acceptor>
        <forager>
          <acceptedCountLimit>1</acceptedCountLimit>
        </forager>
      </localSearch>
    </solver>
  </solverBenchmark>
</plannerBenchmark>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy