mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
enable search with different insertion strategies
This commit is contained in:
parent
c472042781
commit
7ce6a8d68a
6 changed files with 233 additions and 31 deletions
|
|
@ -67,8 +67,8 @@ public class SolomonWithRegretInsertionExample {
|
|||
*
|
||||
* The algorithm can be defined and configured in an xml-file.
|
||||
*/
|
||||
VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, 2, "input/algorithmConfig_greedyWithRegret.xml");
|
||||
vra.setMaxIterations(50);
|
||||
VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, "input/algorithmConfig_greedyWithRegret.xml");
|
||||
vra.setMaxIterations(2);
|
||||
|
||||
AlgorithmEventsRecorder eventsRecorder = new AlgorithmEventsRecorder(vrp,new File("output/events.dgs.gz"));
|
||||
eventsRecorder.setRecordingRange(0,50);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue