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:
parent
3a160f85fe
commit
bb98df01f1
24 changed files with 55 additions and 203 deletions
|
|
@ -41,6 +41,7 @@ import jsprit.core.problem.vehicle.VehicleTypeImpl;
|
|||
import jsprit.core.util.Solutions;
|
||||
import jsprit.core.util.VehicleRoutingTransportCostsMatrix;
|
||||
import jsprit.core.util.VehicleRoutingTransportCostsMatrix.Builder;
|
||||
import jsprit.util.Examples;
|
||||
|
||||
|
||||
|
||||
|
|
@ -154,13 +155,7 @@ public class RefuseCollectionExample {
|
|||
/*
|
||||
* 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();
|
||||
|
||||
/*
|
||||
* create vehicle-type and vehicle
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue