.set_fixed_connectoid_cost(+)

A Fixed virtual cost method
Description

Override the default fixed cost on the fixed 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_fixed_connectoid_cost(fixed_cost_value)

with

Parameter Type Unit Compulsory Description
fixed_cost_value float Hour (h) YES New fixed cost 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 FIXED
planit_instance.project.assignment.set(VirtualCost.FIXED)

# override the default fixed cost
1_min = 60.0/3600.0 # 60 seconds/3600 seconds in an hour
planit_instance.project.assignment.virtual_cost.set_fixed_connectoid_cost(1_min)

See also

N/A

Source code

Class VirtualCostWrapper in projectwrappers.py