SlideShare a Scribd company logo
Postgraduate Certificate in Logistics &
Supply Chain Management (PGCLSCM)

       Transportation Network Models
Topics covered

•   Notion of Graphs (Friday-I)
•   Minimal Spanning Tree (Friday-I)
•   Shortest Path Algorithms (Friday-I)
•   Maximal Flow (Friday-II)
•   Multistage Transshipment (Friday-II)
•   Set covering and Set Partitioning (Friday-II)
•   Routing Heuristics and Optimization (Sunday-I)
•   Case Study – Model the Location Constraints problem
    (Sunday-II)
Graphs – Terminology Revision

• Vertices, Nodes, Edges
• Undirected, Directed, Bi-directed, Mixed
  (Undirected/directed edges), Loops (on the same
  node/vertex), Multi-Graph (multiple edges between the
  same nodes), Weighted
• Complete graph, Cycle graph, Planar graph (no edges
  intersect), tree (undirected graph with a single path
  between any two notes)
• Subgraphs, connected, isolated


http://en.wikipedia.org/wiki/Graph_theory
Minimal Spanning Tree(MST)

• Span ALL Nodes, Pick Lowest Cost Edges
• Prim‟s and Kruskal‟s algorithm (Concept of greedy
  algorithm)
• Variants - Maximum Spanning tree, K-minimum spanning
  tree
• Applications – Selecting Service Providers across multiple
  offices (each edge with different cost/charges), Laying
  phone lines, pipelines, Contract Rate/Carrier negotiations
Kruskal‟s Algorithm (MST)




Nodes A-G, Pick Lowest                           AD(5) and CE(5) are lowest   CE(5) is the next lowest
                                                 Pick AD ‘arbitrarily’        Pick CE




   http://en.wikipedia.org/wiki/Kruskal's_algorithm
Kruskal‟s Algorithm (MST)




 DF(6) is the next lowest   AB(7) and BE(7) are next   BE(7) is next
 Pick DF                    Pick AB ‘arbitrarily’      Mark BC, DE, EF ‘out’ to
                            Mark BD ‘out’ to           prevent cycles
                            prevent cycle
Kruskal‟s Algorithm (MST)




                 EG(9) is next
                 All nodes are connected
Shortest Path
• Pick Lowest Cost traversal between two nodes
• Dijkstra (From single source to all other nodes)
• Floyd-Warshall (Single execution finds shortest path for all
  node pairs in the graph)
• Travelling Salesman (Travel to every node exactly once and
  return to the start node)
• Canadian Traveler Problem (Graph unknown, changes over
  time, is probabilistic)
• Applications – Driving directions (google), Plant/Warehouse
  layouts, robotics/VLSI
Dijkstra's Shortest Path Algorithm

    • Find shortest path from s to t.



                                                   24
                    2                                                     3
          9

s
                                               18
               14
                                                         2        6
                            6
                                     30                       4               19
                                                        11
          15                              5
                        5
                                                                      6
                                20                       16


                                                                               t
                    7                         44

                                                                                   9
Dijkstra's Shortest Path Algorithm
                               S={ }
                               PQ = { s, 2, 3, 4, 5, 6, 7, t }

                                                                                       
                       
                                                           24
                       2                                                               3
 0          9

 s
                                                        18
                  14                                             2            6
                               6                                       
                                        30                      11
                                                                           4               19

             15                                  5
                           5
                                                                                   6
                                   20                             16


                                                                                            t
                       7                              44
distance label                                                                            10
Dijkstra's Shortest Path Algorithm
                                S={ }
                                PQ = { s, 2, 3, 4, 5, 6, 7, t }

delmin
                                                                                        
                        
                                                            24
                        2                                                               3
  0          9

  s
                                                         18
                   14                                             2            6
                                6                                       
                                         30                      11
                                                                            4               19

              15                                  5
                            5
                                                                                    6
                                    20                             16


                                                                                             t
                        7                              44
 distance label                                                                            11
Dijkstra's Shortest Path Algorithm
                                  S={s}
                                  PQ = { 2, 3, 4, 5, 6, 7, t }
            decrease key

                                                                                        
                        9
                       X
                                                             24
                       2                                                                3
 0          9

 s
                                                          18
                  14               14
                                  X
                                                                   2            6
                                  6                                     
                                           30                    11
                                                                            4               19

             15                                     5
                              5
                                                                                    6
                                      20                           16


                                                                                             t
                       7                                44
distance label          15
                       X                                                                    12
Dijkstra's Shortest Path Algorithm
                                  S={s}
                                  PQ = { 2, 3, 4, 5, 6, 7, t }

                                   delmin
                                                                                        
                        9
                       X
                                                             24
                       2                                                                3
 0          9

 s
                                                          18
                  14               14
                                  X
                                                                   2            6
                                  6                                     
                                            30                   11
                                                                            4               19

             15                                     5
                              5
                                                                                    6
                                      20                           16


                                                                                             t
                       7                                44
distance label          15
                       X                                                                    13
Dijkstra's Shortest Path Algorithm
                             S = { s, 2 }
                             PQ = { 3, 4, 5, 6, 7, t }


                                                                                    
                   9
                  X
                                                         24
                  2                                                                 3
0       9

s
                                                     18
             14               14
                             X
                                                               2            6
                             6                                      
                                      30                     11
                                                                        4               19

        15                                     5
                         5
                                                                                6
                                 20                            16


                                                                                         t
                  7                                44

                   15
                  X                                                                     14
Dijkstra's Shortest Path Algorithm
                             S = { s, 2 }
                             PQ = { 3, 4, 5, 6, 7, t }
                                                                        decrease key

                                                                                    
                                                                                    X 33
                   9
                  X
                                                         24
                  2                                                                 3
0       9

s
                                                     18
             14               14
                             X
                                                               2            6
                             6                                      
                                      30                     11
                                                                        4               19

        15                                     5
                         5
                                                                                6
                                 20                            16


                                                                                         t
                  7                                44

                   15
                  X                                                                     15
Dijkstra's Shortest Path Algorithm
                             S = { s, 2 }
                             PQ = { 3, 4, 5, 6, 7, t }


                                                                                    
                                                                                    X 33
                   9
                  X
                                                         24
                  2                                                                 3
0       9
                                      delmin
s
                                                     18
             14               14
                             X
                                                               2            6
                             6                                      
                                       30                    11
                                                                        4               19

        15                                     5
                         5
                                                                                6
                                 20                            16


                                                                                         t
                  7                                44

                   15
                  X                                                                     16
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 6 }
                             PQ = { 3, 4, 5, 7, t }
                                                                                          32
                                                                                       X
                                                                                      X 33
                   9
                  X
                                                           24
                  2                                                                   3
0       9

s
                                                       18
             14               14
                             X
                                                                 2            6
                             6                                        
                                              44
                                      30      
                                              X
                                                                11
                                                                          4               19

        15                                     5
                         5
                                                                                  6
                                 20                              16


                                                                                               t
                  7                                   44

                   15
                  X                                                                        17
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 6 }
                             PQ = { 3, 4, 5, 7, t }
                                                                                          32
                                                                                       X
                                                                                      X 33
                   9
                  X
                                                           24
                  2                                                                   3
0       9

s
                                                       18
             14               14
                             X
                                                                 2            6
                             6                                        
                                              44
                                      30      
                                              X
                                                                11
                                                                          4               19

        15                                     5
                         5
                                                                                  6
                                 20                              16


                                                                                               t
                  7                                   44

                   15
                  X              delmin                                                    18
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 6, 7 }
                             PQ = { 3, 4, 5, t }
                                                                                       32
                                                                                    X
                                                                                   X 33
                   9
                  X
                                                        24
                  2                                                                3
0       9

s
                                                      18
             14               14
                             X
                                                              2            6
                             6                                     
                                              44 35
                                              X
                                      30      
                                              X
                                                             11
                                                                       4               19

        15                                     5
                         5
                                                                               6
                                 20                           16


                                                                                            t
                  7                                44

                   15
                  X                                                                59 
                                                                                      X19
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 6, 7 }                            delmin
                             PQ = { 3, 4, 5, t }
                                                                                        32
                                                                                     X
                                                                                    X 33
                   9
                  X
                                                        24
                  2                                                                 3
0       9

s
                                                      18
             14               14
                             X
                                                              2             6
                             6                                     
                                              44 35
                                              X
                                      30      
                                              X
                                                             11
                                                                       4                19

        15                                     5
                         5
                                                                                6
                                 20                           16


                                                                                             t
                  7                                44

                   15
                  X                                                                 59 
                                                                                       X20
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 3, 6, 7 }
                             PQ = { 4, 5, t }
                                                                                         32
                                                                                      X
                                                                                     X 33
                   9
                  X
                                                          24
                  2                                                                  3
0       9

s
                                                      18
             14               14
                             X
                                                                2            6
                             6                                       
                                              44 35 34
                                              X X
                                      30      
                                              X
                                                               11
                                                                         4               19

        15                                      5
                         5
                                                                                 6
                                 20                             16


                                                                                              t
                  7                                  44

                   15
                  X                                                              51 59 
                                                                                    X X21
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 3, 6, 7 }
                             PQ = { 4, 5, t }
                                                                                         32
                                                                                      X
                                                                                     X 33
                   9
                  X
                                                          24
                  2                                                                  3
0       9

s
                                                      18
             14               14
                             X
                                                                2            6
                             6                                       
                                              44 35 34
                                              X X
                                      30      
                                              X
                                                               11
                                                                         4               19

        15                                      5
                         5
                                                                                 6
                                 20                             16
                                            delmin

                                                                                              t
                  7                                  44

                   15
                  X                                                              51 59 
                                                                                    X X22
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 3, 5, 6, 7 }
                             PQ = { 4, t }
                                                                                             32
                                                                                          X
                                                                                         X 33
                   9
                  X
                                                         24
                  2                                                                      3
0       9

s
                                                        18
             14               14
                             X
                                                               2                 6
                             6                                      45 
                                                                       X
                                              44 35 34
                                              X X
                                      30      
                                              X
                                                              11
                                                                           4                 19

        15                                      5
                         5
                                                                                     6
                                 20                            16


                                                                                                  t
                  7                                 44

                   15
                  X                                                            50 51 59 
                                                                                  X X X23
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 3, 5, 6, 7 }
                             PQ = { 4, t }
                                                                                                32
                                                                                             X
                                                                                            X 33
                   9
                  X
                                                         24
                  2                                                                         3
0       9

s
                                                        18
             14               14
                             X
                                                               2                    6
                             6                                         45 
                                                                          X
                                              44 35 34
                                              X X
                                      30      
                                              X
                                                              11
                                                                              4                 19

        15                                      5                   delmin
                         5
                                                                                        6
                                 20                            16


                                                                                                     t
                  7                                 44

                   15
                  X                                                               50 51 59 
                                                                                     X X X24
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 3, 4, 5, 6, 7 }
                             PQ = { t }
                                                                                               32
                                                                                            X
                                                                                           X 33
                   9
                  X
                                                           24
                  2                                                                        3
0       9

s
                                                      18
             14               14
                             X
                                                                 2                 6
                             6                                        45 
                                                                         X
                                              44 35 34
                                              X X
                                      30      
                                              X
                                                                11
                                                                             4                 19

        15                                     5
                         5
                                                                                       6
                                 20                              16


                                                                                                    t
                  7                                 44

                   15
                  X                                                              50 51 59 
                                                                                    X X X25
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 3, 4, 5, 6, 7 }
                             PQ = { t }
                                                                                                  32
                                                                                               X
                                                                                              X 33
                   9
                  X
                                                           24
                  2                                                                           3
0       9

s
                                                      18
             14               14
                             X
                                                                 2                    6
                             6                                           45 
                                                                            X
                                              44 35 34
                                              X X
                                      30      
                                              X
                                                                11
                                                                                4                 19

        15                                     5
                         5
                                                                                          6
                                 20                              16


                                                                                                       t
                  7                                 44

                   15
                  X
                                                                delmin              50 51 59 
                                                                                       X X X26
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 3, 4, 5, 6, 7, t }
                             PQ = { }
                                                                                              32
                                                                                           X
                                                                                          X 33
                   9
                  X
                                                          24
                  2                                                                       3
0       9

s
                                                       18
             14               14
                             X
                                                                2                 6
                             6                                       45 
                                                                        X
                                               44 35 34
                                               X X
                                      30       
                                               X
                                                               11
                                                                            4                 19

        15                                      5
                         5
                                                                                      6
                                 20                             16


                                                                                                   t
                  7                                  44

                   15
                  X                                                             50 51 59 
                                                                                   X X X27
Dijkstra's Shortest Path Algorithm
                             S = { s, 2, 3, 4, 5, 6, 7, t }
                             PQ = { }
                                                                                              32
                                                                                           X
                                                                                          X 33
                   9
                  X
                                                          24
                  2                                                                       3
0       9

s
                                                       18
             14               14
                             X
                                                                2                 6
                             6                                       45 
                                                                        X
                                               44 35 34
                                               X X
                                      30       
                                               X
                                                               11
                                                                            4                 19

        15                                      5
                         5
                                                                                      6
                                 20                             16


                                                                                                   t
                  7                                  44

                   15
                  X                                                             50 51 59 
                                                                                   X X X28
Floyd-Warshall algorithm
Floyd-Warshall (All Pairs Shortest Path)
Initial Graph (Start State)
1. Dots represent arrow direction
2. Red edges are backward flows
3. 999 indicates no direct edge
4. Negative costs included                                                   1    2   3    4    5
                                                                         1
                                                                         2
                                                                         3
                                                                         4
                                                                         5


Iteration #1: k=1
Select Row 1, Column 1 as base (in
    yellow)

For each cell D(i,j) (in purple)                                             1    2   3    4    5
Set D(i,j) = min[D(i,j) , D(i,k)+D(k,j)]                                 1
                                                                         2
 D(4,2) set to D(4,1)+D(1,2)                                            3
 D(4,5) set to D(4,1)+D(1,5)                                            4
                                                                         5

   http://www.pms.ifi.lmu.de/lehre/compgeometry/Gosper/shortest_path/shortest_path.html#visualization
Floyd-Warshall (All Pairs Shortest Path)
Iteration #2: k=2
Select Row 2, Column 2 as base (in
    yellow)

For each cell D(i,j) (in purple)
                                               1   2   3   4   5
Set D(i,j) = min[D(i,j) , D(i,k)+D(k,j)]
                                           1
                                           2
 D(1,4) set to D(1,2)+D(2,4)              3
 D(3,4) set to D(4,2)+D(2,3)              4
                                           5

Iteration #3: k=3
Select Row 3, Column 3 as base (in
    yellow)

For each cell D(i,j) (in purple)               1   2   3   4   5
Set D(i,j) = min[D(i,j) , D(i,k)+D(k,j)]   1
                                           2
 D(4,2) set to D(4,3)+D(3,2)              3
                                           4
                                           5
Floyd-Warshall (All Pairs Shortest Path)
Iteration #1: k=4
Select Row 4, Column 4 as base (in
    yellow)
   D(1,3) set to D(1,4)+D(4,3)
   D(2,1) set to D(2,4)+D(4,1)           1   2   3   4   5
   D(2,3) set to D(2,4)+D(4,3)       1
   D(2,5) set to D(2,4)+D(4,5)       2
   D(5,1) set to D(5,4)+D(4,1)       3
   D(5,2) set to D(5,4)+D(4,2)       4
   D(5,3) set to D(5,4)+D(4,3)       5

Iteration #5: k=5
Select Row 5, Column 5 as base (in
    yellow)

 D(1,2) set to D(1,5)+D(5,2)             1   2   3   4   5
 D(1,3) set to D(1,5)+D(5,3)         1
 D(1,4) set to D(1,5)+D(5,4)         2
                                      3
                                      4
                                      5
Floyd-Warshall (All Pairs Shortest Path)
All Pairs Shortest Distance
available

Shortest Path from 1->2 has been
computed as 1 {1->5->4->3->2}           1   2   3   4   5
                                    1
                                    2
                                    3
                                    4
                                    5
Maximum Flow
• Given a “Source” (A) and a                   Capacity in A-> D direction
  “Sink” (G), determine the
  maximum quantity that can
  flow, given edge capacities
• Maximum telephone calls on
  a network, maximum
  vehicles on a road
• Two-directional flow capacity




                                  Capacity in D->A direction
Practical Application of Maximum Flow
• Tyson Foods, IBP Merger in 2001
   – Combine Transportation Networks
   – Optimize Fleet Carriers (Strategic), Residual Carriers (Contract and Spot
     Carriers)
• Approach
   – Mine trips data from previous 3 years
   – Generate Aggregates (Min, Max, Avg) for each Lane/Start DOW/End DOW
   – Run Flow problem iteratively for each start location and start day of week
     [Modeled as a single node]
• Result (Cost optimization)
   – Propose Routing Loops for Fleet Carriers
   – Propose Residual Flow and suggested rates for Contract Negotiations
Ford and Fulkerson Method
1.   Find any path that has positive „forward‟ flow capacity
     remaining
2.   Compute f, the flow capacity on the bottleneck edge [This is
     the most constricted flow in the chosen path]
3.   Add f to the capacity in the forward direction of each edge in
     the chosen path. Reduce f from the capacity in the reverse
     direction of each edge in the chosen path
4.   Repeat 1-3 until positive forward flow paths are found
Ford and Fulkerson Method
[Path A->D->E->G]
Flow on Bottleneck Arc [D->E]: 4

Reduce 4 in the forward direction edges
Add 4 in the reverse direction edges

Cumulative flow in the network = 4




[Path A->B->E->G]
Flow on Bottleneck Arc [B->E]: 3

Reduce 3 in the forward direction edges
Add 3 in the reverse direction edges

Cumulative flow in the network = 4+3
Ford and Fulkerson Method
[Path A->C->F->G]
Flow on Bottleneck Arc [A->C]: 4

Reduce 4 in the forward direction edges
Add 4 in the reverse direction edges

Cumulative flow in the network = 4+3+4




[Path A->D->F->G]
Flow on Bottleneck Arc [F->G]: 2

Reduce 2 in the forward direction edges
Add 2 in the reverse direction edges

Cumulative flow in the network = 4+3+4+2
Ford and Fulkerson Method
[Path A->D->F->E->G]
Flow on Bottleneck Arc [F->E]: 1

Reduce 1 in the forward direction edges
Add 1 in the reverse direction edges

Cumulative flow in the network = 14
(4+3+4+2+1).

There are no more positive flow paths
between A->G. The algorithm terminates.
Minimum Cut Problem
•Each ‘cut’ should detach all possible paths
from Source to Sink [A->G]
•‘cut value’ is the sum of flow capacities that
have been severed by the cut




Tit-bit: During Vietnam war, the infamous Ho Chi Minh trail(s) were modeled as
a network and ‘costs’ were associated with cutting the trail at various points.

The min cut then showed the set of trails that must be attacked to sever the flow of enemy
troops and supplies for the lowest cost operation.
Multi-stage Transshipment
• Usage of multiple modes – Road, Rail, Air/Sea to deliver
  goods
• Intel‟s suppliers in Taiwan provide ICs to be assembled in
  its plant in Arizona, USA
Multi-stage Transshipment

                                                                  Rail Hub

Vendor
                                                                                    Plant




     Airport                                            Airport


 Multi-Leg, Multi-Modal Shipments
 Intermodal (Air, Rail, Ship) Schedules drive drayage legs planning
 In-transit Optimization - Consolidation, Deconsolidation at transshipment points
 Documentation, Import/Export regulations constrain optimization options
Minimal Set Covering


• Given
   – A universal set U that has all the solutions,
   – A number of subsets Si
• Find the smallest number (k) of subsets (Si) that cover all
  solutions in U
• Example: Ensure coverage of resources to usage. Find the
  smallest number (k) of telephone switches (Subsets Si)
  required to cover usage needs of all customers (Universal set
  U)
• Intersections can exist
Maximum Set Packing


• Given
   – A universal set U that has all the solutions,
   – A number of subsets Si
• Find the biggest number (k) of disjoint subsets (Si) that cover
  all solutions in U.
• Example: Allocate users to resources. Assign maximum
  number (k) of airline crews (Subsets Si) to available aircrafts
  (Universal set U) such that no crew is assigned to multiple
  flights
Routing Heuristics and Optimization
•   Vehicle Routing Problem – Complicated and comprises of numerous
    practical constraints
•   Involves Order Consolidation, Mode
    Selection, Routing/Transshipments, Scheduling, Location windows and
    constraints, Carrier/Lane/Rate choices, Vehicle/Driver assignment, DOT
    regulations, Compatibilities, Execution Adaptability

•   “heuristics refers to experience-based techniques for problem solving.
    Heuristic methods are used to identify an optimal solution as rapidly as
    possible. Examples of this method include using a "rule of thumb", an
    educated guess, an intuitive judgment, orcommon sense.”




     http://en.wikipedia.org/wiki/Approximation_algorithms
Consolidation-Centered Heuristic

                • Orders from the same origin and to the same destination can be combined to
   Bundle         one Trip/Shipment. Mode selection is made.
   Orders


            • Create Multi-Stop trips/shipments by consolidating within mode
              [Courier, TruckLoad, LTL, Rail etc]
Consolidate • Assign Best Carrier, Rate
 by Mode    • Solve Vehicle Assignment problem for Truckload and LTL



                • Disband under-utilized trips/shipment and evaluate alternate options to route
                  them or consolidate with other pre-existing trips
  Disband       • Assign Best Carrier Rate. Solve Vehicle Assignment problem
Underutilized
Vehicle-Centric Routing

                • Pick each vehicle at its domicile location and start packing
                  them up with “similar” groups of orders
 Pack orders    • Assign Drivers
into vehicles


                • Pick Orders that remain unscheduled and schedule them on
                  existing trucks. If necessary swap out lower-value orders for
                  higher priority order scheduling
   Solve        • Arrange Spot Carriers for remaining orders
 Remnants       • Arrange LTL, Parcel Modes
Case Study – Math Modelling
• Problem Statement – A small Warehouse location has the
  following constraints
   – The location is open 10:00 AM - 5:00 PM Mon
   – It can accommodate only 2 Trucks every hour
   – It can only serve 2000 KG of material each hour
• Given:
   – 10 Trips picking up goods from the warehouse, each with different
     potential start times and corresponding costs. Each trip carriers 500
     KG
• Objective:
   – Date/Time Schedule the 10 trips with the lowest overall cost such
     that all location constraints are honored
Objective Function
• Minimize total cost of solution
Minimize obj:
1000 x1 + 1234 x2 + 1343 x3 ….+ 2123 x10 + ….
[Cost of unique Trip and Start Time combination]
[All variables are made linear: 0 ≤ xi ≤ 1. Fractional results are converted to its
     closest integer{0,1}. This makes the problem easier to solve. This is called Linear
     Programming (LP) Relaxation.]


• Add Above (50,000 - Soft) and Below (3,000 - Soft) Target
  Penalty variables
3000 x221 + 50000 x222 + 3000 x223 + 50000 x224 +……




* Integer programs are complicated to solve. Linear programs can be solved in polynomial time
Trip Constraints

• A trip can only start at one of its possible start times
Subject To
C1: x1 + x21 + x33 + x112 = 1 [x1, x21, x33 and x112 represent 4
  different times trip can pickup at the location]
C2: x2 + x22 + x34 + x 113 = 1
…
…
Capacity Constraints
• Location can server two trips in each hour bucket
• Location can serve trips totaling 2000 KG in each hour
  bucket
C101: x2 + x26 + x32 + x64 + x76 =2
[Each constraint corresponds to a specific 1-hour bucket. Each of the variables correspond to a trip at a particular pickup time
     that falls in that one hour bucket. If that trip is selected, it contributes a trip count of 1 to the Bucket Capacity of 2 trips]


C102: 500x1 + 500x13 + 500x55 + 500x84 + 500x96 =2000
[Each constraint corresponds to a specific 1-hour bucket. Each of the variables correspond to a trip at a particular pickup time
     that falls in that one hour bucket. If that trip is selected, it contributes 500 KG to the Bucket Capacity of 2000 KGS]

…
…

* Concept of Slack variables to accommodate lesser quantity than capacity
Balancing Constraints

• To create a balanced workload and prevent peaks. Helps
  ramp-up and ramp-down labor resources
C201: x187 – x188 – x189 + x190 >=0
[The difference between adjacent time bucket assignments should be kept low].
   Creates a pattern such as this ….




    2.5
     2
    1.5
     1                                                              Series1
    0.5
     0
          9     10     11    12     1     2      3     4      5

More Related Content

Recently uploaded

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 

Recently uploaded (20)

CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Transportation network models

  • 1. Postgraduate Certificate in Logistics & Supply Chain Management (PGCLSCM) Transportation Network Models
  • 2. Topics covered • Notion of Graphs (Friday-I) • Minimal Spanning Tree (Friday-I) • Shortest Path Algorithms (Friday-I) • Maximal Flow (Friday-II) • Multistage Transshipment (Friday-II) • Set covering and Set Partitioning (Friday-II) • Routing Heuristics and Optimization (Sunday-I) • Case Study – Model the Location Constraints problem (Sunday-II)
  • 3. Graphs – Terminology Revision • Vertices, Nodes, Edges • Undirected, Directed, Bi-directed, Mixed (Undirected/directed edges), Loops (on the same node/vertex), Multi-Graph (multiple edges between the same nodes), Weighted • Complete graph, Cycle graph, Planar graph (no edges intersect), tree (undirected graph with a single path between any two notes) • Subgraphs, connected, isolated http://en.wikipedia.org/wiki/Graph_theory
  • 4. Minimal Spanning Tree(MST) • Span ALL Nodes, Pick Lowest Cost Edges • Prim‟s and Kruskal‟s algorithm (Concept of greedy algorithm) • Variants - Maximum Spanning tree, K-minimum spanning tree • Applications – Selecting Service Providers across multiple offices (each edge with different cost/charges), Laying phone lines, pipelines, Contract Rate/Carrier negotiations
  • 5. Kruskal‟s Algorithm (MST) Nodes A-G, Pick Lowest AD(5) and CE(5) are lowest CE(5) is the next lowest Pick AD ‘arbitrarily’ Pick CE http://en.wikipedia.org/wiki/Kruskal's_algorithm
  • 6. Kruskal‟s Algorithm (MST) DF(6) is the next lowest AB(7) and BE(7) are next BE(7) is next Pick DF Pick AB ‘arbitrarily’ Mark BC, DE, EF ‘out’ to Mark BD ‘out’ to prevent cycles prevent cycle
  • 7. Kruskal‟s Algorithm (MST) EG(9) is next All nodes are connected
  • 8. Shortest Path • Pick Lowest Cost traversal between two nodes • Dijkstra (From single source to all other nodes) • Floyd-Warshall (Single execution finds shortest path for all node pairs in the graph) • Travelling Salesman (Travel to every node exactly once and return to the start node) • Canadian Traveler Problem (Graph unknown, changes over time, is probabilistic) • Applications – Driving directions (google), Plant/Warehouse layouts, robotics/VLSI
  • 9. Dijkstra's Shortest Path Algorithm • Find shortest path from s to t. 24 2 3 9 s 18 14 2 6 6 30 4 19 11 15 5 5 6 20 16 t 7 44 9
  • 10. Dijkstra's Shortest Path Algorithm S={ } PQ = { s, 2, 3, 4, 5, 6, 7, t }   24 2 3 0 9 s 18 14  2 6 6  30  11 4 19 15 5 5 6 20 16 t 7 44 distance label  10
  • 11. Dijkstra's Shortest Path Algorithm S={ } PQ = { s, 2, 3, 4, 5, 6, 7, t } delmin   24 2 3 0 9 s 18 14  2 6 6  30  11 4 19 15 5 5 6 20 16 t 7 44 distance label  11
  • 12. Dijkstra's Shortest Path Algorithm S={s} PQ = { 2, 3, 4, 5, 6, 7, t } decrease key   9 X 24 2 3 0 9 s 18 14  14 X 2 6 6  30  11 4 19 15 5 5 6 20 16 t 7 44 distance label  15 X 12
  • 13. Dijkstra's Shortest Path Algorithm S={s} PQ = { 2, 3, 4, 5, 6, 7, t } delmin   9 X 24 2 3 0 9 s 18 14  14 X 2 6 6  30  11 4 19 15 5 5 6 20 16 t 7 44 distance label  15 X 13
  • 14. Dijkstra's Shortest Path Algorithm S = { s, 2 } PQ = { 3, 4, 5, 6, 7, t }   9 X 24 2 3 0 9 s 18 14  14 X 2 6 6  30  11 4 19 15 5 5 6 20 16 t 7 44  15 X 14
  • 15. Dijkstra's Shortest Path Algorithm S = { s, 2 } PQ = { 3, 4, 5, 6, 7, t } decrease key  X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6  30  11 4 19 15 5 5 6 20 16 t 7 44  15 X 15
  • 16. Dijkstra's Shortest Path Algorithm S = { s, 2 } PQ = { 3, 4, 5, 6, 7, t }  X 33  9 X 24 2 3 0 9 delmin s 18 14  14 X 2 6 6  30  11 4 19 15 5 5 6 20 16 t 7 44  15 X 16
  • 17. Dijkstra's Shortest Path Algorithm S = { s, 2, 6 } PQ = { 3, 4, 5, 7, t } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6  44 30  X 11 4 19 15 5 5 6 20 16 t 7 44  15 X 17
  • 18. Dijkstra's Shortest Path Algorithm S = { s, 2, 6 } PQ = { 3, 4, 5, 7, t } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6  44 30  X 11 4 19 15 5 5 6 20 16 t 7 44  15 X delmin 18
  • 19. Dijkstra's Shortest Path Algorithm S = { s, 2, 6, 7 } PQ = { 3, 4, 5, t } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6  44 35 X 30  X 11 4 19 15 5 5 6 20 16 t 7 44  15 X 59  X19
  • 20. Dijkstra's Shortest Path Algorithm S = { s, 2, 6, 7 } delmin PQ = { 3, 4, 5, t } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6  44 35 X 30  X 11 4 19 15 5 5 6 20 16 t 7 44  15 X 59  X20
  • 21. Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 6, 7 } PQ = { 4, 5, t } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6  44 35 34 X X 30  X 11 4 19 15 5 5 6 20 16 t 7 44  15 X 51 59  X X21
  • 22. Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 6, 7 } PQ = { 4, 5, t } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6  44 35 34 X X 30  X 11 4 19 15 5 5 6 20 16 delmin t 7 44  15 X 51 59  X X22
  • 23. Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 5, 6, 7 } PQ = { 4, t } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6 45  X 44 35 34 X X 30  X 11 4 19 15 5 5 6 20 16 t 7 44  15 X 50 51 59  X X X23
  • 24. Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 5, 6, 7 } PQ = { 4, t } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6 45  X 44 35 34 X X 30  X 11 4 19 15 5 delmin 5 6 20 16 t 7 44  15 X 50 51 59  X X X24
  • 25. Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 4, 5, 6, 7 } PQ = { t } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6 45  X 44 35 34 X X 30  X 11 4 19 15 5 5 6 20 16 t 7 44  15 X 50 51 59  X X X25
  • 26. Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 4, 5, 6, 7 } PQ = { t } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6 45  X 44 35 34 X X 30  X 11 4 19 15 5 5 6 20 16 t 7 44  15 X delmin 50 51 59  X X X26
  • 27. Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 4, 5, 6, 7, t } PQ = { } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6 45  X 44 35 34 X X 30  X 11 4 19 15 5 5 6 20 16 t 7 44  15 X 50 51 59  X X X27
  • 28. Dijkstra's Shortest Path Algorithm S = { s, 2, 3, 4, 5, 6, 7, t } PQ = { } 32  X X 33  9 X 24 2 3 0 9 s 18 14  14 X 2 6 6 45  X 44 35 34 X X 30  X 11 4 19 15 5 5 6 20 16 t 7 44  15 X 50 51 59  X X X28
  • 30. Floyd-Warshall (All Pairs Shortest Path) Initial Graph (Start State) 1. Dots represent arrow direction 2. Red edges are backward flows 3. 999 indicates no direct edge 4. Negative costs included 1 2 3 4 5 1 2 3 4 5 Iteration #1: k=1 Select Row 1, Column 1 as base (in yellow) For each cell D(i,j) (in purple) 1 2 3 4 5 Set D(i,j) = min[D(i,j) , D(i,k)+D(k,j)] 1 2  D(4,2) set to D(4,1)+D(1,2) 3  D(4,5) set to D(4,1)+D(1,5) 4 5 http://www.pms.ifi.lmu.de/lehre/compgeometry/Gosper/shortest_path/shortest_path.html#visualization
  • 31. Floyd-Warshall (All Pairs Shortest Path) Iteration #2: k=2 Select Row 2, Column 2 as base (in yellow) For each cell D(i,j) (in purple) 1 2 3 4 5 Set D(i,j) = min[D(i,j) , D(i,k)+D(k,j)] 1 2  D(1,4) set to D(1,2)+D(2,4) 3  D(3,4) set to D(4,2)+D(2,3) 4 5 Iteration #3: k=3 Select Row 3, Column 3 as base (in yellow) For each cell D(i,j) (in purple) 1 2 3 4 5 Set D(i,j) = min[D(i,j) , D(i,k)+D(k,j)] 1 2  D(4,2) set to D(4,3)+D(3,2) 3 4 5
  • 32. Floyd-Warshall (All Pairs Shortest Path) Iteration #1: k=4 Select Row 4, Column 4 as base (in yellow)  D(1,3) set to D(1,4)+D(4,3)  D(2,1) set to D(2,4)+D(4,1) 1 2 3 4 5  D(2,3) set to D(2,4)+D(4,3) 1  D(2,5) set to D(2,4)+D(4,5) 2  D(5,1) set to D(5,4)+D(4,1) 3  D(5,2) set to D(5,4)+D(4,2) 4  D(5,3) set to D(5,4)+D(4,3) 5 Iteration #5: k=5 Select Row 5, Column 5 as base (in yellow)  D(1,2) set to D(1,5)+D(5,2) 1 2 3 4 5  D(1,3) set to D(1,5)+D(5,3) 1  D(1,4) set to D(1,5)+D(5,4) 2 3 4 5
  • 33. Floyd-Warshall (All Pairs Shortest Path) All Pairs Shortest Distance available Shortest Path from 1->2 has been computed as 1 {1->5->4->3->2} 1 2 3 4 5 1 2 3 4 5
  • 34. Maximum Flow • Given a “Source” (A) and a Capacity in A-> D direction “Sink” (G), determine the maximum quantity that can flow, given edge capacities • Maximum telephone calls on a network, maximum vehicles on a road • Two-directional flow capacity Capacity in D->A direction
  • 35. Practical Application of Maximum Flow • Tyson Foods, IBP Merger in 2001 – Combine Transportation Networks – Optimize Fleet Carriers (Strategic), Residual Carriers (Contract and Spot Carriers) • Approach – Mine trips data from previous 3 years – Generate Aggregates (Min, Max, Avg) for each Lane/Start DOW/End DOW – Run Flow problem iteratively for each start location and start day of week [Modeled as a single node] • Result (Cost optimization) – Propose Routing Loops for Fleet Carriers – Propose Residual Flow and suggested rates for Contract Negotiations
  • 36. Ford and Fulkerson Method 1. Find any path that has positive „forward‟ flow capacity remaining 2. Compute f, the flow capacity on the bottleneck edge [This is the most constricted flow in the chosen path] 3. Add f to the capacity in the forward direction of each edge in the chosen path. Reduce f from the capacity in the reverse direction of each edge in the chosen path 4. Repeat 1-3 until positive forward flow paths are found
  • 37. Ford and Fulkerson Method [Path A->D->E->G] Flow on Bottleneck Arc [D->E]: 4 Reduce 4 in the forward direction edges Add 4 in the reverse direction edges Cumulative flow in the network = 4 [Path A->B->E->G] Flow on Bottleneck Arc [B->E]: 3 Reduce 3 in the forward direction edges Add 3 in the reverse direction edges Cumulative flow in the network = 4+3
  • 38. Ford and Fulkerson Method [Path A->C->F->G] Flow on Bottleneck Arc [A->C]: 4 Reduce 4 in the forward direction edges Add 4 in the reverse direction edges Cumulative flow in the network = 4+3+4 [Path A->D->F->G] Flow on Bottleneck Arc [F->G]: 2 Reduce 2 in the forward direction edges Add 2 in the reverse direction edges Cumulative flow in the network = 4+3+4+2
  • 39. Ford and Fulkerson Method [Path A->D->F->E->G] Flow on Bottleneck Arc [F->E]: 1 Reduce 1 in the forward direction edges Add 1 in the reverse direction edges Cumulative flow in the network = 14 (4+3+4+2+1). There are no more positive flow paths between A->G. The algorithm terminates.
  • 40. Minimum Cut Problem •Each ‘cut’ should detach all possible paths from Source to Sink [A->G] •‘cut value’ is the sum of flow capacities that have been severed by the cut Tit-bit: During Vietnam war, the infamous Ho Chi Minh trail(s) were modeled as a network and ‘costs’ were associated with cutting the trail at various points. The min cut then showed the set of trails that must be attacked to sever the flow of enemy troops and supplies for the lowest cost operation.
  • 41. Multi-stage Transshipment • Usage of multiple modes – Road, Rail, Air/Sea to deliver goods • Intel‟s suppliers in Taiwan provide ICs to be assembled in its plant in Arizona, USA
  • 42. Multi-stage Transshipment Rail Hub Vendor Plant Airport Airport Multi-Leg, Multi-Modal Shipments Intermodal (Air, Rail, Ship) Schedules drive drayage legs planning In-transit Optimization - Consolidation, Deconsolidation at transshipment points Documentation, Import/Export regulations constrain optimization options
  • 43. Minimal Set Covering • Given – A universal set U that has all the solutions, – A number of subsets Si • Find the smallest number (k) of subsets (Si) that cover all solutions in U • Example: Ensure coverage of resources to usage. Find the smallest number (k) of telephone switches (Subsets Si) required to cover usage needs of all customers (Universal set U) • Intersections can exist
  • 44. Maximum Set Packing • Given – A universal set U that has all the solutions, – A number of subsets Si • Find the biggest number (k) of disjoint subsets (Si) that cover all solutions in U. • Example: Allocate users to resources. Assign maximum number (k) of airline crews (Subsets Si) to available aircrafts (Universal set U) such that no crew is assigned to multiple flights
  • 45. Routing Heuristics and Optimization • Vehicle Routing Problem – Complicated and comprises of numerous practical constraints • Involves Order Consolidation, Mode Selection, Routing/Transshipments, Scheduling, Location windows and constraints, Carrier/Lane/Rate choices, Vehicle/Driver assignment, DOT regulations, Compatibilities, Execution Adaptability • “heuristics refers to experience-based techniques for problem solving. Heuristic methods are used to identify an optimal solution as rapidly as possible. Examples of this method include using a "rule of thumb", an educated guess, an intuitive judgment, orcommon sense.” http://en.wikipedia.org/wiki/Approximation_algorithms
  • 46. Consolidation-Centered Heuristic • Orders from the same origin and to the same destination can be combined to Bundle one Trip/Shipment. Mode selection is made. Orders • Create Multi-Stop trips/shipments by consolidating within mode [Courier, TruckLoad, LTL, Rail etc] Consolidate • Assign Best Carrier, Rate by Mode • Solve Vehicle Assignment problem for Truckload and LTL • Disband under-utilized trips/shipment and evaluate alternate options to route them or consolidate with other pre-existing trips Disband • Assign Best Carrier Rate. Solve Vehicle Assignment problem Underutilized
  • 47. Vehicle-Centric Routing • Pick each vehicle at its domicile location and start packing them up with “similar” groups of orders Pack orders • Assign Drivers into vehicles • Pick Orders that remain unscheduled and schedule them on existing trucks. If necessary swap out lower-value orders for higher priority order scheduling Solve • Arrange Spot Carriers for remaining orders Remnants • Arrange LTL, Parcel Modes
  • 48. Case Study – Math Modelling • Problem Statement – A small Warehouse location has the following constraints – The location is open 10:00 AM - 5:00 PM Mon – It can accommodate only 2 Trucks every hour – It can only serve 2000 KG of material each hour • Given: – 10 Trips picking up goods from the warehouse, each with different potential start times and corresponding costs. Each trip carriers 500 KG • Objective: – Date/Time Schedule the 10 trips with the lowest overall cost such that all location constraints are honored
  • 49. Objective Function • Minimize total cost of solution Minimize obj: 1000 x1 + 1234 x2 + 1343 x3 ….+ 2123 x10 + …. [Cost of unique Trip and Start Time combination] [All variables are made linear: 0 ≤ xi ≤ 1. Fractional results are converted to its closest integer{0,1}. This makes the problem easier to solve. This is called Linear Programming (LP) Relaxation.] • Add Above (50,000 - Soft) and Below (3,000 - Soft) Target Penalty variables 3000 x221 + 50000 x222 + 3000 x223 + 50000 x224 +…… * Integer programs are complicated to solve. Linear programs can be solved in polynomial time
  • 50. Trip Constraints • A trip can only start at one of its possible start times Subject To C1: x1 + x21 + x33 + x112 = 1 [x1, x21, x33 and x112 represent 4 different times trip can pickup at the location] C2: x2 + x22 + x34 + x 113 = 1 … …
  • 51. Capacity Constraints • Location can server two trips in each hour bucket • Location can serve trips totaling 2000 KG in each hour bucket C101: x2 + x26 + x32 + x64 + x76 =2 [Each constraint corresponds to a specific 1-hour bucket. Each of the variables correspond to a trip at a particular pickup time that falls in that one hour bucket. If that trip is selected, it contributes a trip count of 1 to the Bucket Capacity of 2 trips] C102: 500x1 + 500x13 + 500x55 + 500x84 + 500x96 =2000 [Each constraint corresponds to a specific 1-hour bucket. Each of the variables correspond to a trip at a particular pickup time that falls in that one hour bucket. If that trip is selected, it contributes 500 KG to the Bucket Capacity of 2000 KGS] … … * Concept of Slack variables to accommodate lesser quantity than capacity
  • 52. Balancing Constraints • To create a balanced workload and prevent peaks. Helps ramp-up and ramp-down labor resources C201: x187 – x188 – x189 + x190 >=0 [The difference between adjacent time bucket assignments should be kept low]. Creates a pattern such as this …. 2.5 2 1.5 1 Series1 0.5 0 9 10 11 12 1 2 3 4 5

Editor's Notes

  1. IntroduceVinodhSoundarajan, Guest Facult, helping Dr.TAS VijayaraghavanAcademics – NIT – Btech in CS, Masters in CS, MBA from Penn SateWorked in Logistics/SCM for over 9 years, designed/architected/built software solutions for worlds top Retail/Oil/FMCG/Govt verticals. Consulted with companies like Exxon, Walmart, TransCom, Kraft, Target, Kohls, Ross, Amazon, Lowes etc to address/work on their problemsIt is a very tough time – Friday Evening 6:30 PM. Everyone is probably tired after a long day and a long week. This session is going to discuss some very basic Network concepts. I will try my best to keep it interesting with titbits from across the world, but need your complete support & participation. If you feel drowsy or tired, just ask a question. I request each one of you to bring your experience into this session. Tell us about your experience on each topic at hand, lets discuss some of our common questions. Lets keep it very interactive.
  2. This is how we will cover the topics by session… Is a 5 minute break at the half-way mark to stretch and get some coffee etc useful?
  3. Broadly there are allocation, assignment, sequencing problems involved in logistics space. Assigning drivers to vehicles, vehicles to trips, carriers to trips. Sequencing pickups/deliveries, sequencing set of jobs, allocation of resources to users etc..Basis of “Pictorially” depicting states, sequences, transitions, cause and action, relationships etc. Its applicability is anywhere each of the action nouns come into picture- Broad based relevance. Graphs are very useful when the problem get bigger than our mind can handle, but still small enough to visualize. However, modeling a problem as a graph will help us formulate them mathematically and choose solution from the myriad available options. We will discuss some problems, their business relevance, modeling them as graphs, further refinement into Math models and way of solving these Math problems, resulting in reverse engineering the solution to address the business problem
  4. Cable TV lines, LAN, WAN network. You can even try it while shopping in a mall/supermarket  Discuss nodes, edges, weight etc !!!Any examples from the audience??
  5. We always do this “mentally” especially while driving. We often do this in malls etc, when we know our destination… Today, we will show two algorithms to do this efficiently. Both of them show the progress/analysis pictoriall via graphs. The second one, Gloyd algorithm also shows I through usage of matrices.Does everyone remember the famous Matrix Addition, Subtraction, Multiplication, not the MATRIX movie with Keanu Reaves !!!!!
  6. You will notice the usage of set theory to keep track of nodes traversed.
  7. Dynamic Programming, Simulated Annealing, Linear Programming, Mixed Integer Programming, Constraint based programming, Column generation etc are numerous ways to solve “combinatorial problems”. Stochastic problems require probabilistics reasoning.Dynamic Programming is solved using branch and bound method. It is often represented as a binary Tree. Binary Tree is a Tree as discussed earlier but has maximum of two children edges out of each node. The concept of branching is merely searching from a solution space. The concept of bounding is constricting the solution upper and lower bounds given the new information. The program methodology is to traverse through the tree looking for continuous improvement of solution. Backtracking and recursion are involved. Ex: Time window calculations during scheduling of trips- Start time, end time, DOT etc…
  8. Deviate into Linear Programming, Linear Equations and InequationAx+by<=c. How do we convert this inequation into equation (using slack variable)Why is linear equation easier to solve. Solving 2/3 variable equations manually, butGraphical picturization of linear equations. X-y-z axis, lines representing equations. Maxima/minima at the nodes. Traverse through edges towards the right solution.Linear Relaxation concept. Integer solutions (0,1,2,3,…) are discrete points in solutions space. Finding the right answer exhaustively for each integer solution is impossible. By “relaxing” the integer solution space into a linear/continuous space, these problems can be modelled as linear/fractional solutions and solved as Linear Programming. LP has well-defined solution approaches. Once the results are obtained, fractional answers can be rounded off to the nearest integer to get close to optimal answer…