Examples of AlgorithmConfigXmlReader


Examples of jsprit.core.algorithm.io.AlgorithmConfigXmlReader

      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.AlgorithmConfigXmlReader

     */
    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() {
     
      @Override
View Full Code Here

Examples of jsprit.core.algorithm.io.AlgorithmConfigXmlReader

     */
    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() {
     
      @Override
View Full Code Here

Examples of jsprit.core.algorithm.io.AlgorithmConfigXmlReader

   * @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.AlgorithmConfigXmlReader

   * @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
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.