.set_fixed_connectoid_cost(+)
A Fixed virtual cost method
A fixed cost is applied for making the trip from a zone to the first modelled node that has an equivalent in the real-world, i.e., a physical node. The same holds for a movement in the opposite direction, i.e., from an elligble physical node to a zone. This cost is regarded as virtual since it does not utilise any real-world infrastructure.
The user can configure the fixed cost to apply via this class.
Name | Default | Type | Unit |
---|---|---|---|
Fixed cost value | 0.0 | float |
Hour (h) |
Fixed virtual cost exposes the following methods
Name | Description |
---|---|
.set_fixed_connectoid_cost(+) |
Override the default fixed cost |
This class has no properties (yet)
from planit import *
# choose to run PLANit with a traditional static traffic assignment method
planit_instance = PLANit()
planit_instance.set(TrafficAssignment.TRADITIONAL_STATIC)
# set virtual cost to FIXED
planit_instance.assignment.set(VirtualCost.FIXED)
# override the default fixed cost
1_min = 60.0/3600.0 # 60 seconds/3600 seconds in an hour
planit_instance.assignment.virtual_cost.set_fixed_connectoid_cost(1_min)
Traffic assignment on assignments that support this virtual cost implementation
VirtualCost.<enum> for all available virtual cost options
VirtualCost landing page for all available virtual cost implementations
Class VirtualCostWrapper
in Wrappers.py
A Fixed virtual cost method