.physical_cost
Traditional static traffic assignment property
Description
The .physical_cost property allows access to the chosen physical cost assuming it has been set. It can be used for configuration specific to the chosen type.
Return type
Physical Cost implementation
Example 1
from planit import *
# prep
planit_instance = PLANit()
planit_instance.set(TrafficAssignment.TRADITIONAL_STATIC)
#
# <other configuration>
#
# We choose BPR as our physical cost, set it, and access it for further configuration
planit_instance.set(PhysicalCost.BPR)
planit_instance.physical_cost.<call method>
#
# <other configuration>
#
See also
PhysicalCost.<enum> for all available physical cost options
PhysicalCost Describes the options available for all available physical cost implementations
Source code
Class AssignmentWrapper
in Wrappers.py