.smoothing

Traditional static traffic assignment property

Description

The .smoothing property allows access to the chosen smoothing method assuming it has been set. It can be used for configuration specific to the chosen type.

Return type

Smoothing implementation

Example 1

from planit import *

# prep
planit_instance = Planit()
planit_instance.project.set(TrafficAssignment.TRADITIONAL_STATIC)

#
# <other configuration>
#

# We choose SPEED as our virtual cost, set it, and access it for further configuration
planit_instance.project.set(Smoothing.MSA)
planit_instance.project.smoothing.<call method>

#
# <other configuration>
#

See also

Smoothing.<enum> for all available smoothing options

Source code

Class AssignmentWrapper in projectwrappers.py