Examples of addLoadConstraint()


Examples of jsprit.core.problem.constraint.ConstraintManager.addLoadConstraint()

     * define constraints
     */
    //constraint manager
    ConstraintManager constraintManager = new ConstraintManager(vrp,stateManager);
    constraintManager.addTimeWindowConstraint();
    constraintManager.addLoadConstraint();
        constraintManager.addSkillsConstraint();
   
    return readAndCreateAlgorithm(vrp, config, nuOfThreads, null, stateManager, constraintManager, true)
  }

View Full Code Here

Examples of jsprit.core.problem.constraint.ConstraintManager.addLoadConstraint()

     */
    constraintManager.addTimeWindowConstraint();
    /*
     * tells constraintManager to add loadConstraints
     */
    constraintManager.addLoadConstraint();
    /*
     * add an arbitrary number of hardConstraints by
     * constraintManager.addConstraint(...)
     */
   
 
View Full Code Here

Examples of jsprit.core.problem.constraint.ConstraintManager.addLoadConstraint()

    StateManager stateManager = new StateManager(vrp);
    stateManager.updateLoadStates();
   
    ConstraintManager constraintManager = new ConstraintManager(vrp,stateManager);
    constraintManager.addLoadConstraint();
    stateManager.informInsertionStarts(Arrays.asList(route), null);
   
    JobCalculatorSwitcher switcher = new JobCalculatorSwitcher();
    ServiceInsertionCalculator serviceInsertionCalc = new ServiceInsertionCalculator(routingCosts, activityInsertionCostsCalculator, constraintManager);
        serviceInsertionCalc.setJobActivityFactory(activityFactory);
View Full Code Here

Examples of jsprit.core.problem.constraint.ConstraintManager.addLoadConstraint()

//        stateManager.updateTimeWindowStates();
        stateManager.addStateUpdater(new UpdateVariableCosts(vrp.getActivityCosts(), vrp.getTransportCosts(), stateManager));

        ConstraintManager constraintManager = new ConstraintManager(vrp,stateManager);
//        constraintManager.addTimeWindowConstraint();
        constraintManager.addLoadConstraint();

        VehicleFleetManager fleetManager = new InfiniteFleetManagerFactory(vrp.getVehicles()).createFleetManager();

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

Examples of jsprit.core.problem.constraint.ConstraintManager.addLoadConstraint()

    stateManager.updateTimeWindowStates();
    stateManager.addStateUpdater(new UpdateVariableCosts(vrp.getActivityCosts(), vrp.getTransportCosts(), stateManager));


    ConstraintManager cManager = new ConstraintManager(vrp, stateManager);
    cManager.addLoadConstraint();
    cManager.addTimeWindowConstraint();
   
       
    VehicleFleetManager fleetManager = new InfiniteFleetManagerFactory(vrp.getVehicles()).createFleetManager();
   
View Full Code Here

Examples of jsprit.core.problem.constraint.ConstraintManager.addLoadConstraint()

    states.updateLoadStates();
    states.updateTimeWindowStates();
    states.addStateUpdater(new UpdateVariableCosts(vrp.getActivityCosts(), vrp.getTransportCosts(), states));
   
    ConstraintManager cManager = new ConstraintManager(vrp,states);
    cManager.addLoadConstraint();
    cManager.addTimeWindowConstraint();
   
   
    ExampleActivityCostFunction activityCosts = new ExampleActivityCostFunction();
    ActivityInsertionCostsCalculator actInsertionCostCalculator = new RouteLevelActivityInsertionCostsEstimator(costs, activityCosts, states);
View Full Code Here

Examples of jsprit.core.problem.constraint.ConstraintManager.addLoadConstraint()

   
    final StateManager stateManager = new StateManager(vrp);
   

    ConstraintManager constraintManager = new ConstraintManager(vrp,stateManager);
    constraintManager.addLoadConstraint();
    constraintManager.addTimeWindowConstraint();
   
    VehicleFleetManager fleetManager = new InfiniteFleetManagerFactory(vrp.getVehicles()).createFleetManager();

    BestInsertionBuilder bestIBuilder = new BestInsertionBuilder(vrp, fleetManager, stateManager,constraintManager);
View Full Code Here

Examples of jsprit.core.problem.constraint.ConstraintManager.addLoadConstraint()

    VehicleRoutingProblem vrp = vrpBuilder.build();
   
    final StateManager stateManager = new StateManager(vrp);

    ConstraintManager constraintManager = new ConstraintManager(vrp,stateManager);
    constraintManager.addLoadConstraint();
    constraintManager.addTimeWindowConstraint();
   
    VehicleFleetManager fleetManager = new InfiniteFleetManagerFactory(vrp.getVehicles()).createFleetManager();

    BestInsertionBuilder bestIBuilder = new BestInsertionBuilder(vrp, fleetManager, stateManager,constraintManager);
View Full Code Here

Examples of jsprit.core.problem.constraint.ConstraintManager.addLoadConstraint()

    states = new StateManager(vrp);
    states.updateLoadStates();
    states.updateTimeWindowStates();
   
    ConstraintManager cManager = new ConstraintManager(vrp,states);
    cManager.addLoadConstraint();
    cManager.addTimeWindowConstraint();
   
    VehicleRoutingActivityCosts actCosts = mock(VehicleRoutingActivityCosts.class);
   
    serviceInsertion = new ServiceInsertionCalculator(costs, new LocalActivityInsertionCostsCalculator(costs, actCosts), cManager);
View Full Code Here

Examples of jsprit.core.problem.constraint.ConstraintManager.addLoadConstraint()

     
      final StateManager stateManager = new StateManager(vrp);
     
      ConstraintManager constraintManager = new ConstraintManager(vrp,stateManager);
      constraintManager.addTimeWindowConstraint();
      constraintManager.addLoadConstraint();
     
      VehicleFleetManager fleetManager = new InfiniteFleetManagerFactory(vrp.getVehicles()).createFleetManager();
     
      BestInsertionBuilder iBuilder = new BestInsertionBuilder(vrp, fleetManager, stateManager, constraintManager);
//      iBuilder.setConstraintManager(constraintManger);
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.