At first, user should choose the number of stations in one route that wants to be reprogrammed and also the capacity of each bus or each train with the social distancing consideration to avoid overcrowded vehicles.

"Enter" is the total statistics of passengers entering each station and "Exit" is the total statistics of passengers exiting each station, and "Transfer" is the total number of passengers transiting between two stations. For example in this given sample, in station 5 twelve passengers are in the vehicle from previous stations and fourteen passengers enter the vehicle and seven people exit the vehicle, and the balance would be twenty-one passengers, and since it exceeds the fixed maximum capacity (twenty passengers), Run1 skips station 5 and the passengers transfer to Run2.

Knowing the number of passengers with their specific origin and destination by creating an n × n matrix that n is the number of stations in one route, and contains our input data consisting of the columns, showing the number of passengers exiting in different stations from a specific origin, and the rows showing the number of exit passengers from diverse origins but in a particular destination. The last column of the matrix indicates the number of passengers transiting between two continuous stations. For example according to the sample, in station 1, seven passengers entered the transit vehicle, but since station 5 exceeds the fixed maximum capacity, Run1 skips the station 5, and the number of passengers that are going from station 1 to station 5 does not consider in the calculation (one passenger). As the output shows the total number of passengers using Run1 are six. The same process repeats in other stations (passengers entering stations 2, 3, and 4 going to station 5 would be skipped and transferred to Run2).

© 2023 - My Application