.activate_output(+)
Traditional static traffic assignment method
Description
This .activate_output allows you to activate various types of output to be generated as part of the assignment results. Do note that the more output is being activated, the more effort the simulation must make to gather this information causing various degrees of performance loss.
Signature
.activate_output(output_type)
with
Parameter | Type | Unit | Compulsory | Description |
---|---|---|---|---|
output_type | OutputType.<enum> | - | yes | Choice of output type to activate |
Return type
None
Supported types
Traditional static assignment currently supports the following output types:
OutputType.LINK
for link segment outputsOutputType.OD
for origin-destination based outputs (skims)OutputType.PATH
for path specific outputs
Example 1
from planit import *
# Choose to run Planit with a traditional static traffic assignment method
planit_instance = Planit()
planit_instance.project.set(TrafficAssignment.TRADITIONAL_STATIC)
# activate path outputs
planit_instance.project.assignment.activate_output(OutputType.PATH)
See also
N/a
Source code
Class AssignmentWrapper
in projectwrappers.py