我正在用jsprit解决VRP。我使用 VrpXmlReader 从文件中读取解决方案
VehicleRoutingProblem.Builder problemBuilder = VehicleRoutingProblem.Builder.newInstance();
VrpXMLReader vrpXMLReader = new VrpXMLReader(problemBuilder, solutions);
vrpXMLReader.setSchemaValidation(false);
vrpXMLReader.read(initialSolutionStream);
VehicleRoutingProblem solutionProblem = problemBuilder.build();
但是当解决方案包含车辆中断时,我得到一个错误
java.lang.IllegalArgumentException: The vehicle routing roblem already contains a vehicle break with id null. Please choose unique ids for each vehicle break.
我怎样才能解决这个问题?