public class PickupAndDeliverShipmentLoadActivityLevelConstraint extends Object implements HardActivityConstraint
This is critical to consistently calculate pd-problems with capacity constraints. Critical means that is MUST be visited. It also assumes that pd-activities are visited in the order they occur in a tour.
HardActivityConstraint.ConstraintsStatus| Constructor and Description |
|---|
PickupAndDeliverShipmentLoadActivityLevelConstraint(RouteAndActivityStateGetter stateManager)
Constructs the constraint ensuring capacity constraint at each activity.
|
| Modifier and Type | Method and Description |
|---|---|
HardActivityConstraint.ConstraintsStatus |
fulfilled(JobInsertionContext iFacts,
TourActivity prevAct,
TourActivity newAct,
TourActivity nextAct,
double prevActDepTime)
Checks whether there is enough capacity to insert newAct between prevAct and nextAct.
|
public PickupAndDeliverShipmentLoadActivityLevelConstraint(RouteAndActivityStateGetter stateManager)
This is critical to consistently calculate pd-problems with capacity constraints. Critical means that is MUST be visited. It also assumes that pd-activities are visited in the order they occur in a tour.
stateManager - the stateManagerpublic HardActivityConstraint.ConstraintsStatus fulfilled(JobInsertionContext iFacts, TourActivity prevAct, TourActivity newAct, TourActivity nextAct, double prevActDepTime)
fulfilled in interface HardActivityConstraintiFacts - JobInsertionContext provides additional information that might be important when evaluating the insertion of newActprevAct - the previous activity, i.e. the activity before the new activitynewAct - the new activity to be inserted in between prevAct and nextActnextAct - the next activity, i.e. the activity after the new activityprevActDepTime - the departure time at previous activity (prevAct) with the new vehicle (iFacts.getNewVehicle())Copyright © 2013–2016. All rights reserved.