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

org.optaplanner.examples.pas.solver.patientAdmissionScheduleSolverConfig.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"?>
<solver>
  <!--<environmentMode>FAST_ASSERT</environmentMode>-->
  <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>3720</maximumSecondsSpend>
  </termination>
  <customSolverPhase>
    <!-- TODO use BEST_FIT_DECREASING instead (saves up to 10 minutes), but deal with the extra scoreDRL problem -->
    <customSolverPhaseCommandClass>org.optaplanner.examples.pas.solver.solution.initializer.PatientAdmissionScheduleSolutionInitializer</customSolverPhaseCommandClass>
  </customSolverPhase>
  <localSearch>
    <!--<unionMoveSelector>-->
      <!--<changeMoveSelector/>-->
      <!--<swapMoveSelector/>-->
    <!--</unionMoveSelector>-->
    <moveListFactory>
      <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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy