Package jsprit.core.algorithm.ruin.distance

Examples of jsprit.core.algorithm.ruin.distance.AvgServiceAndShipmentDistance


      ModKey ruinKey = makeKey(ruin_name,ruin_id);
      if(ruin_name.equals("randomRuin")){
        ruin = getRandomRuin(vrp, routeStates, definedClasses, ruinKey, shareToRuin);
      }
      else if(ruin_name.equals("radialRuin")){
        JobDistance jobDistance = new AvgServiceAndShipmentDistance(vrp.getTransportCosts());
        ruin = getRadialRuin(vrp, routeStates, definedClasses, ruinKey, shareToRuin, jobDistance);
      }
      else throw new IllegalStateException("ruin[@name] " + ruin_name + " is not known. Use either randomRuin or radialRuin.");
     
      String insertionName = moduleConfig.getString("insertion[@name]");
View Full Code Here


   
    /*
     * 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

        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

   
    /*
     * 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

Related Classes of jsprit.core.algorithm.ruin.distance.AvgServiceAndShipmentDistance

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.