6.5.6. aequilibrae.TrafficClass

class aequilibrae.TrafficClass(name: str, graph: aequilibrae.paths.graph.Graph, matrix: aequilibrae.matrix.aequilibrae_matrix.AequilibraeMatrix)

Bases: object

Traffic class for equilibrium traffic assignment

from aequilibrae.paths import TrafficClass

tc = TrafficClass(graph, demand_matrix)
tc.set_pce(1.3)
__init__(name: str, graph: aequilibrae.paths.graph.Graph, matrix: aequilibrae.matrix.aequilibrae_matrix.AequilibraeMatrix) None

Instantiates the class

Args:

name (str): UNIQUE class name.

graph (Graph): Class/mode-specific graph

matrix (AequilibraeMatrix): Class/mode-specific matrix. Supports multiple user classes

Methods

__init__(name, graph, matrix)

Instantiates the class

set_fixed_cost(field_name[, multiplier])

Sets value of time

set_pce(pce)

Sets Passenger Car equivalent

set_vot(value_of_time)

Sets value of time

__init__(name: str, graph: aequilibrae.paths.graph.Graph, matrix: aequilibrae.matrix.aequilibrae_matrix.AequilibraeMatrix) None

Instantiates the class

Args:

name (str): UNIQUE class name.

graph (Graph): Class/mode-specific graph

matrix (AequilibraeMatrix): Class/mode-specific matrix. Supports multiple user classes