9. Trip Generation (tripgen)

The agent-based model simulates the EV trips happening in the state of WA in a day. The procedure to generate the trips is as follows:

9.1. Estimate Long Distance Trips

First the long-distance trips in WA are estimated using the Long Distance Travel Demand Model. The output of this model looks something like this (showing first 5 rows):

Destination Origin ret dep
98001 99019 0.01395 0.00950
98001 98326 0.01009 0.00024
98001 98433 4.98910 2.00689
98001 99110 0.00604 0.00147
98001 98277 0.16503 0.42239

where Origin and Destination refer to origin and destination zip codes. ret and dep refer to the average monthly trip generation rate for return and departure trips.

Fig. 9.1 shows the split between returning and departing trips, for any OD pair.

Trip Generation Split

Fig. 9.1 Trip Generation Split

9.2. Estimate Daily Long Distance EV Trips

Fig. 9.2 shows the daily EV trip generation process.

Trip Generation Process

Fig. 9.2 Trip Generation Process

  1. Calculate the daily trip generation rate from the monthly trip generation rate, for returning and departing vehicles [1].
  2. For both returning and departing vehicles, perform a random draw from Poisson Distribution, assuming the daily trip generation rate as the rate of occurrence to find the total vehicle trips per day [2] .
  3. For both returning and departing vehicle trips daily, perform a random draw from a Binomial Distrbution with the probability that the trip is made by an EV owning household [3].

Note

The probability calculation has an implicit assumption that one household has only one EV. In other words, number of EVs is equal to the number of EV owning households.

  1. Based on the total count of returning and departing vehicle trips, group by vehicle source (destination for returning trips and origin for departing trips) to find the total EV requirement for a zip code. [4]
  2. From all the EVs available in the zip code, find the EVs that will actually make the trip on the given day by random sampling (without replacement) [5].
  3. Finally, perform a random draw from Binomial Distribution considering the probability of vehicle choice (using the Vehicle Choice Decision Model) [6].
  4. Collect all trips that happen, both returning and departing, and store them in the database with the relevant analysis_id, so that they can be picked up by the eviabm for performing trhe agent-based simulation.