.set(+)

PlanitProject method

Description

This .set allows you to set the type of traffic assignment to use on your planit instance.

Signature

.set(traffic_assignment_type)

with

Parameter Type Unit Compulsory Description
traffic_assignment_type TrafficAssignment.<enum> None YES Type of traffic assignment to apply

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)

See also

TrafficAssignment.<enum> for supported assignment types

Source code

Class PlanitProject in project.py