From df4ed02e033804d8583d56105f5df9fa2f6613e7 Mon Sep 17 00:00:00 2001 From: jsprit Date: Fri, 5 Sep 2014 14:01:42 +0200 Subject: [PATCH] Update WHATS_NEW.md --- WHATS_NEW.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/WHATS_NEW.md b/WHATS_NEW.md index 2957c18d..af44f129 100644 --- a/WHATS_NEW.md +++ b/WHATS_NEW.md @@ -56,6 +56,26 @@ This, however, easily enables you to define objective functions that maximizes p Thus, if you already use your own custom objective function, you need to manually adapt it and add penalties for unassigned jobs. + LIFO and FIFO CONSTRAINTS + +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 + +public double getCosts(JobInsertionContext iFacts, TourActivity prevAct, TourActivity newAct, TourActivity nextAct, double prevActDepTime); + +you can now retrieve additional information from iFacts. If newAct is "deliverShipment" then + +iFacts.getRelatedActivityContext(); + +provides arrivalTime, endTime and potentialInsertionIndex of the related "pickupShipment" (see javadoc of ActivityContext). + +This allows you to easily implement LIFO and FIFO constraints. + + + ------------------------------ 2014-08-20 jsprit has a mailing list (https://groups.google.com/group/jsprit-mailing-list)