Skip to content

Commit

Permalink
(ABM-1384) Freeway VDF Adjustment (AM and PM)
Browse files Browse the repository at this point in the history
  • Loading branch information
cliu committed Aug 5, 2021
1 parent dff5d9b commit ea878a9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/emme/toolbox/assignment/traffic_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,12 @@ def run_assignment(self, period, relative_gap, max_iterations, num_processors, s
"inro.emme.traffic_assignment.sola_traffic_assignment")
net_calc = gen_utils.NetworkCalculator(scenario)

if period in ["AM", "PM"]:
# For freeway links in AM and PM periods, convert VDF to type 25
net_calc("vdf", "25", "vdf=10")
# For freeway links in AM and PM periods, convert VDF to type 26
# net_calc("vdf", "26", "vdf=10")

p = period.lower()
assign_spec = self.base_assignment_spec(
relative_gap, max_iterations, num_processors)
Expand Down Expand Up @@ -674,6 +680,12 @@ def run_stochastic_assignment(
"solutions.stochastic_traffic_assignment")
net_calc = gen_utils.NetworkCalculator(scenario)

if period in ["AM", "PM"]:
# For freeway links in AM and PM periods, convert VDF to type 25
net_calc("vdf", "25", "vdf=10")
# For freeway links in AM and PM periods, convert VDF to type 26
# net_calc("vdf", "26", "vdf=10")

p = period.lower()
assign_spec = self.base_assignment_spec(
relative_gap, max_iterations, num_processors)
Expand Down

0 comments on commit ea878a9

Please sign in to comment.