PyMacroAdjustmentPlugin.MacroAdjustmentExperiment

class MacroAdjustmentExperiment

Inheritance diagram of PyMacroAdjustmentPlugin.MacroAdjustmentExperiment

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

A Static OD Adjustment Experiment. It holds variables that affect the internal models. They can be changed to calibrate a model.

An Experiment is part of one, and only one, Scenario ( MacroScenario ).

__init__()
addCongestedSection(congestedSection)
Parameters:

congestedSectionGKSection

Collects all congested sections for all user classes

getGradientDescentIterations()
Return type:

int

getOuterIterations()
Return type:

int

getOutput()
Return type:

MacroAdjustmentOutput

getParams()
Return type:

MacroAdjustmentScenarioParams

getTargetR2()
Return type:

float

getTargetSlopeDev()
Return type:

float

isCongestedSection(section)
Parameters:

sectionGKSection

Return type:

bool

readOutput(iFileName)
Parameters:

iFileName – str

Return type:

bool

setDefaultParamsForAllUserClasses([alpha=1.0f[, tripLengthDistributionElasticity=0.5f]])
Parameters:
  • alpha – float

  • tripLengthDistributionElasticity – float

Set default macro adjustment parameters for each user class in the scenario’s demand

setGradientDescentIterations(value)
Parameters:

value – int

setOuterIterations(value)
Parameters:

value – int

setOutput(iOutput)
Parameters:

iOutputMacroAdjustmentOutput

setParams(params)
Parameters:

paramsMacroAdjustmentScenarioParams

setTargetR2(targetR2)
Parameters:

targetR2 – float

setTargetSlopeDev(targetSlopeDev)
Parameters:

targetSlopeDev – float

setTripMatrix(iMatrix)
Parameters:

iMatrixGKODMatrix

Sets the additional goal Trip Matrix for the static OD adjustment. Data loaded from params.

See also

tripMatrix()

setTripMatrixCentroidGrouping(iGroup)
Parameters:

iGroupGKGroup

Sets the Grouping Category of Centroids used to aggregate zones for Trip Matrix processing. Data loaded from params.

setTripMatrixReliability(iFactor)
Parameters:

iFactor – float

Sets the Trip Matrix Reliability factor for the static OD adjustment. Data loaded from params.

syncUserClassesDemand()
Return type:

bool

Syncronize demand user classes with the scenario user classes. It will return true if the syncronisation was successful and false if the run needs to be stopped in order to verify some parameters.

tripMatrix()
Return type:

GKODMatrix

Returns the additional goal Trip Matrix for the static OD adjustment. Data stored in params.

See also

setTripMatrix()

tripMatrixCentroidGrouping()
Return type:

GKGroup

Returns the Grouping Category of Centroids used to aggregate zones for Trip Matrix processing. Data stored in params.

tripMatrixReliability()
Return type:

float

Returns the Trip Matrix Reliability factor for the static OD adjustment. Data stored in params.