IElab 09
IElab 09
Objective: In this lab, students will try to propose a solution to an open-ended problem based on their
respective understanding of the given scenario.
Data Set ∀i, j ∈ S ∪ C ∪ M
• S = {S1, S2} represents source nodes
• C = {C1, C2, · · · Cp} represents nodes for cities of attraction where p = 1
• M = {M1, M2, · · · Mq} represents nodes for possible meeting points where q = 1
• N = n ij denotes the adjacency matrix representing the possible route between node i to node j.
S1 S2 M1 C1
S1 0 0 1 0
S2 0 0 1 0
M1 1 1 0 1
C1 0 0 1 0
• D = d ij denotes the distance matrix representing the distance (in kms) between node i to node j.
S1 S2 M1 C1
S1 0 0 1508 0
S2 0 0 807 0
M1 1508 807 0 167
C1 0 0 167 0
Figure 1: A layout for network with two source cities (S1, S2), one meeting point M1 and one city of
attraction C1
Page 2
• F = f ij denotes the frequency matrix representing the daily frequency of trains between node i to
S1 S2 M1 C1
S1 0 0 8 0
node j. S2 0 0 5 0
M1 8 5 0 6
C1 0 0 6 0
• TT = ttk ij denotes the travel time matrix representing the travel time for k th train between node i
to node j where k ∈ Fij . Note that travel time is symmetric that is travel time for node j to node i is
same as node i to node j.
S1 to M1: [18:35, 21:27, 19:46, 26:25, 28:36, 20:28, 32:16, 22:10]
S2 to M1: [16:25, 19:38, 20:56, 09:13, 12:08]
M1 to C1: [03:42, 02:56, 04:15, 03:18, 05:08, 03:50]
• DEP = depk ij denotes the departure time matrix representing the departure time for k th train be-
• ARR = arrk ij denotes the arrival time matrix representing the arrival time for k th train between
< DepartureT ime(at Origin Node) > < OriginN ode >< DestinationN ode > < ArrivalT ime(at Dest. Node) >
Page 3
Scenario B: Scheduling Intersection
Note 2 : While providing an output of a feasible itinerary, you need to use an approach similar to the
elementary set theory; for more details, refer to the footnote below.
1. A layover in our context significantly differs from the waiting time at the meeting point. Layover is
when both parties come separately and wait for the next leg of the journey. At the same time, waiting
time here refers to either of the parties reaching early at the meeting point and waiting for the other
party.
• Create a plot for feasible trains arriving at the meeting point M1 arriving from {S1, S2} against
the possible number of feasible departures for C1 with a minimum layover time of 1 hour. You
should look for a feasible train from M1 to C1, whose departure from M1 is up to 24 hours from
the time of first arrival at M1 (this is same as saying that waiting time+layover time is less than
24 hours).
• Also, report your feasible travel plan using the prescribed notation.
2. Repeat the same if the minimum layover time belongs to the set {2, 5} hours. Describe your obtained
plot based on your understanding.
3. Assume that your tour planning is now constrained by waiting time at meeting point M1 say, waiting
time not more 1.5 hours. You can continue to assume a minimum layover time of 2 hours. Plot
your feasible set of trains from the source nodes {S1, S2} against departing trains at M1 to C1 with
required layovers and waiting time. Describe your obtained plot based on your understanding. Also,
report your feasible travel plan using the prescribed notation.
4. Repeat part 3 with a maximum waiting time of 2.5 hours.
Hint: Try to use a heatmap as a plot!!!
{{Train No. for S1 to M1 train, Train No. for S2 to M1, {Train No. for all feasible train from M1 to C1}}, · · · {· · · }}
In case if no feasible mode is available for a certain combination of train S1, S2 return feasible solution as {ϕ}
Page 4