Skip to content

Commit 7019051

Browse files
committed
core: stdcm: increase max length to test for engineering allowances
Signed-off-by: Eloi Charpentier <[email protected]>
1 parent 9151b80 commit 7019051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/kotlin/fr/sncf/osrd/stdcm/graph/EngineeringAllowanceManager.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class EngineeringAllowanceManager(private val graph: STDCMGraph) {
4343
if (affectedEdges.isEmpty()) return false // No space to try the allowance
4444

4545
val length = affectedEdges.map { it.length.distance }.sumDistances()
46-
if (length > 20_000.meters) {
46+
if (length > 50_000.meters) {
4747
// If the allowance area is large enough to reasonably stop and accelerate again, we
4848
// just accept the solution. This avoids computation on very large paths
4949
// (which can be quite time expensive)

0 commit comments

Comments
 (0)