Package jsprit.instance.reader

Examples of jsprit.instance.reader.SolomonReader


    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
   
    /*
     * A solomonReader reads solomon-instance files, and stores the required information in the builder.
     */
    new SolomonReader(vrpBuilder).read("input/R101.txt");
   
    /*
     * Finally, the problem can be built. By default, transportCosts are crowFlyDistances (as usually used for vrp-instances).
     */
    VehicleRoutingProblem vrp = vrpBuilder.build();
View Full Code Here


    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
   
    /*
     * A solomonReader reads solomon-instance files, and stores the required information in the builder.
     */
    new SolomonReader(vrpBuilder).read("input/C101_solomon.txt");


    /*
     * Finally, the problem can be built. By default, transportCosts are crowFlyDistances (as usually used for vrp-instances).
     */
 
View Full Code Here

    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
   
    /*
     * A solomonReader reads solomon-instance files, and stores the required information in the builder.
     */
    new SolomonReader(vrpBuilder).read("input/C101_solomon.txt");
   
    /*
     * Finally, the problem can be built. By default, transportCosts are crowFlyDistances (as usually used for vrp-instances).
     */
    VehicleRoutingProblem vrp = vrpBuilder.build();
View Full Code Here

    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
   
    /*
     * A solomonReader reads solomon-instance files, and stores the required information in the builder.
     */
    new SolomonReader(vrpBuilder).read("input/C101_solomon.txt");
   
    /*
     * Finally, the problem can be built. By default, transportCosts are crowFlyDistances (as usually used for vrp-instances).
     */
    VehicleRoutingProblem vrp = vrpBuilder.build();
View Full Code Here

    List<Double> bestKnowVehicles = Arrays.asList(10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0,10.0);
    Collection<BenchmarkInstance> instances = new ArrayList<BenchmarkInstance>();
    for(int i=0;i<9;i++){
      VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
      String file = inputFolder + "/C1"+ getInstanceNu(i+1) + ".txt";
      new SolomonReader(builder,1000).read(file);
      VehicleRoutingProblem p = builder.build();
      instances.add(new BenchmarkInstance("C1" + getInstanceNu(i+1), p, bestKnown.get(i).doubleValue(), bestKnowVehicles.get(i).doubleValue()));
    }
    return instances;
  }
View Full Code Here

    List<Double> bestKnowVehicles = Arrays.asList(3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0);
    Collection<BenchmarkInstance> instances = new ArrayList<BenchmarkInstance>();
    for(int i=0;i<8;i++){
      VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
      String file = inputFolder + "/C2"+ getInstanceNu(i+1) + ".txt";
      new SolomonReader(builder,1000).read(file);
      VehicleRoutingProblem p = builder.build();
      instances.add(new BenchmarkInstance("C2" + getInstanceNu(i+1), p, bestKnown.get(i).doubleValue(), bestKnowVehicles.get(i).doubleValue()));
    }
    return instances;
  }
View Full Code Here

    List<Double> bestKnowVehicles = Arrays.asList(19.0,17.0,13.0,9.0,14.0,12.0,10.0,9.0,11.0,10.0,10.0,9.0);
    Collection<BenchmarkInstance> instances = new ArrayList<BenchmarkInstance>();
    for(int i=0;i<12;i++){
      VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
      String file = inputFolder + "/R1"+ getInstanceNu(i+1) + ".txt";
      new SolomonReader(builder,1000).read(file);
      VehicleRoutingProblem p = builder.build();
      instances.add(new BenchmarkInstance("R1" + getInstanceNu(i+1), p, bestKnown.get(i).doubleValue(), bestKnowVehicles.get(i).doubleValue()));
    }
    return instances;
  }
View Full Code Here

    List<Double> bestKnowVehicles = Arrays.asList(4.0,3.0,3.0,2.0,3.0,3.0,2.0,2.0,3.0,3.0,2.0);
    Collection<BenchmarkInstance> instances = new ArrayList<BenchmarkInstance>();
    for(int i=0;i<11;i++){
      VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
      String file = inputFolder + "/R2"+ getInstanceNu(i+1) + ".txt";
      new SolomonReader(builder,1000).read(file);
      VehicleRoutingProblem p = builder.build();
      instances.add(new BenchmarkInstance("R2" + getInstanceNu(i+1), p, bestKnown.get(i).doubleValue(), bestKnowVehicles.get(i).doubleValue()));
    }
    return instances;
  }
View Full Code Here

    List<Double> bestKnowVehicles = Arrays.asList(14.0,12.0,11.0,10.0,13.0,11.0,11.0,10.0);
    Collection<BenchmarkInstance> instances = new ArrayList<BenchmarkInstance>();
    for(int i=0;i<8;i++){
      VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
      String file = inputFolder + "/RC1"+ getInstanceNu(i+1) + ".txt";
      new SolomonReader(builder,1000).read(file);
      VehicleRoutingProblem p = builder.build();
      instances.add(new BenchmarkInstance("RC1" + getInstanceNu(i+1), p, bestKnown.get(i).doubleValue(), bestKnowVehicles.get(i).doubleValue()));
    }
    return instances;
  }
View Full Code Here

    List<Double> bestKnowVehicles = Arrays.asList(4.0,3.0,3.0,3.0,4.0,3.0,3.0,3.0);
    Collection<BenchmarkInstance> instances = new ArrayList<BenchmarkInstance>();
    for(int i=0;i<8;i++){
      VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
      String file = inputFolder + "/RC2"+ getInstanceNu(i+1) + ".txt";
      new SolomonReader(builder,1000).read(file);
      VehicleRoutingProblem p = builder.build();
      instances.add(new BenchmarkInstance("RC2" + getInstanceNu(i+1), p, bestKnown.get(i).doubleValue(), bestKnowVehicles.get(i).doubleValue()));
    }
    return instances;
  }
View Full Code Here

TOP

Related Classes of jsprit.instance.reader.SolomonReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.