2016-04-22 18 views
2

http://docs.jboss.org/optaplanner/release/6.4.0.Final/optaplanner-docs/html_single/index.html#benchmarkBlueprintで説明されているOptaPlannerベンチマークの青写真を使用しようとしています。OptaPlannerベンチマークの青写真を使用してsimulatedAnnealingStartingTemperatureを指定する方法

私はEVERY_CONSTRUCTION_HEURISTIC_TYPE_WITH_EVERY_LOCAL_SEARCH_TYPEのsolverBenchmarkBluePrintTypeを使用すると、私は次のエラーを取得する:

The acceptorType (SIMULATED_ANNEALING) currently requires a simulatedAnnealingStartingTemperature (null). 

だから私はinheritedSolverBenchmarkセクションで私のbenchmark.xmlファイルに以下を追加してみました:

<localSearch> 
    <acceptor> 
    <simulatedAnnealingStartingTemperature>0hard/500soft</simulatedAnnealingStartingTemperature> 
    </acceptor>  
</localSearch> 

そして、このエラーが表示されます:

The exception of the firstFailureSingleBenchmarkRunner 
(solution_FIRST_FIT-HILL_CLIMBING_0) is chained./ 
java.lang.IllegalStateException Local Search phase (0) needs to start 
from an initialized solution, but the planning variable 
(HatchEventOrderAllocator3bOrder.assignedHatchEvent) is uninitialized 
for the entity [email protected]ab0f). 
Initialize the solution by configuring a Construction Heuristic phase before this phase. 

inheritedSolverBenchmarkにlocalSearchセクションを含めても、私が意図していない副作用があるようです。

模擬アニーリングアルゴリズムの各繰り返しにsimulatedAnnealingStartingTemperatureを渡すと、青写真を使用することはできますか?

答えて

1

これはa bug(ジラリンク)です。私はまだ幾分合理的なSAのデフォルト温度を決定する方法を見つけていない(それはあまりにも特殊なケースである)。

回避策:青写真のベンチマークレポートでSAの結果を無視してください。

jiraの可能な修正点:青写真からSAを削除するか、10hard/1000softのような愚かなデフォルト温度を実行します。後者は、SAが彼らの場合に役に立たないという誤った印象を与えるかもしれないが、前者はSAに機会を与える機会を与えないかもしれない。

関連する問題