Examples of AlgorithmConfig


Examples of jsprit.core.algorithm.io.AlgorithmConfig

            stateManager.updateLoadStates();
      stateManager.updateTimeWindowStates();
            stateManager.updateSkillStates();
    }
    if(algorithmConfig==null){
      algorithmConfig = new AlgorithmConfig();
      AlgorithmConfigXmlReader xmlReader = new AlgorithmConfigXmlReader(algorithmConfig);
      xmlReader.read(algorithmConfigFile);
    }
    return VehicleRoutingAlgorithms.readAndCreateAlgorithm(vrp, algorithmConfig, nuOfThreads, solutionCostCalculator, stateManager, constraintManager, addDefaultCostCalculators);
  }
View Full Code Here

Examples of jsprit.core.algorithm.io.AlgorithmConfig

     * randomWalk to determine standardDev
     */
    final double[] results = new double[nOfRandomWalks];
   
    URL resource = Resource.getAsURL("randomWalk.xml");
    AlgorithmConfig algorithmConfig = new AlgorithmConfig();
    new AlgorithmConfigXmlReader(algorithmConfig).read(resource);
    VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.createAlgorithm(problem, algorithmConfig);
    vra.setMaxIterations(nOfRandomWalks);
    vra.getAlgorithmListeners().addListener(new IterationEndsListener() {
     
View Full Code Here

Examples of jsprit.core.algorithm.io.AlgorithmConfig

     * randomWalk to determine standardDev
     */
    final double[] results = new double[nOfRandomWalks];
   
    URL resource = Resource.getAsURL("randomWalk.xml");
    AlgorithmConfig algorithmConfig = new AlgorithmConfig();
    new AlgorithmConfigXmlReader(algorithmConfig).read(resource);
    VehicleRoutingAlgorithm vra = VehicleRoutingAlgorithms.createAlgorithm(problem, algorithmConfig);
    vra.setNuOfIterations(nOfRandomWalks);
    vra.getAlgorithmListeners().addListener(new IterationEndsListener() {
     
View Full Code Here

Examples of jsprit.core.algorithm.io.AlgorithmConfig

   *
   * @param vrp
   * @return algorithm
   */
  public VehicleRoutingAlgorithm createAlgorithm(VehicleRoutingProblem vrp){
    AlgorithmConfig algorithmConfig = new AlgorithmConfig();
    URL resource = Resource.getAsURL("greedySchrimpf.xml");
    new AlgorithmConfigXmlReader(algorithmConfig).read(resource);
    return VehicleRoutingAlgorithms.createAlgorithm(vrp, algorithmConfig);
  }
View Full Code Here

Examples of jsprit.core.algorithm.io.AlgorithmConfig

   *
   * @param vrp the underlying vehicle routing problem
   * @return algorithm
   */
  public VehicleRoutingAlgorithm createAlgorithm(VehicleRoutingProblem vrp){
    AlgorithmConfig algorithmConfig = new AlgorithmConfig();
    URL resource = Resource.getAsURL("schrimpf.xml");
    new AlgorithmConfigXmlReader(algorithmConfig).read(resource);
    return VehicleRoutingAlgorithms.createAlgorithm(vrp, algorithmConfig);
  }
View Full Code Here

Examples of jsprit.core.algorithm.io.AlgorithmConfig

    VehicleRoutingProblem problem = vrpBuilder.build();
   
    /*
     * get the algorithm out-of-the-box.
     */
    AlgorithmConfig algorithmConfig = getAlgorithmConfig();
    VehicleRoutingAlgorithm algorithm = VehicleRoutingAlgorithms.createAlgorithm(problem,algorithmConfig);
   
    /*
     * and search a solution
     */
 
View Full Code Here

Examples of jsprit.core.algorithm.io.AlgorithmConfig

     */
    new Plotter(problem,bestSolution).plot("output/solution.png", "solution");
  }

  private static AlgorithmConfig getAlgorithmConfig() {
    AlgorithmConfig config = new AlgorithmConfig();
    XMLConfiguration xmlConfig = config.getXMLConfiguration();
    xmlConfig.setProperty("iterations", 2000);
    xmlConfig.setProperty("construction.insertion[@name]","bestInsertion");
   
    xmlConfig.setProperty("strategy.memory", 1);
    String searchStrategy = "strategy.searchStrategies.searchStrategy";
View Full Code Here

Examples of jsprit.core.algorithm.io.AlgorithmConfig

    plotter.plot("output/bestOf.png", "bestOfR101");
   
  }
 
  private static AlgorithmConfig getAlgorithmConfig(String alpha) {
    AlgorithmConfig config = new AlgorithmConfig();
    XMLConfiguration xmlConfig = config.getXMLConfiguration();
    xmlConfig.setProperty("iterations",10000);
    xmlConfig.setProperty("construction.insertion[@name]","bestInsertion");
   
    xmlConfig.setProperty("strategy.memory", 1);
    String searchStrategy = "strategy.searchStrategies.searchStrategy";
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.