.set_fixed_speed(+)
A Fixed virtual cost method
Description
Override the default fixed speed on the speed virtual cost implementation. Note that the term connectoid in the method name refers to nodes that are regarded as elligble access/egress points to the zone.
Signature
.set_connectoid_speed(fixed_speed_value)
with
Parameter | Type | Unit | Compulsory | Description |
---|---|---|---|---|
fixed_speed_value |
float |
Kilometres per hour (km/h) | YES | New fixed speed value to use |
Return type
None
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 virtual cost to SPEED
planit_instance.project.assignment.set(VirtualCost.SPEED)
# override the default fixed speed (km/h)
planit_instance.project.assignment.virtual_cost.set_fixed_connectoid_cost(50.0)
See also
N/A
Source code
Class VirtualCostWrapper
in projectwrappers.py