SE450: Project Description: Simulation Parameters [5/16] |
All spatial units will be given as meters. All time units will be given in seconds. Use the type double to store space and time parameters.
The simulation has the following parameters.
Simulation time step (seconds) Default=[0.1]. This indicates how much model time elapses between each simulation step. You can use this to adjust the granularity of the simulation.
Simulation run time (seconds) Default=[1000.0]. The length of the simulation in model seconds. When the user chooses Run simulation from the main menu, this indicates how long the simulation should run.
Grid size (number of roads) Default=[row=2,column=3]. This indicates the size of the grid. If there are 2 rows and 3 columns, then the grid looks like this:
| | | | | | -----#-----#-----#----- | | | | | | -----#-----#-----#----- | | | | | |
Traffic pattern Default=[alternating]. This indicates how the direction of roads should vary. The choices are simple or alternating.
Car generation delay (seconds/car) Default=[min=2.0,max=25.0]. Each car source generates cars at a fixed rate, but the sources may vary. You should set the delay between car generations by each source to be a random number between the min and max chosen here.
Road segment length (meters) Default=[min=200.0,max=500.0]. Each road segment has a fixed length, but the road segment lengths may vary. You should set the length of each segment to be a random number between the min and max chosen here.
Although road segment lengths vary, they will all appear the same size in the graphical output. Thus, cars will appear to move more slowly on longer segments.
Intersection length (meters) Default=[min=10.0,max=15.0]. Each intersection has a fixed length, but the intersection lengths may vary. You should set the length of each intersection to be a random number between the min and max chosen here.
Car length (meters) Default=[min=5.0,max=10.0]. Each car has a fixed length, but the car lengths may vary. You should set the length of each car to be a random number between the min and max chosen here.
Car maximum velocity (meters/second) Default=[min=10.0,max=30.0]. (You get the idea.)
Car stop distance (meters) Default=[min=0.5,max=5.0]. (You get the idea.)
Car brake distance (meters) Default=[min=9.0,max=10.0]. (You get the idea.)
Traffic light green time (seconds) Default=[min=30.0,max=180.0]. (You get the idea.)
Traffic light yellow time (seconds) Default=[min=4.0,max=5.0]. (You get the idea.)
Note than some combinations of simulation parameters may not make sense. For example if the simulation time step is too large, then cars may disappear before they every display. You do not need to worry about this. Make sure that the simulation works for sensible values.
You may choose whatever defaults you like. The ones I have listed are just to get you started.