In this repository you can find:
☺️ The source code/directories for our RailVision train challenge solution which uses a type of greedy algorithm coded in Python to efficiently compute the best schedule which can be made for a train transportation system given the rush hours to reduce the average passenger waiting time.☺️ The source code/directories for the visualization animation of the same problem given the input and output which uses Java.☺️ The source code/directories for our website made up using Django, HTML and CSS + using a .tech domain and google cloud!- To see the project overview and result go to our website: Before then see the output animations in static/videos folder!
- Our Project website http://mchackstransit.herokuapp.com/ :))))
- For detailed "How to run" you can find the information below:
1- To run the python file associated with the algorithm and see the csv file as an output, Make sure you have python3 installed
and hop in the pysrc directory. If you are on Windows, you have to change the '-'s to '#s' in the structure.py file lines 58 and 109. run solution.pyusing python3 HACK22/solution.py in the Pywork directory using terminal(You can see the average wait time as the output).
Afterwards, you have to refer to the output.csv file (placed in the same directory) to see the most optimal schedule.
2- To check the visualization part of the project make sure you have the csv file outputted from the python app. In Eclipse IDE you have to import the Jwork directory into your workspace, and make sure to uncheck the copy project to workspace. You have to run the MainFrame file which is inside the /Jwork/src/application folder (You have to have java virtual machine associated with the Jwork directory) and run the application to see the animation!
3- To see the whole overview of the website built you can go to the main direcotry terminal and download django using python3 -m pip install Django
.
Then run: python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver
you will be given a link to the website but its better to use the global link to avoid all this process.
