From 763b912ab483456f105cd37635b7a7bf7ef40716 Mon Sep 17 00:00:00 2001 From: rakow Date: Sun, 29 Dec 2024 22:12:20 +0100 Subject: [PATCH] don't try to anneal infinity --- .../java/org/matsim/modechoice/ModeChoiceWeightScheduler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/ModeChoiceWeightScheduler.java b/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/ModeChoiceWeightScheduler.java index f1779647ea7..e286ab4deda 100644 --- a/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/ModeChoiceWeightScheduler.java +++ b/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/ModeChoiceWeightScheduler.java @@ -55,7 +55,7 @@ public void notifyStartup(StartupEvent event) { @Override public void notifyIterationStarts(IterationStartsEvent event) { - if (anneal == InformedModeChoiceConfigGroup.Schedule.off || event.getIteration() == 0) + if (anneal == InformedModeChoiceConfigGroup.Schedule.off || event.getIteration() == 0 || currentBeta == Double.POSITIVE_INFINITY) return; // anneal target is 0, iterations are offset by 1 because first iteration does not do replanning