mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
vrph
This commit is contained in:
parent
e49fb8dd9b
commit
5954371789
1 changed files with 4 additions and 1 deletions
|
|
@ -51,7 +51,10 @@ public class Vrph2jsprit {
|
||||||
typeBuilder.setFixedCost(Double.parseDouble(tokens[3]));
|
typeBuilder.setFixedCost(Double.parseDouble(tokens[3]));
|
||||||
typeBuilder.setCostPerDistance(1.0);
|
typeBuilder.setCostPerDistance(1.0);
|
||||||
VehicleTypeImpl type = typeBuilder.build();
|
VehicleTypeImpl type = typeBuilder.build();
|
||||||
Vehicle vehicle = VehicleImpl.Builder.newInstance("vehicle_"+tokens[1]).setType(type).build();
|
Vehicle vehicle = VehicleImpl.Builder.newInstance("vehicle_"+tokens[1])
|
||||||
|
.setLocationCoord(depotCoord).setType(type).build();
|
||||||
|
vrpBuilder.addVehicle(vehicle);
|
||||||
|
// vrpBuilder.s
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue