Composite traffic model: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(→‎R model: todo added)
mNo edit summary
Line 1: Line 1:
[[Category:Composite traffic]]
[[Category:Composite traffic]]
[[Category:Online model]]
[[Category:Online model]]
[[Category:Contains R code]]
{{method|moderator=Smxb|stub=Yes}}
{{method|moderator=Smxb|stub=Yes}}



Revision as of 09:28, 26 August 2013



This page is about a composite traffic model that is an updated version of File:Composite traffic.ANA. The new version is coded with R.

Definition

Variables

R model

  • Trip aggregator
    • Optimization rules:
  1. No second transfer -> prioritize "secondary" passengers
  2. Fill as many 8-person-vehicles as possible
  3. Fill as many 4-person-vehicles as possible
  4. Special rule: for trips with no possible transfer-point -> direct trip
  5. Transfer the rest (will always be 4-person-vehicles)
  6. Re-check vehicle configurations, when exact numbers of primary and secondary passengers as well as transferees are known

+ Show code

Recommended R functions used in code
data.frame OpasnetBaseUtils op_baseGetData slicing R objects merge tapply match ifelse is.na colnames rbind as.numeric as.character as.data.frame as.table
TODO: {{#todo:Ajattelin yllä olevaa käytäntöä käyttöönotettavaksi: koodissa käytetyistä funktioista kirjoitetaan linkit koodin alle, jotta käyttäjä löytää helpon selityksen siitä, miten kyseistä koodia Opasnet-malleissa suositellaan käytettäväksi. Teemu ehdotti tämän sijaan, että R-toolsiin rakennetaan suoraan sanalista, jotka koodista löytyessään näkyisivät linkkeinä ohjesivuille. Liekö työläs toteuttaa? --Jouni 10:55, 22 August 2011 (EEST)|Einari Happonen, Teemu Rintala, Juha Villman|Opasnet}}


----#: . Takes below 10 minutes to run. Neat! --Teemu R 14:08, 2 August 2011 (EEST) (type: truth; paradigms: science: comment)

----#: . Though much slower on the serverside R... --Teemu R 14:26, 2 August 2011 (EEST) (type: truth; paradigms: science: comment)

Plans for further development:

  • Make an input form for bus transport subsidies (user can decide)
  • Based on subsidies less or more bus routes will be running.

----#: . Got any ideas on how the active bus routes should be derived from the amount of subsidies? --Teemu R 10:12, 18 August 2011 (EEST) (type: truth; paradigms: science: comment)

  • If bus is not available, trips will be made by private cars.
  • Calculate the impacts on costs due to a) fine particles and health, b) CO2 and climate, c) fuel costs, d) driver salary costs based on kilometres driven. Parking, rush delay, and capital costs due to vehicle maintenance are ignored. (All these ignorances are biased towards cars looking good.)
  • Play with the model in the course. The model runs should be quick because there is no optimising.

⇤--#: . Though there will be more data (private + public trips vs. only private) downloaded. Which might also cause memory problems, since the data is fairly large (4M rows). --Teemu R 10:12, 18 August 2011 (EEST) (type: truth; paradigms: science: attack)

  • Practical implementation: Teemu does as much of the model as he can; Sami finalises the work.

----#: . By the way, what should be the name for a new page considering the model described in these comments? Since we're no longer talking about composite traffic... Something like "Helsinki metropolitan area traffic model"? --Teemu R 14:50, 18 August 2011 (EEST) (type: truth; paradigms: science: comment)

See also