diff --git a/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/search/SingleTripChoicesGenerator.java b/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/search/SingleTripChoicesGenerator.java index 5ba80a11740..7f5afad42f4 100644 --- a/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/search/SingleTripChoicesGenerator.java +++ b/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/search/SingleTripChoicesGenerator.java @@ -61,6 +61,10 @@ public List generate(PlanModel planModel, @Nullable Set c ModeEstimate est = opt.get(); + // Not actual used modes are not generated here + if (est.getNoRealUsage()[idx]) + continue; + String[] modes = planModel.getCurrentModes(); modes[idx] = est.getMode();