PhysicalCost.<Enum>

Physical Cost types

Description

Class exposing the available Physical Cost types as enums.

It is possible that not every physical cost method is supported by every traffic assignment method. The documentation of the chosen traffic assignment method will indicate what physical cost methods are supported.

Fields

<enum> Fields Description Instance documentation
BPR Bureau of Public Roads1 link performance function BPR Physical Cost
FREEFLOW Cost always equates to free flow travel time Free flow Physical Cost

1 United States, Bureau of Public Roads, Traffic assignment manual. (1964). Washington.

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)

# set physical cost to BPR link performance function
planit_instance.project.assignment.set(PhysicalCost.BPR)

# configure the instantiated property
planit_instance.project.assignment.physical_cost.<call method>

See also

Assignment for the various assignment methods where one can set the physical cost on and how to retrieve the instantiated physical cost object.

Source code

Class PhysicalCost in enums.py