VRP 的 xml 格式的 optaplanner 基准文件

optaplanner benchmark file in xml format for VRP

我们有 xml 格式的输入文件,在 optaplanner 示例的 "unsolved" 目录中有描述。

当我们使用基准配置文件时,它使用的是“.vrp”格式。无论如何,我们可以更改它以理解 xml 格式吗?附件是我正在更改并希望使用“.xml”而不是“.vrp”文件格式的 xml 配置文件。有什么建议吗?

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

使用 <xStreamAnnotatedClass> 而不是 <solutionFileIOClass>。参见 cloudBalancingBenchmarkConfig.xml