total_demand

passengersim.database.common_queries.total_demand(cnx: Database, scenario: str, burn_samples: int = 100) float[source]

Average total demand.

This query requires that the simulation was run while recording final demand details (i.e. with the demand or demand_final flags set on Config.db.write_items).

Parameters:
cnx : Database

scenario : str

burn_samples : int, default 100

The average total demand will be computed ignoring this many samples from the beginning of each trial.

Returns:

float