mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
added soft constraints to shipment calc
This commit is contained in:
parent
941e4ae29b
commit
330fa937a0
8 changed files with 257 additions and 96 deletions
|
|
@ -239,7 +239,7 @@ public class BicycleMessenger {
|
|||
//if you want, terminate it after 1000 iterations with no change
|
||||
// algorithm.setPrematureAlgorithmTermination(new IterationWithoutImprovementTermination(1000));
|
||||
// algorithm.addListener(new AlgorithmSearchProgressChartListener("output/progress.png"));
|
||||
algorithm.setNuOfIterations(200);
|
||||
algorithm.setNuOfIterations(2000);
|
||||
Collection<VehicleRoutingProblemSolution> solutions = algorithm.searchSolutions();
|
||||
|
||||
//this is just to ensure that solution meet the above constraints
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue