mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
add another algo-config for vrp with heterogeneous fleet
This commit is contained in:
parent
9d1bbc2e84
commit
b7c75a2e05
2 changed files with 79 additions and 0 deletions
|
|
@ -38,6 +38,9 @@ public class HVRPBenchmarkExample {
|
|||
vrpBuilder.addPenaltyVehicles(10.0);
|
||||
VehicleRoutingProblem vrp = vrpBuilder.build();
|
||||
|
||||
//try also input//jsprit-examples/input/algorithmConfig_considerFixedCosts_routeLevel.xml
|
||||
//results might even be a bit better, but it is slower, since it checks insertion on routeLevel
|
||||
//rather than on local level
|
||||
VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "input/algorithmConfig_considerFixedCosts.xml");
|
||||
vra.setNuOfIterations(10000);
|
||||
// vra.setPrematureAlgorithmTermination(new IterationWithoutImprovementTermination(500));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue