Composite traffic model: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(→‎R model: delay from distance added)
mNo edit summary
Line 51: Line 51:
trips <- op_baseGetData("opasnet_base", "Op_en2625")
trips <- op_baseGetData("opasnet_base", "Op_en2625")


system.time(
for (i in 1:(length(times) - 1)) {
for (i in 1:(length(times) - 1)) {
if(i == 1) {
if(i == 1) {
Line 154: Line 152:
trips.out <- rbind(trips.out, data.frame(trips.sample.1[, c("From", "To", "Time")], d8, d4, d3, d2, d1, c8, c4, c3, c2, c1))
trips.out <- rbind(trips.out, data.frame(trips.sample.1[, c("From", "To", "Time")], d8, d4, d3, d2, d1, c8, c4, c3, c2, c1))
}
}
)


# Summary
# Summary

Revision as of 11:09, 2 August 2011



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

TODO: {{#todo:Ruvetaan keräämään tälle sivulle matskua mallin uudesta versiosta.|Smxb|}}


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