Analyses du transport en commun avec EMME/2
Transcription
Analyses du transport en commun avec EMME/2
Analyses du transport en commun avec EMME/2 ● Introduction ● Terminologie ● Résultats ● Préparation ● Applications – matrices de tarif – analyses “sélection de ligne”, etc. – analyses “station-à-station” ● Conclusion présenté par Isabelle Constantin, Les Conseillers INRO Inc. Réunion francophone d'utilisateurs d'EMME/2 – 15-16 novembre 1999, Lille, France File: anal_TC Introduction ● Affectation T.C. standard – calcule des stratégies optimales – affecte la demande T.C. selon ces stratégies (➯ volumes) – calcule différentes matrices de “temps” ● Mais comment… – calculer d’autres attributs pour les stratégies optimales? – analyser la demande affectée à certaines parties des stratégies optimales? ➯ Affectation T.C. à options additionnelles un outil puissant pour l’analyse (mais pas pour la modélisation) Analyses du transport en commun avec EMME/2 INRO – 99/11/25 3 Sous-chemins et sous-stratégies ● Une stratégie peut inclure plusieurs lignes attrayantes à chaque point de montée (la demande est affectée selon leurs fréquences) A ● C D E Un sous-chemin est une suite de segments et/ou de liens auxiliaires T.C. A ● B B C D E Une sous-stratégie est une partie de stratégie obtenue en considérant un sous-ensemble de lignes attrayantes à chaque point de montée A B Analyses du transport en commun avec EMME/2 C D INRO – 99/11/25 E 4 Attribut additionnel de stratégie ● Une stratégie comprend diverses composantes: – montée au noeud-I d’un segment – déplacement sur un segment – descente au noeud-I d’un segment – utilisation d’un lien auxiliaire T.C. ● On peut associer des attributs à chacune de ces composantes – données de l’utilisateur, extra-attributs, longueur de lien – héritage: segment ligne lien noeud-I ● L’attribut de stratégie est obtenu en combinant les attributs des composantes de la stratégie optimale Analyses du transport en commun avec EMME/2 INRO – 99/11/25 5 Opérateurs de combinaison d’attributs ● Opérateur de chemin: combine des attributs sur des sous-chemins v1 ● v2 v3 v4 v1+v2+v3+v4 v1 .max. v2 .max. v3 .max. v4 ➯ .min., | (OU bit-à-bit), ... Opérateur de sous-stratégie: combine des attributs aux points de montée V1 moyenne(V1, V2, V3) V2 V1 .max. V2 .max. V3 V3 ➯ .min., | (OU bit-à-bit), ... Analyses du transport en commun avec EMME/2 INRO – 99/11/25 6 Exemple: Calcul de la distance moyenne Affectation T.C. à options additionnelles où Attribut en-véhicule: length Attribut auxiliaire T.C.: length Opérateur de chemin: + Opérateur de sous-stratégie: average (moyenne pondérée selon les fréquences) Matrice sauvegardée: attribut de stratégie = distance moyenne A B C D E Toutes les lignes ont le même intervalle; tous les liens ont une longueur de 1 km. Attribut de stratégie: à D: 1 à C: 1/2*(3+1) + 1/2*(2+1) = 3.5 à B: 1/3*(3+3.5) + 1/3*(2+3.5) + 1/3*(5+1) = 6 à A: 1+6 = 7 ➯ attribut de stratégie pour (A,E): 7 Analyses du transport en commun avec EMME/2 INRO – 99/11/25 7 Retenir une partie de stratégie Pour chaque paire O-D, on peut retenir: ● la stratégie complète ● la sous-stratégie à attribut minimum ➯ .min. est utilisé comme opérateur de sous-stratégie ➯ à chaque point de montée: on ne retient que la ligne attrayante donnant la valeur minimum pour l’attribut calculé ● la sous-stratégie à attribut maximum ➯ .max. est utilisé comme opérateur de sous-stratégie ➯ à chaque point de montée, on ne retient que la ligne attrayante donnant la valeur maximum pour l’attribut calculé Analyses du transport en commun avec EMME/2 INRO – 99/11/25 8 Exemple: Sous-stratégie à distance maximum Affectation T.C. à options additionnelles où Attribut en-véhicule: length Attribut auxiliaire T.C.: length Opérateur de chemin: + Partie de stratégie retenue: sous-stratégie à attribut maximum (➯ partie de stratégie donnant la distance maximum) A B C D E D E Attribut de stratégie: à D: 1 à C: max(3+1, 2+1) = 4 à B: max(3+4, 2+4, 5+1) = 7 à A: 1+7 = 8 Partie de stratégie retenue: A B Analyses du transport en commun avec EMME/2 C INRO – 99/11/25 9 Retenir/rejeter des stratégies ● ● Selon la valeur de l’attribut de stratégie, on peut: – considérer la (partie de) stratégie retenue jusqu’ici – rejeter toute la stratégie Si inf ≤ attribut de stratégie ≤ sup ➯ la stratégie est active ➯ la partie appropriée de la demande est affectée sur la partie retenue sinon ➯ la stratégie n’est pas active ➯ la demande qui l’aurait utilisée n’est pas affectée Exemples ● Distance moyenne pour (A,E) = 7 km: – “threshold” 0, 9 ➯ toute la stratégie est retenue – “threshold” 10, 99 ➯ toute la stratégie est rejetée ● Distance maximum pour (A,E) = 8 km: – “threshold” 0, 9 ➯ la sous-stratégie est retenue – “threshold” 10, 99 ➯ la sous-stratégie est rejetée Analyses du transport en commun avec EMME/2 INRO – 99/11/25 10 Résultats d’affectation ● Volumes T.C. et auxiliaires T.C. = demande affectée aux parties retenues des stratégies actives Ces volumes (peut-être partiels) remplacent les volumes standard ● Matrice d’attribut de stratégie (opt.) = attribut de stratégie calculé pour chaque paire O-D ● Matrice de demande active (opt.) = partie de la demande T.C. qui a été affectée ● Matrices d’impédance et de composantes de temps (opt.) = mêmes que pour l’affectation standard (basées sur les stratégies complètes) Analyses du transport en commun avec EMME/2 INRO – 99/11/25 11 Exemple: Volumes/demande subissant la distance max. Affectation T.C. à options additionnelles où Attribut en-véhicule: length Attribut auxiliaire T.C.: length Opérateur de chemin: + Partie de stratégie retenue: sous-stratégie à attribut maximum (➯ partie de stratégie donnant la distance maximum) Matrices sauvegardées: attribut de stratégie = distance maximum demande active = demande subissant la distance max. Attribut de stratégie pour (A,E):8 Demande active pour (A, E): (1/3 * 1/2) * demande (A,E) = 16.67 Volumes: 16.67 A B C D E Note: la demande pour (A,E) est de 100 déplacements. Analyses du transport en commun avec EMME/2 INRO – 99/11/25 12 Préparation d’une affectation T.C. à options additionnelles 5.11 PREPARE SCENARIO 1001 FOR ASSIGNMENT Select: Type of assignment 1= fixed demand auto assignment 2= fixed demand transit assignment 3= variable demand auto assignment 4= end 2 (***** Préparation d’affectation standard *****) Perform additional options assignment?y Enter: Enter: Enter: Enter: Additional Additional Additional Additional boarding attribute= in-vehicle attribute= alighting attribute= auxiliary transit attribute= Select: Retained part of strategies 1= Complete strategies 2= Minimum attribute sub-strategies 3= Maximum attribute sub-strategies Enter: Path operator(+)= Enter: Sub-strategy combination operator(average)= Enter: Lower, upper threshold for active strategies= Matrix to hold additional strategy attributes (optional) Enter: Matrix( mf )= Matrix to hold active transit demand (optional) Enter: Matrix( mf )= Analyses du transport en commun avec EMME/2 INRO – 99/11/25 13 Applications possibles Obtenir la valeur d’un attribut pour chaque paire O-D ● Matrice de distance (moyenne, minimum ou maximum) ● Matrice de tarif (pour diverses structures tarifaires) ● Matrice d’indice (paire de stations de montée/descente, …) Information relative à la stratégie: ➯ retenir la stratégie complète et sauvegarder la matrice d’attribut de stratégie Obtenir une demande spécifique et les volumes correspondants ● Analyse “sélection de ligne” (➯ demande et volumes pour la ligne choisie) ● Autres analyses “sélection d’élément” (➯ noeud, lien, mode, segment, …) Information relative aux voyageurs: ➯ retenir la sous-stratégie MIN/MAX et sauvegarder la matrice de demande active Analyses du transport en commun avec EMME/2 INRO – 99/11/25 14 Outils pour le calcul de matrices de tarif Tarifs dépendant surtout de l’origine et de la destination Calculatrice de matrices (module 3.21) Tarifs dépendant de la stratégie utilisée Affectation T.C. à options additionnelles où Attributs additionnels: l’attribut et son contenu dépendent du tarif analysé Partie de stratégie retenue: stratégie complète Opérateur de chemin: + Opérateur de sous-stratégie: average (moyenne pondérée selon les fréquences) “Threshold”: aucun Matrice sauvegardée: attribut de stratégie = tarif moyen payé Analyses du transport en commun avec EMME/2 INRO – 99/11/25 15 Matrice de tarif (tarification à la montée) ● Structure tarifaire: plein tarif payé à chaque montée ● Impact sur le choix de route: – un tarif uniforme décourage les correspondances – un tarif non-uniforme peut aussi affecter le choix entre lignes compétitrices ● Modélisation dans l’affectation T.C.: temps de montée incluant le tarif (converti en minutes) ➯ peut être propre aux noeuds et/ou aux lignes ● Tarif O-D: peut être obtenu par une affectation T.C. à options additionnelles où Attribut de montée: composante tarif du temps de montée Matrice sauvegardée: attribut de stratégie = tarif moyen payé ● Certains résultats peuvent demander un ajustement: ➯ temps_de_montée - tarif_moyen ➯ temps_T.C. - poidsmontée * tarif_moyen Analyses du transport en commun avec EMME/2 INRO – 99/11/25 17 Exemple de tarif de montée non uniforme Tarif: $2 $3 pour les lignes ordinaires pour les lignes express Valeur du temps: $1 = 5 minutes 2.42/2.41 @tarif= @tmon= 10 pour les lignes ordinaires 15 pour les lignes express 2.5 pour chaque noeud 5.11/5.31 Temps de montée: propre aux noeuds et aux lignes (@tmon + @tarif) Poids du temps de montée:2 Attribut de montée: @tarif Matrice sauvegardée: attribut de stratégie ("tarif") 3.21 "tmon"= "ttc"= "tmon"-"tarif" "ttc"-2*"tarif" Analyses du transport en commun avec EMME/2 INRO – 99/11/25 18 Matrice de tarif (tarification à la distance) ● Structure tarifaire: tarif directement proportionnel à la distance parcourue ● Impact sur le choix de route: – peut souvent être ignoré (tarif dépend surtout de l’origine et de la destination) – peut favoriser des lignes plus directes même si elles sont moins rapides ● Modélisation dans l’affectation T.C. (si nécessaire): fonctions de temps de parcours T.C. incluant le tarif ➯ peut être global ou propre aux segments/lignes/liens ● Tarif O-D: peut être obtenu par une affectation T.C. à options additionnelles où Attribut en-véhicule: composante tarif du temps de segment Matrice sauvegardée: attribut de stratégie = tarif moyen payé ● Certains résultats peuvent demander un ajustement: ➯ temps_en_véhicule - tarif_moyen ➯ temps_T.C. - tarif_moyen ➯ temps_de_segment - tarif_de_segment Analyses du transport en commun avec EMME/2 INRO – 99/11/25 19 Exemple de tarif basé sur la distance Tarif: $0.12/km $0.18/km pour les lignes ordinaires pour les lignes express Valeur du temps: $1 = 5 minutes 2.41 us1= .12*len pour les segments des lignes ordinaires .18*len pour les segments des lignes express 3.12 ms99 = 5 4.12 Si nécessaire: ft2 = temps +us1*ms(99) 5.11/5.31 Attribut en-véhicule: Matrice sauvegardée: 3.21 "tinv" = "ttc" = us1 attribut de stratégie ("tarif") "tinv"-"tarif"*ms99 "ttc" -"tarif"*ms99 Analyses du transport en commun avec EMME/2 INRO – 99/11/25 20 Analyse “sélection de ligne” ● Question: Qui utilise la ligne X? ● Résultats désirés: demande et volumes pour les déplacements utilisant la ligne X ● Indicateur requis: @ligne = 1 pour la ligne X, et 0 pour toutes les autres lignes ● Affectation T.C. à options additionnelles où Attribut de montée, en-véhi- @ligne cule ou de descente: Partie de stratégie retenue: sous-stratégie à attribut maximum (➯ partie de stratégie utilisant la ligne X ou toute la stratégie si la ligne X n’est pas utilisée) Opérateur de chemin: .max. (➯ garder trace de l’utilisation de la ligne X sur un sous-chemin) “Threshold”: 1,1 (➯ ne retenir que les stratégies utilisant la ligne X) Matrice sauvegardée: demande active = matrice O-D des déplacements utilisant la ligne X Volumes résultants: volumes pour les déplacements utilisant la ligne X Analyses du transport en commun avec EMME/2 INRO – 99/11/25 21 Exemple: Analyse “sélection de ligne” Ligne choisie: express C-D A B C 1 1 D E Attribut de stratégie: à D: 0 à C: max(0, 1) = 1 à B: max(1, 1, 0) = 1 à A: 1 Attribut de stratégie pour (A,E):1 Demande active pour (A, E): ((1/3+1/3) * 1/2) * demande (A,E) = 33.33 Volumes: 16.67 A B C D 33.33 Note: la demande pour (A,E) est de 100 déplacements. Analyses du transport en commun avec EMME/2 INRO – 99/11/25 22 Volumes pour les utilisateurs de la ligne 15ae TRANSIT AND AUXILIARY TRANSIT VOLUMES LINKS: all COL-IND: @lcoli SCALE: 33.568 100 200 300 400 500 WINDOW: -1.787/ -.4418 3.9863/3.88804 EMME/2 PROJECT: EMME/2 STANDARD DEMONSTRATION AND TEST DATA BANK SCENARIO 88888: Select line analysis for line 15ae Analyses du transport en commun avec EMME/2 INRO – 99/11/25 99-05-18 16:41 MODULE: 6.22 INRODEMO....IC 23 Analyses “sélection d’élément” ● Question: Qui utilise l’élément X? ➯ la ligne 24a? ➯ le noeud 1045? ➯ le lien 231-216? … ● Résultats désirés: demande et volumes utilisant l’élément X ● Indicateur requis: attribut = 1 pour l’élément X, et 0 pour tous les autres éléments ● Affectation à options additionnelles: semblable à l’analyse “sélection de ligne” Analyses du transport en commun avec EMME/2 INRO – 99/11/25 24 Vérification suite à une analyse “sélection d’élément” Comparer les volumes avec ceux d’une affectation standard ● Les volumes sur l’élément X devraient être les mêmes pour les 2 affectations ● Les volumes ne devraient pas être plus élevés dans la “sélection d’élément” Autres différences ● Indiquent généralement des erreurs de préparation pour la “sélection d’élément”: – indicateur erroné – paramètres différents de ceux de l’affectation standard – … ● Indiquent que, pour une stratégie donnée, il y a plus d’une façon d’utiliser X ➯ l’affectation “sélection d’élément” ne peut capter toutes les possibilités ➯ approche alternative: Qui n’utilise pas l’élément X? Analyses du transport en commun avec EMME/2 INRO – 99/11/25 25 Analyse “sélection de lignes” Question: Qui utilise la ligne express B-C et/ou la ligne express C-D? Volumes: 16 16 50 A 50 B 33 C 33 D 16.67 33.33 50 = déplacements utilisant au moins la ligne express B-C: 16 33 A 33 B 33 C 16 D + déplacements utilisant la ligne express C-D mais pas la ligne express B-C: 16 16 A 16 B C 16 D Demande active pour (A, E): (1/3 + 1/3*1/2) * demande (A,E) = 50 ➯ Combinaison de plusieurs sous-stratégies (ici, 2)! Analyses du transport en commun avec EMME/2 INRO – 99/11/25 27 Analyse “sélection de lignes” (autre approche) Question: Qui utilise la ligne express B-C et/ou la ligne express C-D? Tous les voyageurs sauf ceux n’utilisant ni express B-C ni express C-D. Volumes: 16 16 50 A 50 33 B C 33 D 16.67 33.33 50 = tous les déplacements (stratégie complète): 33 33 100 A 100 33 B C 33 D 33 − déplacements n’utilisant ni express B-C ni express C-D (sous-strat. à attr. minimum): 16 16 50 A 50 B C D 33 Macros disponibles sur www.spiess.ch selines ➯ affectation T.C. avec sélection de lignes sel2lin ➯ affectation T.C. avec sélection de 2 ensembles de lignes Analyses du transport en commun avec EMME/2 INRO – 99/11/25 28 Macro SELINES Enter: Next module=~<selines mf2 ___e mf25 ========================================================================= SELINES 1.1 - "Select Lines" transit assignment for arbitrary line set (Heinz Spiess, EMME/2 Support Center, CH-2558 Aegerten - 99-06-25) This macro performs a two-step transit assignment to compute the volumes and demand matrix of the trips using at least one line in from the specified set of lines. Calling sequence: ~<selines <demand> <linset> [<actdem>] where: <demand> Transit demand matrix <linset> Transit line selection clause for first set of lines <actdem> Resulting active demand matrix containing the trips using at least one of the selected lines (optional); must be specified with matrix number, e.g. mf67. Notes: 1) The transit assignment parameters are contained in text register t1 in the form of a compound macro statement. They can be set to different values in the calling macro - otherwise the values coded in this macro are used. 2) The full matrix mf"tmp1" is used to store intermediate results. If it exists already, its old contents will be lost. 3) The transit line extra attribute @selxx is for temporary storage. If a extra attribute with the same name exists already, it will will be erased. ========================================================================== Analyses du transport en commun avec EMME/2 INRO – 99/11/25 29 Demand matrix: Selected line subset: Active demand matrix: Assignment parameters: mf2 gpqtr0 transit demand dpr0000 ___e mf25 *|1|1|2.5|1|0.5|2|2|2 Step 0: Checking if specified line set is valid Set "___e" contains 21 transit lines. Create transit line attribute @selxx Delete temporary matrix mf"tmp1" - if any Checking if result matrix mf25 is valid Create temporary matrix mf"tmp1" Step 1: Compute full transit assignment Total demand: 18210.541 trips Unassignable demand: 0 trips Assignable demand: 18210.541 trips Step 2: Subtract trips not using any line in "___e" Active demand: 6004.15087 trips in outgoing connector links 6004.14697 trips in active demand matrix mf25 Boardings: 6375.39062 boardings to lines "___e" ========================================================================= Macro SELINES terminated normally. The scenario now contains transit volumes of those trips who use at least one of the lines "___e". The corresponding partial demand matrix is stored in mf25. ========================================================================= Enter: Next module= Analyses du transport en commun avec EMME/2 INRO – 99/11/25 30 Macro SEL2LIN Enter: Next module=~<sel2lin mf2 veh=2 ___e mf24 ========================================================================= SEL2LIN 1.1 - Compute transit trips using two subset of transit lines (Heinz Spiess, EMME/2 Support Center, CH-2558 Aegerten - 99-06-25) This macro performs a multi-step transit assignment to computes the volumes and demand matrix of those trips who use at least one line in each of two specified transit line subsets. Calling sequence: ~<sel2lin <gpq> where: <gpq> <linset1> <linset2> <actdem> <linset1> <linset2> <actdem> Transit demand matrix Transit line selection clause for first set of lines Transit line selection clause for second set of lines Resulting active demand matrix, containing trips which use at least one line of *each* of the two line sets; must be specified with matrix number, e.g. mf67. Notes: 1) The assignment parameters are contained in text register t1 in the form of a compound macro statement. They can be set to different values in the calling macro - otherwise the values coded in this macro are used. 2) Two full matrices mf"tmp1" and mf"tmp2" are used to store intermediate results. If they exist already, their their old contents will be lost. 3) The transit line extra attribute @s2lxx is for temporary storage If a extra attribute with the same name exists already, it will will be erased. ========================================================================== Analyses du transport en commun avec EMME/2 INRO – 99/11/25 31 Demand matrix: First line subset: Second line subset: Active demand matrix: Assignment parameters: mf2 gpqtr0 transit demand dpr0000 veh=2 ___e mf24 *|1|1|2.5|1|0.5|2|2|2 Step 0: Checking if specified line sets are valid Set "veh=2" contains 24 transit lines. Set "___e" contains 21 transit lines. Create transit line attribute @s2lxx Create temporary matrices mf"tmpX" Delete temporary matrix mf"tmp1" and/or mf"tmp2" - if any Checking if result matrix mf24 is valid Create temporary matrix mf"tmp1" Step 1: Compute full transit assignment Total demand: 18210.54 trips Unassignable demand: .00 trips Assignable demand: 18210.54 trips Step 2: Subtract trips not using any lines in set "veh=2" Demand for first line set: 574.44 trips (lines "veh=2") Step 3: Subtract trips not using any lines in set "___e" Demand for second line set: 6004.15 trips (lines "___e") Step 4: Add trips not using any lines in either "veh=2" or "___e" Demand for 1st OR 2nd set: 6324.55 trips Demand for 1st AND 2nd set: 254.04 trips Boardings to first line set: 255.16 boardings to "veh=2" Boardings to second line set: 264.98 boardings to "___e" Active assigned demand: 254.04 trips on connector links ========================================================================= Macro SEL2LIN terminated normally. The scenario now contains transit volumes of those trips who use both line sets "veh=2" and "___e". The corresponding partial demand matrix is stored in mf24 ========================================================================= Enter: Next module= Analyses du transport en commun avec EMME/2 INRO – 99/11/25 32 Analyses “station-à-station” 2 questions: 1. Où les voyageurs montent-ils et descendent-ils? ➯ pour chaque paire O-D: paire de stations utilisées 2. Quelle est la demande pour chaque paire de stations? ➯ pour chaque paire de stations: nombre de voyageurs qui l’utilisent Macros disponibles sur www.inro.ca st2stind➯ matrice d’indice station-à-station pour une ligne T.C. ind2mat➯ matrice station-à-station basée sur une matrice de paire de stations de montée/descente sta2sta➯ matrice station-à-station pour une ligne T.C. Analyses du transport en commun avec EMME/2 INRO – 99/11/25 33 Matrice d’indice station-à-station ● Question: Où les voyageurs montent-ils à bord de la ligne X et où descendent-ils? ● Résultat désiré: indice donnant le numéro de la station de montée et de descente; par exemple, 31039 signifie montée à la station 31, descente à la station 39 ● Attributs de segments requis: – @stmon = numéro de station * 1000 – @stdes = numéro de station ● Affectation T.C. à options additionnelles où Attribut de montée: @stmon Attribut de descente: @stdes Partie de stratégie retenue: sous-stratégie à attribut maximum (➯ partie de stratégie avec valeur d’indice max.) Opérateur de chemin: + (➯ calculer l’indice de paire de stations) “Threshold”: 1,999999 (➯ ne retenir que les stratégies avec indice ≠ 0) Matrices sauvegardées: attribut de stratégie = indice de paire de stations demande active = déplacements utilisant la paire de stations retenue Volumes résultants: volumes utilisant la paire de stations retenue Analyses du transport en commun avec EMME/2 INRO – 99/11/25 34 Macro ST2STIND Enter: Next module=~<st2stind 15ae mf23 mf24 ********* st2stind - 1.2 (I. Constantin, INRO Consultants Inc.) ********* st2stind - a macro to obtain a stop-to-stop index matrix for a transit line. This macro computes, for each O-D pair, an index showing the boarding and the alighting station; the number of trips using this stop pair is also saved in a matrix. The macro automatically numbers the stops according to their location on the itinerary (from 1 to nsegt+1). If a strategy includes more than one way to use the line analyzed (and thus more than one boarding/alighting pair), the sub-strategy with the maximum resulting index is retained. In this case, the trips using other boarding/alighting pairs are not accounted for. The percentage of trips missed is displayed at the end of the macro. If too many trips are missed, the approach should be refined; for example, by using a several different numbering schemes (forward, backward, sorted by volume, etc.), each time computing a boarding/alighting pair for each O-D pair. Usage: ~<st2stind <line> <s2sind> <s2sdem> where: line transit line to be analyzed s2sind matrix to hold boarding/alighting stations index s2sdem matrix to hold corresponding demand Notes: - This macro must be started at the main menu level It needs Release 9.0 or later of the EMME/2 system The macro uses the following scalars: ms97-ms99 The macro copies the current scenario into scenario 99999, overwriting the latter if it already exists - The assignment preparation is done by using the parameters usually used for the Winnipeg network. This part should be customized for each application!!! ************************************************************************ Analyses du transport en commun avec EMME/2 INRO – 99/11/25 35 Macro st2stind line s2sind s2sdem was called with the following parameters: transit line to be analyzed 15ae matrix to hold boarding/alighting stations index mf23 matrix to hold corresponding demand mf24 ... copying current scenario (1000) into 99999 ... preparing transit assignment (CUSTOMIZE FOR YOUR APPLICATION!!!) ... performing additional options transit assignment Statistics for line 15ae: - number of stations: 39 - total number of boardings: - number of trips using pairs stored in index matrix: - percentage of trips missed: 1153.58 1153.00 -.05 % Macro st2stind terminated normally, after 7 CPU seconds. ========================================================================== Enter: Next module= Analyses du transport en commun avec EMME/2 INRO – 99/11/25 36 Matrice de demande station-à-station ● Question: Combien de voyageurs utilisent chaque paire de stations de la ligne X? ● Résultat désiré: nombre de déplacements affectés à chaque paire de stations de la ligne X ● Données requises, pour chaque paire O-D: – indice de la paire de stations de montée/descente – demande affectée à cette paire de stations ● Calcul requis: pour chaque paire de stations additionner la demande pour toutes les paires O-D utilisant cette paire ➯ peut être effectué de manière efficace en utilisant put() et get() (250 “places” disponibles ➯ peut exiger plusieurs étapes) ● On peut lire la matrice résultante dans une banque de données, afin de l’afficher et de la manipuler (en supposant que les numéros de stations correspondent à des centroïdes!) Analyses du transport en commun avec EMME/2 INRO – 99/11/25 37 Macro IND2MAT Enter: Next module=~<ind2mat mf23 mf24 mf19 ********* ind2mat - 1.2 (I. Constantin, INRO Consultants Inc.) ********* ind2mat - a macro to obtain a station-to-station matrix from a boarding/alighting pair index matrix and a corresponding demand matrix. This macro processes the boarding/alighting indices and the corresponding demand, in order to obtain the station-to-station matrix. This matrix is appended to a file named <line>.mac. If desired, this matrix can then be read into the data bank (using module 3.11), assuming there are existing centroids with the station numbers used. Usage: ~<ind2mat <index> <s2sdem> <s2smat> where: index matrix containing boarding/alighting stations index s2sdem matrix containing corresponding demand s2smat matrix identifier to write in output file (optional) Notes: - This macro must be started at the main menu level - It needs Release 9.0 or later of the EMME/2 system - The macro uses the following scalars: ms98-ms99 ************************************************************************ Analyses du transport en commun avec EMME/2 INRO – 99/11/25 38 Macro ind2mat was called with - boarding/alighting indices - corresponding demand - output matrix identifier the following parameters: mf23 (station-to-station index for 15ae) mf24 (demand for station pairs stored in mf23) mf19 (station-to-station matrix for mf23 and mf24) Station indices range from 1 to 39 Processing boarding/alighting stations indices (7 steps required) ... step 1 ... step 2 ... step 3 ... step 4 ... step 5 ... step 6 ... step 7 Station-to-station matrix (mf19) appended to file ind2mat.out Macro ind2mat terminated normally, after 31 CPU seconds. ========================================================================== Enter: Next module= Analyses du transport en commun avec EMME/2 INRO – 99/11/25 39 Matrice de demande station-à-station pour la ligne 15ae c c c c t d a Macro ind2mat(v1.2) Date: 990520 User: IC - boarding/alighting indices mf23 (station-to-station index for 15ae) - corresponding demand mf24 (demand for station pairs stored in mf23) matrices matrix=mf19 matrix=mf19 s2smat 0 ind2mat for mf23 (s2sind), mf24 (s2sdem) 1 10 .08 1 25 12.37 1 26 .71 1 29 2.64 1 30 8.80 1 31 2.00 1 33 .17 1 35 1.63 1 39 1.75 2 10 .16 2 25 24.57 2 26 1.33 2 29 2.38 2 30 4.59 2 31 1.17 2 33 .25 2 35 1.95 2 39 4.97 ... 29 29 30 31 32 33 35 39 39 39 39 39 .21 6.00 1.44 4.38 1.32 3.22 Analyses du transport en commun avec EMME/2 INRO – 99/11/25 40 Trop de déplacements manqués? ● Essayer un système de numérotation différent: – numéros plus grands pour les stations plus importantes (puisque l’indice maximum est retenu) – adapter ST2STIND en conséquence ● Utiliser la macro STA2STA – prend plus de temps (une affectation pour chaque station) – ne manque que certains déplacements très complexes où les voyageurs montent à bord de la ligne X plus d’une fois Analyses du transport en commun avec EMME/2 INRO – 99/11/25 41 Macro STA2STA Enter: Next module=~<sta2sta 15ae *********************************************************************** *** STA2STA: EMME/2 MACRO FOR STATION-TO-STATION MATRIX (1.4) *** *** Copyright (C) Isabelle Constantin, INRO Consultants Inc., 1994 *** *********************************************************************** *** *** This EMME/2 macro can be used for obtaining a station-to-station *** matrix for a transit line given in argument. The method implemented *** here consists of performing several additional options transit *** assignment, one for each segment of the line. For each assignment, *** only the trips alighting at the J-node of a given segment are *** assigned. The corresponding column of the station-to-station matrix *** can then be obtained from a report produced by module 6.21. *** *** Once all the assignments have been performed, the macro calls an AWK *** script in order to extract the boarding/alighting information from *** the reports produced by module 6.21. The resulting station-to-station *** matrix is directed to a file named s2s<line>.mat. An optional second *** parameter can be passed to the macro to specify which type of AWK to *** use (awk,nawk,etc) if GAWK is not available. *** *** Upon termination of the macro, the reports produced by module 6.21 *** remain in file sta2sta.rep. They may then be further processed *** by the user (for example, if GAWK is not available). *** *** The script "sta2sta.awk" also lists a summary of the total number *** of trips analysed by the macro. This number can be used for *** validation in module 6.21. *** *** Usage: *** ~<sta2sta <line> [AWK (optional)] *** where *** <line> name of the transit line for which the matrix is desired *** <AWK> optional parameter type of AWK (gawk,awk,nawk,etc) Analyses du transport en commun avec EMME/2 INRO – 99/11/25 42 ================= STA2STA: STATION-TO-STATION MATRIX ================== Date: 991108 Scenario: 1000 Transit line: 15ae ----------------------------------------------------------------------Initializations ... copying the current scenario ... creating the required extra attributes ... computing the number of segments in the line considered Processing the 38 segments of line 15ae Segment 1 of line 15ae: ... preparing the scenario ... (standard preparation for Winnipeg, customize for your application!!!) ... executing the assignment (assignment report is discarded) ... producing the boarding/alighting report Segment 2 of line 15ae: ... preparing the scenario ... (standard preparation for Winnipeg, customize for your application!!!) ... executing the assignment (assignment report is discarded) ... producing the boarding/alighting report ... Segment 38 of ... preparing ... (standard ... executing ... producing line 15ae: the scenario preparation for Winnipeg, customize for your application!!!) the assignment (assignment report is discarded) the boarding/alighting report Restoring the original scenario and file names ======================================================================= Creating final report (using AWK script) Using "gawk" Enter: Next module= Analyses du transport en commun avec EMME/2 INRO – 99/11/25 43 Matrice de demande station-à-station pour la ligne 15ae BOARDING NODE 179 183 182 179 178 176 183 182 179 178 176 174 ALIGHTING NUMBER NODE OF TRIPS 176 0.7 174 0.1 174 0.2 174 5.7 174 1.8 174 0.1 1046 12.4 1046 24.6 1046 168.2 1046 95.3 1046 39.4 1046 21.0 ... 183 901 182 901 179 901 178 901 176 901 174 901 1042 901 1025 901 1021 901 1005 901 981 901 TOTAL TRIPS......... 1.7 5.0 83.6 40.8 7.6 7.6 6.2 1.4 4.4 1.3 3.2 1153.5 Compare with boardings/alightings for line 15ae as validation Analyses du transport en commun avec EMME/2 INRO – 99/11/25 44 Demande pour d’autres paires “origine-destination” Exemples ● Matrice station-à-station pour une ligne donnée, ou pour plusieurs lignes ● Matrice cordon ● Correspondances ligne-à-ligne Méthodologie 1. Obtenir une matrice d’indice “origine-destination” appropriée et la demande correspondante ➯ variante de la macro ST2STIND 2. Obtenir la matrice de demande pour chaque paire “origine-destination” ➯ macro IND2MAT Analyses du transport en commun avec EMME/2 INRO – 99/11/25 45 Conclusion ● Ne pas oublier! L’affectation T.C. à options additionnelles = est un puissant outil pour l’analyse ≠ mais pas pour la modélisation ● Déterminer d’abord: – quelle est la question posée – quels sont les résultats désirés ● Trucs pour obtenir des résultats cohérents: – utiliser une copie du scénario contenant l’affectation standard – préparer l’affectation à options additionnelles avec les mêmes paramètres ● Pour toute analyse “sélection d’élément” s’assurer qu’on capte tous les déplacements utilisant l’élément ● Plusieurs macros disponibles sur www.inro.ca et www.spiess.ch! Analyses du transport en commun avec EMME/2 INRO – 99/11/25 46