Package jsprit.core.algorithm.state

Examples of jsprit.core.algorithm.state.UpdateVariableCosts


     */
   
    /*
     * updates variable costs once a vehicleRoute has changed (by removing or adding a customer)
     */
    stateManager.addStateUpdater(new UpdateVariableCosts(vrp.getActivityCosts(), vrp.getTransportCosts(), stateManager));
   
    /*
     * constructs a constraintManager that manages the various hardConstraints (and soon also softConstraints)
     */
    ConstraintManager constraintManager = new ConstraintManager(vrp,stateManager);
View Full Code Here


            }
        };
        route = VehicleRoute.Builder.newInstance(vehicle).setJobActivityFactory(activityFactory).addService(s1).addService(s2).addService(s3).build();

        stateManager = new StateManager(mock(VehicleRoutingProblem.class));
        stateManager.addStateUpdater(new UpdateVariableCosts(activityCosts,routingCosts,stateManager));
        stateManager.informInsertionStarts(Arrays.asList(route), Collections.<Job>emptyList());
        constraintManager = new ConstraintManager(vrp,stateManager);
    }
View Full Code Here

        VehicleRoutingProblem vrp = builder.build();

        final StateManager stateManager = new StateManager(vrp);
        stateManager.updateLoadStates();
//        stateManager.updateTimeWindowStates();
        stateManager.addStateUpdater(new UpdateVariableCosts(vrp.getActivityCosts(), vrp.getTransportCosts(), stateManager));

        ConstraintManager constraintManager = new ConstraintManager(vrp,stateManager);
//        constraintManager.addTimeWindowConstraint();
        constraintManager.addLoadConstraint();
View Full Code Here

    vrp = builder.build();
   
    final StateManager stateManager = new StateManager(vrp);
    stateManager.updateLoadStates();
    stateManager.updateTimeWindowStates();
    stateManager.addStateUpdater(new UpdateVariableCosts(vrp.getActivityCosts(), vrp.getTransportCosts(), stateManager));


    ConstraintManager cManager = new ConstraintManager(vrp, stateManager);
    cManager.addLoadConstraint();
    cManager.addTimeWindowConstraint();
View Full Code Here

    vrp = VehicleRoutingProblem.Builder.newInstance().addAllJobs(jobs).addVehicle(vehicle).addVehicle(newVehicle).setRoutingCost(costs).build();
   
    states = new StateManager(vrp);
    states.updateLoadStates();
    states.updateTimeWindowStates();
    states.addStateUpdater(new UpdateVariableCosts(vrp.getActivityCosts(), vrp.getTransportCosts(), states));
   
    ConstraintManager cManager = new ConstraintManager(vrp,states);
    cManager.addLoadConstraint();
    cManager.addTimeWindowConstraint();
   
View Full Code Here

            }

        }).addService(s1).addService(s2).addService(s3).build();

        stateManager = new StateManager(vrp);
        stateManager.addStateUpdater(new UpdateVariableCosts(activityCosts,routingCosts,stateManager));
        stateManager.informInsertionStarts(Arrays.asList(route), Collections.<Job>emptyList());
    }
View Full Code Here

     */
   
    /*
     * updates variable costs once a vehicleRoute has changed (by removing or adding a customer)
     */
    stateManager.addStateUpdater(new UpdateVariableCosts(vrp.getActivityCosts(), vrp.getTransportCosts(), stateManager));
   
    /*
     * constructs a constraintManager that manages the various hardConstraints (and soon also softConstraints)
     */
    ConstraintManager constraintManager = new ConstraintManager(vrp,stateManager);
View Full Code Here

TOP

Related Classes of jsprit.core.algorithm.state.UpdateVariableCosts

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.