1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-08-03 14:16:54 +02:00

More robust algorithm

This commit is contained in:
Ehouarn
2025-08-02 17:18:51 +02:00
parent 8e98d62b69
commit 573f2d8a22
2 changed files with 8 additions and 9 deletions

View File

@@ -110,6 +110,6 @@ class TestWEIAlgorithm(TestCase):
max_score = buses[0][1][0]
penalty += (max_score - score) ** 2
self.assertLessEqual(max_score - score, 1) # Always less than 25 % of tolerance
self.assertLessEqual(max_score - score, 1)
self.assertLessEqual(penalty / 100, 25) # Tolerance of 5 %