Composite traffic model: Difference between revisions

From Opasnet
Jump to navigation Jump to search
(new version, more streamlined but some bugs persist)
m (bugfix)
Line 39: Line 39:
if(i == 1) {
if(i == 1) {
trips.sample.1 <- op_baseGetData("opasnet_base", "Op_en2625", include = trips.locs$loc_id[trips.locs$ind == "Time" &  
trips.sample.1 <- op_baseGetData("opasnet_base", "Op_en2625", include = trips.locs$loc_id[trips.locs$ind == "Time" &  
trips.locs$loc == times[1]])
trips.locs$loc == as.character(times[1])])
trips.sample.1$Secondary <- 0
trips.sample.1$Secondary <- 0
} else {
} else {
Line 48: Line 48:
trips.sample.2 <- op_baseGetData("opasnet_base", "Op_en2625", include = trips.locs$loc_id[trips.locs$ind == "Time" &  
trips.sample.2 <- op_baseGetData("opasnet_base", "Op_en2625", include = trips.locs$loc_id[trips.locs$ind == "Time" &  
trips.locs$loc == times[i + 1]])
trips.locs$loc == as.character(times[i + 1])])
# Optimizer main code
# Optimizer main code

Revision as of 13:23, 29 July 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

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|}}