I need help modeling a train system (like a subway system) in SimPy, the problem is that my "Simulation" teacher wants me to use Python + SimPy and I don't have a clue how to use it, after a week reading about SimPy I managed to understand the bank example, it's easy, but now I still don't have an idea on how to model the problem the teacher gave me...
The problem is large and extensive, but I just need a little help, not the whole project done, so, if some one can help I will realy appreciate.
The reduced problem that will help me get started is like this:
imagine you have 3 stations (A, B, C) separated by some distance (lets say 100m) and I have 2 trains, one on A and one on C (train1 going from A to C, tran2 going from C to A) where each train has a maximum speed (lets say 50m/s for both) and acceleration (lets say 5m/s^2 and -5m/s^2 for breaking) and all they have to do is to stop on each station for a few seconds (lets say 24s) and continue to the next station, when they reach the end, they wait for and extra 20seconds (changing rails) and then start all over again.
The station has a limit of passengers (they dont need to be simulated) the only thing is that each station has a random number of passengers and when the train arrives some get up and others get down...
so, basically I need a small model of the train and the stations with those 3 stations... If some one can help me please...
The real problem has 22 stations, 2 extra stations to change lanes, random time on wait, 42 trains with different max speed and capacity, different number of passengers generated depending on the station and time of day, etc... all this stuff I can manage later, but the modeling logic of the train-station system I can't seem to figure it out... Thanks for your help!