Examples of RadialRuinStrategyFactory


Examples of jsprit.core.algorithm.ruin.RadialRuinStrategyFactory

  private static RuinStrategy getRadialRuin(final VehicleRoutingProblem vrp, final StateManager routeStates, TypedMap definedClasses, ModKey modKey, double shareToRuin, JobDistance jobDistance) {
    RuinStrategyKey stratKey = new RuinStrategyKey(modKey);
    RuinStrategy ruin = definedClasses.get(stratKey);
    if(ruin == null){
      ruin = new RadialRuinStrategyFactory(shareToRuin, jobDistance).createStrategy(vrp);
      definedClasses.put(stratKey, ruin);
    }
    return ruin;
  }
View Full Code Here

Examples of jsprit.core.algorithm.ruin.RadialRuinStrategyFactory

   
    /*
     * third, define radial-ruin that ruins 30-percent of the selected solution
     * the second para defines the distance between two jobs.
     */
    RuinStrategy radialRuin = new RadialRuinStrategyFactory(0.3, new AvgServiceAndShipmentDistance(vrp.getTransportCosts())).createStrategy(vrp);
   
    /*
     * now define a strategy
     */
    /*
 
View Full Code Here

Examples of jsprit.core.algorithm.ruin.RadialRuinStrategyFactory

        BestInsertionBuilder bestIBuilder = new BestInsertionBuilder(vrp, fleetManager, stateManager,constraintManager);
        InsertionStrategy bestInsertion = bestIBuilder.build();


        RuinStrategy radial = new RadialRuinStrategyFactory( 0.3, new AvgServiceAndShipmentDistance(vrp.getTransportCosts())).createStrategy(vrp);
        RuinStrategy random = new RandomRuinStrategyFactory(0.5).createStrategy(vrp);


        SolutionCostCalculator solutionCostCalculator = new SolutionCostCalculator() {
View Full Code Here

Examples of jsprit.core.algorithm.ruin.RadialRuinStrategyFactory

       
    VehicleFleetManager fleetManager = new InfiniteFleetManagerFactory(vrp.getVehicles()).createFleetManager();
   
    InsertionStrategy bestInsertion = new BestInsertionBuilder(vrp, fleetManager, stateManager, cManager).build();
   
    RuinStrategy radial = new RadialRuinStrategyFactory(0.15, new AvgServiceDistance(vrp.getTransportCosts())).createStrategy(vrp);
    RuinStrategy random = new RandomRuinStrategyFactory(0.25).createStrategy(vrp);
   
    SolutionCostCalculator solutionCostCalculator = new SolutionCostCalculator() {
     
      @Override
View Full Code Here

Examples of jsprit.core.algorithm.ruin.RadialRuinStrategyFactory

     
      BestInsertionBuilder iBuilder = new BestInsertionBuilder(vrp, fleetManager, stateManager, constraintManager);
//      iBuilder.setConstraintManager(constraintManger);
      InsertionStrategy bestInsertion = iBuilder.build();
       
      RuinStrategy radial = new RadialRuinStrategyFactory( 0.15, new AvgServiceDistance(vrp.getTransportCosts())).createStrategy(vrp);
      RuinStrategy random = new RandomRuinStrategyFactory(0.25).createStrategy(vrp);
     
      SolutionCostCalculator solutionCostCalculator = new SolutionCostCalculator() {
       
        @Override
View Full Code Here

Examples of jsprit.core.algorithm.ruin.RadialRuinStrategyFactory

   
    /*
     * third, define radial-ruin that ruins 30-percent of the selected solution
     * the second para defines the distance between two jobs.
     */
    RuinStrategy radialRuin = new RadialRuinStrategyFactory(0.3, new AvgServiceAndShipmentDistance(vrp.getTransportCosts())).createStrategy(vrp);
   
    /*
     * now define a strategy
     */
    /*
 
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.