mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
adapt examples to v1.0.0 changes
This commit is contained in:
parent
d24bd93c59
commit
90bf27a696
5 changed files with 5 additions and 5 deletions
|
|
@ -103,7 +103,7 @@ public class CostMatrixExample {
|
|||
VehicleRoutingTransportCosts costMatrix = costMatrixBuilder.build();
|
||||
|
||||
VehicleRoutingProblem vrp = VehicleRoutingProblem.Builder.newInstance().setFleetSize(FleetSize.INFINITE).setRoutingCost(costMatrix)
|
||||
.addVehicle(vehicle).addService(s1).addService(s2).addService(s3).build();
|
||||
.addVehicle(vehicle).addJob(s1).addJob(s2).addJob(s3).build();
|
||||
|
||||
VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "input/fastAlgo.xml");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue