The infrastructure can be downloaded here.
The infrastructure folder contains 14 scheduled passenger trains which occupy the network for the scheduled period. In each assignment, you are supposed to change the "unscheduled.txt" file with the parameters provided earlier by email (on 12th Feb by Madhu). The file contains 20 freight trains and the values of Headway, MaxSpeed and Acceleration needs to be changed in the file. The Headway is the time difference between each subsequent freight start time. The current unscheduled.txt has default values for freight trains as: max-speed of 65 kmph, acceleration 0.3 m/s^2 and headway of 6 mins. Since the headway is 6 minutes in the current unscheduled.txt file (as an example): the first freight train's scheduled start-time is 0006, second's startTime is 0012 (meaning 00 hours, 12 minutes), third freight train's startTime is 0018, etc. If headway value for you is h, then the startTimes are supposed to be at h minutes past midnight for the first train, 2h minutes past midnight for the second freight train, etc.
The task is to simulate the infrastructure and report back the 5 following values which can be computed from the file "timetableDetailed.csv":
- Best freight path (in mins)
- Average of best 10 freight paths (in mins)
- Worst of top 10 freight paths (in mins)
- Average of best 20 freight paths(in mins)
- Worst freight path (in mins)
(Of course, if you have only 20 freight trains in unscheduled.txt, then "top 20" is same as "all 20".)
The "timetableDetailed.csv" is generated from the simulator. The file contains all the details of the train journey and intermediate station timings. The first 9 columns contains the details of the train. The 3 digit train number correspond to freight trains and 5 digit train number correspond to passenger train. Further columns in the file are in a tuples of 6 columns corresponding to each intermediate station. The 4th and 5th columns of these tuples contain arrival and departure time in HHMMSS format. The freight path traversal time is defined as the difference between (actual) departure time of starting station (Kanpur) and arrival time of ending station (Lucknow). Compute freight path traversal time for each of the 20 freight trains and compute the above 5 values.
(There is also another csv file that gives just freight traversal time: this is not to be used since here the time is calculated incorrectly (in the version you downloaded): the scheduled departure got used instead of the actual departure. Since this value is incorrect, do not use the file: freightDetails.csv.)
We will send a form to upload the above 5 values. Deadline for the assignment is Friday 21st Feb. The assignment weightage is 5%. Those who submit by Friday 21st Feb 11:30pm night: their assignment will be evaluated out of 5%. Those who submit by 1st March 11:30pm: their assignment marks will be scaled down to out of 2.5%. (Assignment submissions after 1st March are not going to be considered.)