Skip to content

Commit

Permalink
core: stdcm: increase max length to test for engineering allowances
Browse files Browse the repository at this point in the history
Signed-off-by: Eloi Charpentier <[email protected]>
  • Loading branch information
eckter committed Jan 15, 2025
1 parent 675d279 commit 5e1ed69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class EngineeringAllowanceManager(private val graph: STDCMGraph) {
if (affectedEdges.isEmpty()) return false // No space to try the allowance

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

0 comments on commit 5e1ed69

Please sign in to comment.