mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
Fix passing insertion index to ActivityContext for shipment delivery activities
This commit is contained in:
parent
1f4974c210
commit
dd43783772
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ final class ShipmentInsertionCalculator implements JobInsertionCostsCalculator {
|
||||||
deliverShipment.setTheoreticalEarliestOperationStartTime(deliveryTimeWindow.getStart());
|
deliverShipment.setTheoreticalEarliestOperationStartTime(deliveryTimeWindow.getStart());
|
||||||
deliverShipment.setTheoreticalLatestOperationStartTime(deliveryTimeWindow.getEnd());
|
deliverShipment.setTheoreticalLatestOperationStartTime(deliveryTimeWindow.getEnd());
|
||||||
ActivityContext activityContext_ = new ActivityContext();
|
ActivityContext activityContext_ = new ActivityContext();
|
||||||
activityContext.setInsertionIndex(j);
|
activityContext_.setInsertionIndex(j);
|
||||||
insertionContext.setActivityContext(activityContext_);
|
insertionContext.setActivityContext(activityContext_);
|
||||||
ConstraintsStatus deliverShipmentConstraintStatus = hardActivityLevelConstraint.fulfilled(insertionContext, prevAct_deliveryLoop, deliverShipment, nextAct_deliveryLoop, prevActEndTime_deliveryLoop);
|
ConstraintsStatus deliverShipmentConstraintStatus = hardActivityLevelConstraint.fulfilled(insertionContext, prevAct_deliveryLoop, deliverShipment, nextAct_deliveryLoop, prevActEndTime_deliveryLoop);
|
||||||
if (deliverShipmentConstraintStatus.equals(ConstraintsStatus.FULFILLED)) {
|
if (deliverShipmentConstraintStatus.equals(ConstraintsStatus.FULFILLED)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue