9.5.2. aequilibrae.AssignmentResults

class aequilibrae.AssignmentResults

Bases: object

Assignment result holder for a single TrafficClass with multiple user classes

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__()

Initialize self.

get_load_results()

Translates the assignment results from the graph format into the network format

prepare(graph, matrix)

Prepares the object with dimensions corresponding to the assignment matrix and graph objects

reset()

Resets object to prepared and pre-computation state

save_to_disk([file_name, output])

Function to write to disk all outputs computed during assignment

set_cores(cores)

Sets number of cores (threads) to be used in computation

total_flows()

Totals all link flows for this class into a single link load

__init__()

Initialize self. See help(type(self)) for accurate signature.

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

Prepares the object with dimensions corresponding to the assignment matrix and graph objects

Args:

graph (Graph): Needs to have been set with number of centroids and list of skims (if any)

matrix (AequilibraeMatrix): Matrix properly set for computation with

matrix.computational_view(list)

reset() → None

Resets object to prepared and pre-computation state

total_flows() → None

Totals all link flows for this class into a single link load

Results are placed into total_link_loads class member

set_cores(cores: int) → None

Sets number of cores (threads) to be used in computation

Value of zero sets number of threads to all available in the system, while negative values indicate the number of threads to be left out of the computational effort.

Resulting number of cores will be adjusted to a minimum of zero or the maximum available in the system if the inputs result in values outside those limits

Args:

cores (int): Number of cores to be used in computation

get_load_results() → aequilibrae.matrix.aequilibrae_data.AequilibraeData

Translates the assignment results from the graph format into the network format

Returns:

dataset (AequilibraeData): AequilibraE data with the traffic class assignment results

save_to_disk(file_name=None, output='loads') → None

Function to write to disk all outputs computed during assignment

Args:

file_name (str): Name of the file, with extension. Valid extensions are: [‘aed’, ‘csv’, ‘sqlite’] output (str, optional): Type of output (‘loads’, ‘path_file’). Defaults to ‘loads’

_AssignmentResults__redim()
_AssignmentResults__setSavePathFile(save=False, path_result=None)