6.5.6. aequilibrae.TrafficClass

class aequilibrae.TrafficClass(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__(graph: aequilibrae.paths.graph.Graph, matrix: aequilibrae.matrix.aequilibrae_matrix.AequilibraeMatrix)None

Instantiates the class

Args:

graph (Graph): Class/mode-specific graph

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

Methods

__init__(graph, matrix)

Instantiates the class

set_pce(pce)

Sets Passenger Car equivalent

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

Instantiates the class

Args:

graph (Graph): Class/mode-specific graph

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