1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

replace code for creating output folder with

Examples.createOutputFolder()
This commit is contained in:
oblonski 2014-02-04 21:58:30 +01:00
parent 3a160f85fe
commit bb98df01f1
24 changed files with 55 additions and 203 deletions

View file

@ -16,7 +16,6 @@
******************************************************************************/
package jsprit.examples;
import java.io.File;
import java.util.Collection;
import jsprit.analysis.toolbox.AlgorithmSearchProgressChartListener;
@ -29,6 +28,7 @@ import jsprit.core.algorithm.selector.SelectBest;
import jsprit.core.problem.VehicleRoutingProblem;
import jsprit.core.problem.io.VrpXMLReader;
import jsprit.core.problem.solution.VehicleRoutingProblemSolution;
import jsprit.util.Examples;
public class PickupAndDeliveryOpenExample {
@ -38,13 +38,7 @@ public class PickupAndDeliveryOpenExample {
/*
* some preparation - create output folder
*/
File dir = new File("output");
// if the directory does not exist, create it
if (!dir.exists()){
System.out.println("creating directory ./output");
boolean result = dir.mkdir();
if(result) System.out.println("./output created");
}
Examples.createOutputFolder();
/*
* Build the problem.