Package jsprit.core.algorithm.listener

Examples of jsprit.core.algorithm.listener.AlgorithmStartsListener


    SolutionCostCalculator costCalculator;
    if(solutionCostCalculator==null) costCalculator = getDefaultCostCalculator(stateManager);
    else costCalculator = solutionCostCalculator;
   
    //construct initial solution creator
    AlgorithmStartsListener createInitialSolution = createInitialSolution(config,vrp,vehicleFleetManager,stateManager,algorithmListeners,definedClasses,executorService,nuOfThreads,costCalculator, constraintManager, addDefaultCostCalculators);
    if(createInitialSolution != null) algorithmListeners.add(new PrioritizedVRAListener(Priority.MEDIUM, createInitialSolution));

    //construct algorithm, i.e. search-strategies and its modules
    int solutionMemory = config.getInt("strategy.memory");
    SearchStrategyManager searchStratManager = new SearchStrategyManager();
View Full Code Here


      algorithmListeners.addAll(prioListeners);
      definedClasses.put(insertionStrategyKey,insertionStrategy);
    }
    final InsertionStrategy finalInsertionStrategy = insertionStrategy;

    return new AlgorithmStartsListener() {

      @Override
      public void informAlgorithmStarts(VehicleRoutingProblem problem, VehicleRoutingAlgorithm algorithm, Collection<VehicleRoutingProblemSolution> solutions) {
        InsertionInitialSolutionFactory insertionInitialSolutionFactory = new InsertionInitialSolutionFactory(finalInsertionStrategy, solutionCostCalculator);
        VehicleRoutingProblemSolution vrpSol = insertionInitialSolutionFactory.createSolution(vrp);
View Full Code Here

TOP

Related Classes of jsprit.core.algorithm.listener.AlgorithmStartsListener

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.