Skip to content

Commit

Permalink
no drt in smc (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
simei94 committed Sep 2, 2024
1 parent 7e56092 commit 414e5a3
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main/java/org/matsim/run/RunLausitzDrtScenario.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.matsim.core.config.ConfigUtils;
import org.matsim.core.config.groups.QSimConfigGroup;
import org.matsim.core.config.groups.ScoringConfigGroup;
import org.matsim.core.config.groups.SubtourModeChoiceConfigGroup;
import org.matsim.core.controler.AbstractModule;
import org.matsim.core.controler.Controler;
import org.matsim.core.network.algorithms.MultimodalNetworkCleaner;
Expand Down Expand Up @@ -125,19 +124,6 @@ protected Config prepareConfig(Config config) {
.setMarginalUtilityOfTraveling(-0.));
}

SubtourModeChoiceConfigGroup smc = ConfigUtils.addOrGetModule(config, SubtourModeChoiceConfigGroup.class);

// TODO remove this after testing and comment back in the if clause below
smc.setModes(new String[]{TransportMode.drt});
config.replanning().setFractionOfIterationsToDisableInnovation(1.);

// if (!String.join(",", smc.getModes()).contains(TransportMode.drt)) {
// String[] modes = Arrays.copyOf(smc.getModes(), smc.getModes().length + 1);
// modes[modes.length - 1] = TransportMode.drt;
//
// smc.setModes(modes);
// }

// creates a drt staging activity and adds it to the scoring params
DrtConfigs.adjustMultiModeDrtConfig(multiModeDrtConfigGroup, config.scoring(), config.routing());

Expand Down

0 comments on commit 414e5a3

Please sign in to comment.