Skip to content

Commit

Permalink
core: stdcm: lower the visited margin even lower
Browse files Browse the repository at this point in the history
Signed-off-by: Eloi Charpentier <[email protected]>
  • Loading branch information
eckter committed Feb 10, 2025
1 parent 1a2ec20 commit eeb8aa2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/src/main/kotlin/fr/sncf/osrd/stdcm/graph/STDCMGraph.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ class STDCMGraph(
val allowanceManager: EngineeringAllowanceManager = EngineeringAllowanceManager(this)
val backtrackingManager: BacktrackingManager = BacktrackingManager(this)

// min 2 minutes between two edges, determined empirically
private val visitedNodes = VisitedNodes(2 * 60.0)
// min 30s between two edges, determined empirically
// TODO: this value *should* reflect twice the min delay between two trains,
// but it seems we need it to be as small as the smallest amount of time
// a train can occupy a block. There's an issue somewhere.
private val visitedNodes = VisitedNodes(30.0)

// A* heuristic
val remainingTimeEstimator: STDCMAStarHeuristic
Expand Down

0 comments on commit eeb8aa2

Please sign in to comment.