Perform statistical analysis
Implement an automated (?) statistical analysis. For the analysis, we should look at the following scenarios:
- Centralized
- Peer-to-peer
For 1., we need to set the range of the vehicles to inf
and we need to deactivate message propagation in the network.
We should take a look at the following values in the simulation:
- Travel time in both simulations
- Maximum wait time in both simulations
- Deviation from maximum possible travel speed
- Message traffic (using
MessageBroker
to count the messages that are currently in the air). This should be plotted against time to take a look at the evolution of message traffic. - Number of reroutes in both scenarios
We should add a parameter -e
to main, which writes our required statisical data gathered during simulation to a folder out
or the like. The idea is to then read the data from a different module to draw the graphics, etc. This could be done from a Python Notebook.
Further points that come to this issue (Boyan)
- Add traffic in the other directions in the simulation to better show how the idea of message propagation works
- though not too, otherwise we get an artificial world and basically centralized information system
- As we are at it, add another scenario with 2 problems (1 accident, 1 granny driver)
Implementation details for documentation purposes
All output data would be saved as .csv, so we can analyze the results easily in a jupyter notebook with pandas
- Data for cars saved in ./out/cars.csv
- Data for messages saved in ./out/messages.csv
Edited by herrmalu