Examples of UpdateEndLocationIfRouteIsOpen


Examples of jsprit.core.algorithm.state.UpdateEndLocationIfRouteIsOpen

   */
  public VehicleRoutingAlgorithm build() {
    if(stateManager == null) stateManager = new StateManager(vrp);
    if(constraintManager == null) constraintManager = new ConstraintManager(vrp,stateManager);
    //add core updater
    stateManager.addStateUpdater(new UpdateEndLocationIfRouteIsOpen());
//    stateManager.addStateUpdater(new OpenRouteStateVerifier());

    if(addCoreConstraints){
      constraintManager.addLoadConstraint();
      constraintManager.addTimeWindowConstraint();
View Full Code Here

Examples of jsprit.core.algorithm.state.UpdateEndLocationIfRouteIsOpen

        VehicleRoutingProblem vehicleRoutingProblem = mock(VehicleRoutingProblem.class);
        when(vehicleRoutingProblem.copyAndGetActivities(shipmentToInsert)).thenReturn(getTourActivities(shipmentToInsert));
    Inserter inserter = new Inserter(mock(InsertionListeners.class),vehicleRoutingProblem );
    inserter.insertJob(shipmentToInsert, iData, route);
   
    UpdateEndLocationIfRouteIsOpen updateEnd = new UpdateEndLocationIfRouteIsOpen();
    updateEnd.visit(route);
   
    assertEquals("oldShipmentDelLoc",route.getEnd().getLocationId());
  }
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.