Menu

Commit [r23178]  Maximize  Restore  History

put Subtour analysis in TripStructureUtils

subtour analysis is now accessible in a purely static way. It uses
TripStructureUtils.getTrips(), so it is able to handle non-strict
act/leg sequences as well as trips with dummy "stage" activities,
and returns results presented in Trip form.

As a bonus point, I also find the reworked code much more readable, even
if the logic is the same.

The test hopefully covers well what was covered by
PlanAnalyzeSubtourTest, even if there are fewer testcases. It also
checks the behavior in case of complex trips and successive activities.

thibautd 2013-02-22

changed /matsim/trunk/src/main/java/org/matsim/core/router/TripStructureUtils.java
added /matsim/trunk/src/test/java/org/matsim/core/router/TripStructureUtilsSubtoursTest.java
/matsim/trunk/src/main/java/org/matsim/core/router/TripStructureUtils.java Diff Switch to side-by-side view
Loading...
/matsim/trunk/src/test/java/org/matsim/core/router/TripStructureUtilsSubtoursTest.java Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.