diff --git a/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/pruning/CandidatePruner.java b/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/pruning/CandidatePruner.java index 1aa7cf892c4..ef2cc7af044 100644 --- a/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/pruning/CandidatePruner.java +++ b/contribs/informed-mode-choice/src/main/java/org/matsim/modechoice/pruning/CandidatePruner.java @@ -37,7 +37,9 @@ default void onSelectCandidate(PlanModel model, PlanCandidate candidate) { * * @return positive threshold, if negative it will not be applied */ - double planThreshold(PlanModel planModel); + default double planThreshold(PlanModel planModel) { + return -1; + } /** @@ -45,5 +47,7 @@ default void onSelectCandidate(PlanModel model, PlanCandidate candidate) { * * @return positive threshold, if negative it will not be applied */ - double tripThreshold(PlanModel planModel, int idx); + default double tripThreshold(PlanModel planModel, int idx) { + return -1; + } }