.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.LINKfor link segment outputsOutputType.ODfor origin-destination based outputs (skims)OutputType.PATHfor path specific outputs
Example 1
from planit import *
# Choose to run PLANit with a traditional static traffic assignment method
planit_instance = PLANit()
planit_instance.set(TrafficAssignment.TRADITIONAL_STATIC)
# activate path outputs
planit_instance.assignment.activate_output(OutputType.PATH)
See also
N/a
Source code
Class AssignmentWrapper in Wrappers.py
Last modified January 1, 0001