Package jsprit.instance.reader

Examples of jsprit.instance.reader.CordeauReader


  }
 
  @Test
  public void testNuOfCustomers(){
    VehicleRoutingProblem.Builder vrpBuilder = VehicleRoutingProblem.Builder.newInstance();
    new CordeauReader(vrpBuilder).read(this.getClass().getClassLoader().getResource("p01").getPath());
    VehicleRoutingProblem vrp = vrpBuilder.build();
    assertEquals(50,vrp.getJobs().values().size());
  }
View Full Code Here


  public static Collection<BenchmarkInstance> getAllCordeauP(String inputFolder){
    Collection<BenchmarkInstance> instances = new ArrayList<BenchmarkInstance>();
    for(int i=0;i<23;i++){
      VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
      String file = inputFolder + "/p"+  getInstanceNu(i+1);
      new CordeauReader(builder).read(file);
      VehicleRoutingProblem p = builder.build();
      instances.add(new BenchmarkInstance("p" + getInstanceNu(i+1), p, getBestKnown(file), null));
    }
    return instances;
  }
View Full Code Here

  public static Collection<BenchmarkInstance> getAllCordeauPR(String inputFolder){
    Collection<BenchmarkInstance> instances = new ArrayList<BenchmarkInstance>();
    for(int i=0;i<10;i++){
      VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
      String file = inputFolder + "/pr"+  getInstanceNu(i+1);
      new CordeauReader(builder).read(file);
      VehicleRoutingProblem p = builder.build();
      instances.add(new BenchmarkInstance("pr" + getInstanceNu(i+1), p, getBestKnown(file),null));
    }
    return instances;
  }
View Full Code Here

TOP

Related Classes of jsprit.instance.reader.CordeauReader

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.