Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: stdcm: lower the visited margin even lower #10712

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading