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:01:42 +02:00
parent dd2c7625b4
commit df4ed02e03

View file

@ -56,6 +56,26 @@ This, however, easily enables you to define objective functions that maximizes p
<b>Thus, if you already use your own custom objective function, you need to manually adapt it and add penalties for unassigned jobs.</b>
<b> LIFO and FIFO CONSTRAINTS </b>
You can now retrieve additional information about related activities from JobInsertionContext (see https://github.com/jsprit/jsprit/issues/127).
If one deals with shipments then two activities will be inserted: pickupShipment and deliverShipment.
If you implement
<code>public double getCosts(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.
------------------------------
<b>2014-08-20</b> jsprit has a mailing list (https://groups.google.com/group/jsprit-mailing-list)