1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

Update WHATS_NEW.md

This commit is contained in:
jsprit 2014-09-05 14:06:09 +02:00
parent df4ed02e03
commit d434ce4902

View file

@ -62,17 +62,21 @@ You can now retrieve additional information about related activities from JobIns
If one deals with shipments then two activities will be inserted: pickupShipment and deliverShipment.
If you implement
If you implement core.problem.constraint.SoftActivityContraint and core.problem.constraint.HardActivityStateLevelConstraint and thus
<code>public double getCosts(JobInsertionContext iFacts, TourActivity prevAct, TourActivity newAct, TourActivity nextAct, double prevActDepTime);</code>
and
<code>public ConstraintsStatus fulfilled(JobInsertionContext iFacts, TourActivity prevAct, TourActivity newAct, TourActivity nextAct, double prevActDepTime);</code>
you can now retrieve additional information from iFacts. If newAct is "deliverShipment" then
<code>iFacts.getRelatedActivityContext();</code>
provides arrivalTime, endTime and potentialInsertionIndex of the related "pickupShipment" (see javadoc of ActivityContext).
This allows you to easily implement LIFO and FIFO constraints.
This allows you to easily implement LIFO and FIFO constraints (since you now know where the pickup activity will be inserted).