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

Merge branch 'master' into PickupAndDelivery

This commit is contained in:
oblonski 2013-10-18 05:30:52 +02:00
commit 6eddbbbef7
8 changed files with 28 additions and 16 deletions

21
Changelog.md Normal file
View file

@ -0,0 +1,21 @@
Change-log
==========
**v0.0.4** @ 2013-10-17
- A number of internal improvements
- License change from GPLv2 to LGPLv3
- Add premature algorithm termination: PrematureAlgorithmBreaker.java and its implementations
- SearchStrategy.java: public SearchStrategy(SolutionSelector,SolutionAcceptor) --> public SearchStratgy(SolutionSelector,SolutionAcceptor,SolutionCostCalculator)
- SearchStrategy.java: public boolean run(...) --> public DiscoveredSolution run(...)
- VehicleImpl.VehicleType.Builder --> VehicleTypeImpl.Builder
- VehicleImpl.VehicleBuilder --> VehicleImpl.Builder
**v0.0.3** @ 2013-06-04
- Bug fix - access resources in jar
**v0.0.2** @ 2013-06-03
- Bug fix - access resources in jar
**v0.0.1** @ 2013-06-02

View file

@ -21,7 +21,6 @@ can be used, and a dynamic and interactive visualiser greatly enhances the analy
- continues improvement of code, handling and performance - continues improvement of code, handling and performance
- relaxed API to easily build algorithms from scratch - relaxed API to easily build algorithms from scratch
- VRP with pickups and deliveries - VRP with pickups and deliveries
- release 1.0.0
##Documentation ##Documentation
@ -36,6 +35,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 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 ##About
The jsprit-project is created and maintained by Stefan Schröder. It is motivated by two issues. The jsprit-project is created and maintained by Stefan Schröder. It is motivated by two issues.

View file

@ -22,7 +22,7 @@
<parent> <parent>
<groupId>jsprit</groupId> <groupId>jsprit</groupId>
<artifactId>jsprit</artifactId> <artifactId>jsprit</artifactId>
<version>0.0.4-SNAPSHOT</version> <version>0.0.5-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>jsprit-analysis</artifactId> <artifactId>jsprit-analysis</artifactId>

View file

@ -22,7 +22,7 @@
<parent> <parent>
<groupId>jsprit</groupId> <groupId>jsprit</groupId>
<artifactId>jsprit</artifactId> <artifactId>jsprit</artifactId>
<version>0.0.4-SNAPSHOT</version> <version>0.0.5-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>jsprit-core</artifactId> <artifactId>jsprit-core</artifactId>

View file

@ -145,12 +145,6 @@ public class TourActivities {
activityRemoved = true; 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."); if(jobRemoved != activityRemoved) throw new IllegalStateException("job removed, but belonging activity not.");
return activityRemoved; return activityRemoved;
@ -177,14 +171,10 @@ public class TourActivities {
} }
private void addJob(TourActivity act) { private void addJob(TourActivity act) {
if(act instanceof JobActivity){ if(act instanceof JobActivity){
Job job = ((JobActivity) act).getJob(); Job job = ((JobActivity) act).getJob();
jobs.add(job); jobs.add(job);
} }
else if(act instanceof ServiceActivity){
jobs.add(((ServiceActivity) act).getJob());
}
} }
public int jobSize() { public int jobSize() {

View file

@ -22,7 +22,7 @@
<parent> <parent>
<groupId>jsprit</groupId> <groupId>jsprit</groupId>
<artifactId>jsprit</artifactId> <artifactId>jsprit</artifactId>
<version>0.0.4-SNAPSHOT</version> <version>0.0.5-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View file

@ -22,7 +22,7 @@
<parent> <parent>
<groupId>jsprit</groupId> <groupId>jsprit</groupId>
<artifactId>jsprit</artifactId> <artifactId>jsprit</artifactId>
<version>0.0.4-SNAPSHOT</version> <version>0.0.5-SNAPSHOT</version>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>

View file

@ -23,7 +23,7 @@
<groupId>jsprit</groupId> <groupId>jsprit</groupId>
<artifactId>jsprit</artifactId> <artifactId>jsprit</artifactId>
<version>0.0.4-SNAPSHOT</version> <version>0.0.5-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>