257.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>
257.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");