Skip to content

Commit

Permalink
make annealing + mutationRange 900 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
simei94 committed Mar 22, 2024
1 parent 198a99a commit 52a8fa9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion input/v1.0/mexico-city-v1.0-1pct.input.config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16155,7 +16155,7 @@
<!-- Default:true; Defines whether time mutation changes an activity's duration. -->
<param name="mutationAffectsDuration" value="true" />
<!-- Default:1800.0; Defines how many seconds a time mutation can maximally shift a time. -->
<param name="mutationRange" value="1800.0" />
<param name="mutationRange" value="900.0" />
<!-- Mutation Range Step, default = 1 second -->
<param name="mutationRangeStep" value="1.0" />
</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ public Integer call() throws Exception {

configureQsimModule(config);

config.timeAllocationMutator().setMutationRange(900.);

config.replanning().setFractionOfIterationsToDisableInnovation(0.9);
config.replanning().clearStrategySettings();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/matsim/run/RunMexicoCityScenario.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class RunMexicoCityScenario extends MATSimApplication {

Logger log = LogManager.getLogger(RunMexicoCityScenario.class);

@CommandLine.Option(names = "--annealing", defaultValue = "false", description = "Defines if replanning annealing is used or not.")
@CommandLine.Option(names = "--annealing", defaultValue = "true", description = "Defines if replanning annealing is used or not.")
private boolean annealing;
@CommandLine.Option(names = "--bikes-on-network", defaultValue = "false", description = "Define how bicycles are handled: True: as network mode, false: as teleported mode.")
private boolean bikeOnNetwork;
Expand Down

0 comments on commit 52a8fa9

Please sign in to comment.