From 020efb759fd089409fd30e18e5f0cbab0c770982 Mon Sep 17 00:00:00 2001 From: nkuehnel Date: Thu, 2 May 2024 17:27:01 +0200 Subject: [PATCH] fix wrong order of arguments --- .../org/matsim/core/population/routes/PopulationComparison.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matsim/src/main/java/org/matsim/core/population/routes/PopulationComparison.java b/matsim/src/main/java/org/matsim/core/population/routes/PopulationComparison.java index c6396a58f79..d9c57c0a02a 100644 --- a/matsim/src/main/java/org/matsim/core/population/routes/PopulationComparison.java +++ b/matsim/src/main/java/org/matsim/core/population/routes/PopulationComparison.java @@ -73,7 +73,7 @@ public static Result compare(Population population1, Population population2, dou Optional score2 = Optional.ofNullable(plan2.getScore()); if (score1.isPresent() && score2.isPresent()) { - if (!isWithinDelta(delta, plan2.getScore(), plan1.getScore())) { + if (!isWithinDelta(plan1.getScore(), plan2.getScore(), delta)) { double maxScore = Double.NEGATIVE_INFINITY; for (Plan plan : person2.getPlans()) {