From b991b9f34e092c3822de33dc40047c191e6ddc47 Mon Sep 17 00:00:00 2001 From: jsprit Date: Thu, 17 Oct 2013 17:24:25 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6c6175f0..56ac6955 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ This software is released under [LGPL](http://opensource.org/licenses/LGPL-3.0). [Add the latest snapshot to your pom](https://github.com/jsprit/jsprit/wiki/Add-latest-snapshot-to-your-pom). +[Add the latest release to your pom](https://github.com/jsprit/jsprit/wiki/Add-latest-release-to-your-pom). + ##About The jsprit-project is created and maintained by Stefan Schröder. It is motivated by two issues. From ba75c095deebbc2d2117734a08a3764839490b86 Mon Sep 17 00:00:00 2001 From: jsprit Date: Thu, 17 Oct 2013 17:31:13 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 56ac6955..1213a311 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,6 @@ can be used, and a dynamic and interactive visualiser greatly enhances the analy - continues improvement of code, handling and performance - relaxed API to easily build algorithms from scratch - VRP with pickups and deliveries -- release 1.0.0 ##Documentation From e9a3f98671149678485344ff5d436fb17fdae132 Mon Sep 17 00:00:00 2001 From: oblonski <4sschroeder@gmail.com> Date: Fri, 18 Oct 2013 05:26:34 +0200 Subject: [PATCH 3/3] clean TourActivities - remove redundant code --- .../src/main/java/basics/route/TourActivities.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/jsprit-core/src/main/java/basics/route/TourActivities.java b/jsprit-core/src/main/java/basics/route/TourActivities.java index 68116361..1625b683 100644 --- a/jsprit-core/src/main/java/basics/route/TourActivities.java +++ b/jsprit-core/src/main/java/basics/route/TourActivities.java @@ -145,12 +145,6 @@ public class TourActivities { activityRemoved = true; } } - else if(c instanceof ServiceActivity){ - if(job.equals(((ServiceActivity) c).getJob())){ - tourActivities.remove(c); - activityRemoved = true; - } - } } if(jobRemoved != activityRemoved) throw new IllegalStateException("job removed, but belonging activity not."); return activityRemoved; @@ -177,14 +171,10 @@ public class TourActivities { } private void addJob(TourActivity act) { - if(act instanceof JobActivity){ Job job = ((JobActivity) act).getJob(); jobs.add(job); } - else if(act instanceof ServiceActivity){ - jobs.add(((ServiceActivity) act).getJob()); - } } public int jobSize() {