mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
count LiuShen services from 1, instead of 11
This commit is contained in:
parent
e3acb05b0a
commit
b3b154cdd6
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ public class LuiShenReader {
|
||||||
if (counter == 10) {
|
if (counter == 10) {
|
||||||
createVehicles(vehicleFile, costScenario, customerId, coord, start, end);
|
createVehicles(vehicleFile, costScenario, customerId, coord, start, end);
|
||||||
} else {
|
} else {
|
||||||
Service service = Service.Builder.newInstance("" + counter).addSizeDimension(0, demand)
|
Service service = Service.Builder.newInstance("" + (counter - 10)).addSizeDimension(0, demand)
|
||||||
.setLocation(Location.Builder.newInstance().setCoordinate(coord).setId(customerId).build()).setServiceTime(serviceTime)
|
.setLocation(Location.Builder.newInstance().setCoordinate(coord).setId(customerId).build()).setServiceTime(serviceTime)
|
||||||
.setTimeWindow(TimeWindow.newInstance(start, end)).build();
|
.setTimeWindow(TimeWindow.newInstance(start, end)).build();
|
||||||
vrpBuilder.addJob(service);
|
vrpBuilder.addJob(service);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue