Skip to content

Commit

Permalink
ENH: #181 - Implement toggle for initial transfer relaxation.
Browse files Browse the repository at this point in the history
  • Loading branch information
clukas1 committed Feb 4, 2025
1 parent a0c5cf3 commit 65f367d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/ch/naviqore/raptor/router/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ List<QueryState.Label[]> run() {

// initially relax all source stops and add the newly improved stops by relaxation to the marked stops
initialize();
footpathRelaxer.relaxInitial();
removeSuboptimalLabelsForRound(0);

if (config.isDoInitialTransferRelaxation()) {
footpathRelaxer.relaxInitial();
removeSuboptimalLabelsForRound(0);
}

// if range is 0 or smaller there is no range, and we don't need to rerun rounds with different start offsets
if (raptorRange <= 0) {
Expand Down

0 comments on commit 65f367d

Please sign in to comment.