{
 "format": "stockflow-1",
 "id": "lib-more-lanes",
 "name": "More lanes, more traffic",
 "notes": "In month 12 the road is widened from 2 to 4 lanes. At first the drive is much faster. But a faster drive makes the car more attractive than the bus, so more people drive, until the road is full again and the drive takes about as long as the bus. The town now has twice the cars and the same traffic jam. Traffic planners call this induced demand. Try: instead of more lanes, make the bus faster (Bus_Time). What happens to the drive time? Time unit: months.",
 "sim": {
  "start": 0,
  "stop": 60,
  "dt": 0.25,
  "unit": "months"
 },
 "elements": [
  {
   "id": "t1",
   "type": "stock",
   "name": "Drivers",
   "eq": "5400",
   "x": 360,
   "y": 260,
   "units": "people",
   "doc": "People who drive to work.",
   "nonneg": true
  },
  {
   "id": "t2",
   "type": "stock",
   "name": "Bus_and_Bike",
   "eq": "14600",
   "x": 760,
   "y": 260,
   "units": "people",
   "doc": "People who take the bus, cycle or work from home.",
   "nonneg": true
  },
  {
   "id": "t3",
   "type": "flow",
   "name": "Switching_to_Car",
   "eq": "(Commuters*Wish_to_Drive - Drivers)/Time_to_Change",
   "from": "t2",
   "to": "t1",
   "units": "people/month",
   "doc": "People changing between car and bus. Negative means people leave the car.",
   "biflow": true
  },
  {
   "id": "t4",
   "type": "aux",
   "name": "Wish_to_Drive",
   "eq": "1/(1 + EXP((Drive_Time - Bus_Time)/Fussiness))",
   "x": 560,
   "y": 120,
   "units": "fraction",
   "doc": "Share of commuters who would rather drive: more when driving is quicker than the bus."
  },
  {
   "id": "t5",
   "type": "aux",
   "name": "Drive_Time",
   "eq": "Free_Road_Time*(1 + 0.15*(Drivers/Road_Capacity)^4)",
   "x": 360,
   "y": 420,
   "units": "minutes",
   "doc": "How long the drive takes. Grows quickly once the road is full (traffic jams)."
  },
  {
   "id": "t6",
   "type": "aux",
   "name": "Road_Capacity",
   "eq": "Lanes*Cars_per_Lane",
   "x": 160,
   "y": 420,
   "units": "cars",
   "doc": "Cars the road can handle in the rush hour."
  },
  {
   "id": "t7",
   "type": "aux",
   "name": "Lanes",
   "eq": "2 + STEP(Extra_Lanes, Opening_Month)",
   "x": 160,
   "y": 560,
   "units": "lanes",
   "doc": "Lanes on the main road."
  },
  {
   "id": "t8",
   "type": "aux",
   "name": "Extra_Lanes",
   "eq": "2",
   "x": 40,
   "y": 660,
   "units": "lanes",
   "doc": "Lanes added when the road is widened.",
   "slider": {
    "min": 0,
    "max": 4,
    "step": 1,
    "kind": "decision"
   }
  },
  {
   "id": "t9",
   "type": "aux",
   "name": "Opening_Month",
   "eq": "12",
   "x": 260,
   "y": 660,
   "units": "month",
   "doc": "When the wider road opens."
  },
  {
   "id": "t10",
   "type": "aux",
   "name": "Cars_per_Lane",
   "eq": "2000",
   "x": 40,
   "y": 300,
   "units": "cars per lane",
   "doc": "Cars one lane carries in the rush hour."
  },
  {
   "id": "t11",
   "type": "aux",
   "name": "Free_Road_Time",
   "eq": "20",
   "x": 260,
   "y": 560,
   "units": "minutes",
   "doc": "Drive time on an empty road."
  },
  {
   "id": "t12",
   "type": "aux",
   "name": "Bus_Time",
   "eq": "30",
   "x": 760,
   "y": 80,
   "units": "minutes",
   "doc": "How long the trip takes by bus or bike.",
   "slider": {
    "min": 15,
    "max": 60,
    "step": 1,
    "kind": "decision"
   }
  },
  {
   "id": "t13",
   "type": "aux",
   "name": "Fussiness",
   "eq": "3",
   "x": 900,
   "y": 160,
   "units": "minutes",
   "doc": "How strongly people react to a time difference. Small = people switch for one or two minutes.",
   "slider": {
    "min": 1,
    "max": 15,
    "step": 0.5,
    "kind": "assumption"
   }
  },
  {
   "id": "t14",
   "type": "aux",
   "name": "Time_to_Change",
   "eq": "6",
   "x": 900,
   "y": 400,
   "units": "months",
   "doc": "How long people take to change their habits.",
   "slider": {
    "min": 1,
    "max": 24,
    "step": 1,
    "kind": "assumption"
   }
  },
  {
   "id": "t15",
   "type": "aux",
   "name": "Commuters",
   "eq": "20000",
   "x": 600,
   "y": 440,
   "units": "people",
   "doc": "Everyone travelling to work."
  }
 ],
 "plots": [
  "t5",
  "t1",
  "t2"
 ],
 "summary": {
  "kpis": [
   {
    "name": "Drive_Time",
    "agg": "final",
    "label": "Drive time at the end",
    "better": "low",
    "format": "num"
   },
   {
    "name": "Drivers",
    "agg": "final",
    "label": "Drivers at the end",
    "better": "low",
    "format": "num"
   }
  ]
 },
 "scenarios": [
  {
   "id": "ts1",
   "name": "Widen the road",
   "values": {
    "Extra_Lanes": 2,
    "Bus_Time": 30
   }
  },
  {
   "id": "ts2",
   "name": "Faster bus instead",
   "values": {
    "Extra_Lanes": 0,
    "Bus_Time": 22
   }
  }
 ]
}