Skip to content

Commit

Permalink
update calibrate dist script
Browse files Browse the repository at this point in the history
  • Loading branch information
rakow committed Feb 20, 2024
1 parent 6d0dce2 commit f8e49ac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/python/calibrate_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import pandas as pd

from matsim.calibration import create_calibration, ASCDistCalibrator, utils
from matsim.calibration import create_calibration, ASCDistCalibrator, constraints, utils

# %%

Expand Down Expand Up @@ -31,7 +31,8 @@ def filter_modes(df):

study, obj = create_calibration(
"calib",
ASCDistCalibrator(modes, initial, target, lr=utils.linear_scheduler(start=0.3, interval=15)),
ASCDistCalibrator(modes, initial, target, lr=utils.linear_scheduler(start=0.3, interval=15),
constraints=dict(ride=constraints.negative, walk=constraints.zero)),
"matsim-berlin-6.1-SNAPSHOT.jar",
"../../../input/v6.1/berlin-v6.1.config.xml",
args="--1pct --iterations 0",
Expand Down

0 comments on commit f8e49ac

Please sign in to comment.