258.6. 종료일

해결 방법은 solverConfig 에 지정된 한 오래 걸립니다.

<solver>
  ...
  <termination>
    <!-- Terminate after 10 seconds, unless it's not feasible by then yet -->
    <terminationCompositionStyle>AND</terminationCompositionStyle>
    <secondsSpentLimit>10</secondsSpentLimit>
    <bestScoreLimit>-1hard/0soft</bestScoreLimit>
  </termination>
  ...
<solver>

 

258.6.1. 샘플

OptaPlanner를 사용하여 ActiveMQ 대기열에 있는 계획 문제를 해결합니다.

from("activemq:My.Queue").
  .to("optaplanner:/org/foo/barSolverConfig.xml");

OptaPlanner를 REST 서비스로 노출합니다.

from("cxfrs:bean:rsServer?bindingStyle=SimpleConsumer")
  .to("optaplanner:/org/foo/barSolverConfig.xml");