Skip to content

Commit

Permalink
update subpopulations
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Jul 10, 2023
1 parent cfd9de0 commit 556c61e
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions src/main/java/org/matsim/run/RunOpenBerlinScenario.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@
@MATSimApplication.Prepare()
public class RunOpenBerlinScenario extends MATSimApplication {

private static final Logger log = LogManager.getLogger(RunOpenBerlinCalibration.class);

public static final String VERSION = "6.0";
public static final String CRS = "EPSG:25832";

private static final Logger log = LogManager.getLogger(RunOpenBerlinCalibration.class);
@CommandLine.Mixin
private final SampleOptions sample = new SampleOptions(25, 10, 1);

public RunOpenBerlinScenario() {
super(String.format("input/v%s/berlin-v%s-base-calib.config.xml", VERSION, VERSION));
}
Expand Down Expand Up @@ -63,21 +62,21 @@ protected Config prepareConfig(Config config) {
Activities.addScoringParams(config, true);

// Required for all calibration strategies
for (String subpopulation : List.of("person", "commercialPersonTraffic", "commercialPersonTraffic_service")) {
for (String subpopulation : List.of("person", "freight", "goodsTraffic", "commercialPersonTraffic", "commercialPersonTraffic_service")) {
config.strategy().addStrategySettings(
new StrategyConfigGroup.StrategySettings()
.setStrategyName(DefaultPlanStrategiesModule.DefaultSelector.ChangeExpBeta)
.setWeight(1.0)
.setSubpopulation(subpopulation)
);
}

config.strategy().addStrategySettings(
new StrategyConfigGroup.StrategySettings()
.setStrategyName(DefaultPlanStrategiesModule.DefaultStrategy.ReRoute)
.setWeight(0.15)
.setSubpopulation("person")
);
config.strategy().addStrategySettings(
new StrategyConfigGroup.StrategySettings()
.setStrategyName(DefaultPlanStrategiesModule.DefaultStrategy.ReRoute)
.setWeight(0.15)
.setSubpopulation("person")
);
}

config.strategy().addStrategySettings(
new StrategyConfigGroup.StrategySettings()
Expand Down

0 comments on commit 556c61e

Please sign in to comment.