Examples of BenchmarkInstance


Examples of jsprit.core.util.BenchmarkInstance

  public void addBenchmarkWriter(BenchmarkWriter writer){
    writers.add(writer);
  }

  public void addInstance(String name, VehicleRoutingProblem problem){
    benchmarkInstances.add(new BenchmarkInstance(name,problem,null,null));
  }
View Full Code Here

Examples of jsprit.core.util.BenchmarkInstance

  public void addAllInstances(Collection<BenchmarkInstance> instances){
    benchmarkInstances.addAll(instances);
  }
 
  public void addInstance(String name, VehicleRoutingProblem problem, Double bestKnownResult, Double bestKnownVehicles){
    benchmarkInstances.add(new BenchmarkInstance(name,problem,bestKnownResult,bestKnownVehicles));
  }
View Full Code Here

Examples of jsprit.core.util.BenchmarkInstance

   * @param problem
   * @throws IllegalStateException if there is already an instance with the same name.
   */
  public void addInstance(String name, VehicleRoutingProblem problem){
    if(benchmarkInstances.contains(name)) throw new IllegalStateException("there is already an instance with the same name (instanceName="+name+"). unique names are required.");
    benchmarkInstances.add(new BenchmarkInstance(name,problem,null,null));
    instanceNames.add(name);
  }
View Full Code Here

Examples of jsprit.core.util.BenchmarkInstance

   * @param name
   * @param problem
   * @throws IllegalStateException if there is already an instance with the same name.
   */
  public void addInstance(String name, VehicleRoutingProblem problem, Double bestKnownResult, Double bestKnownVehicles){
    addInstance(new BenchmarkInstance(name,problem,bestKnownResult,bestKnownVehicles));
  }
View Full Code Here

Examples of jsprit.core.util.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

Examples of jsprit.core.util.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

Examples of jsprit.core.util.BenchmarkInstance

    for(int i=0;i<14;i++){
      VehicleRoutingProblem.Builder builder = VehicleRoutingProblem.Builder.newInstance();
      String file = inputFolder + "/vrpnc"+ (i+1) + ".txt";
      new ChristofidesReader(builder).read(file);
      VehicleRoutingProblem p = builder.build();
      instances.add(new BenchmarkInstance("vrpnc" + getInstanceNu(i+1), p, bestKnown.get(i).doubleValue(), null));
    }
    return instances;
  }
View Full Code Here

Examples of jsprit.core.util.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

Examples of jsprit.core.util.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

Examples of jsprit.core.util.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
TOP
Copyright © 2018 www.massapi.com. 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.