Hello,
i want to add initial jobs (shipments), thus need to be served and should not be re-assigned, to the vrpbuilder. I found a way, but it works only for one initial shipment. Having two or more initial shipments, i am doing it probably wrong with my current solution.
The xml-File from the initial solution contains two shipments. So i guess, this should not be the problem.
I found a example (iii) to read initial services:
private static Service getService(String serviceId, Builder vrpBuilder) {
for (Job j : vrpBuilder.getAddedJobs()) {
if (j.getId().equals(serviceId)) {
return (Service) j;
}
}
return null;
}
But doing it this way, i only get the most recent shipment and not all shipments.
Is there a other way to get all shipments from the initial solution?
I am using jsprit 1.6.2.
Thank You,
Snoopy