2017-03-01 26 views
0

我們的輸入文件採用xml格式,在optaplanner示例的「未解決」目錄中進行了描述。用於VRP的xml格式的optaplanner基準文件

當我們使用基準配置文件時,它使用「.vrp」格式。無論如何,我們可以改變這一點,以瞭解XML格式?附件是我正在更改的xml配置文件,並且希望使用「.xml」而不是「.vrp」文件格式。有什麼建議麼?

<problemBenchmarks> 
<solutionFileIOClass>org.optaplanner.examples.vehiclerouting.persistence.VehicleRoutingFileIO</solutionFileIOClass> 
    <inputSolutionFile>data/vehiclerouting/import/belgium/basic/air/belgium-n50-k10.vrp</inputSolutionFile> 

回答

0

使用<xStreamAnnotatedClass>而不是<solutionFileIOClass>。請參閱cloudBalancingBenchmarkConfig.xml

相關問題