.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.project.set(TrafficAssignment.TRADITIONAL_STATIC)

#
# <other configuration>
#

# We choose BPR as our physical cost, set it, and access it for further configuration
planit_instance.project.set(PhysicalCost.BPR)
planit_instance.project.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 projectwrappers.py

Last modified January 1, 0001