NivaarExam PrepOfficial exam papers ↗

23-Ind-A1 Operations Research · December 2013

Question 5 of 10: Integer Programming — AGV Round-Trip Routing

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

National Exams — December 2013 — 98-Ind-A1 Operations Research. Three-hour, open-book exam (any non-communicating calculator permitted); the paper totals 200 marks across 10 questions and only 100 marks are required, so a candidate would normally answer a subset — all ten are solved below for completeness.

Reference texts: Hillier & Lieberman, Introduction to Operations Research (11th ed., McGraw-Hill) — linear/integer programming, network optimization, dynamic programming, decision analysis and queueing theory; Nahmias, Production and Operations Analysis — inventory models with planned backorders.

Question 5: Integer Programming — AGV Round-Trip Routing (20 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. Mailroom $M=(0,0)$ and five departments $D_1(10,30)$, $D_2(10,50)$, $D_3(30,10)$, $D_4(40,40)$, $D_5(50,60)$; the AGV moves only along horizontal/vertical aisles, so travel distance between two points is rectilinear (Manhattan): $d(i,j)=|x_i-x_j|+|y_i-y_j|$.

Arc$d$ (m)Arc$d$ (m)Arc$d$ (m)
M–D140D1–D340D2–D550
M–D260D1–D440D3–D440
M–D340D1–D570D3–D570
M–D480D2–D360D4–D530
M–D5110D2–D440D1–D220

Find. An Integer Program whose optimal solution is the round-trip route (starting and ending at $M$, visiting each department exactly once) that minimizes total rectilinear travel. Do not solve.

Approach. This is a Traveling Salesman Problem on 6 nodes (mailroom + 5 departments) with rectilinear arc costs — formulate it with binary arc-selection variables, in/out degree-1 constraints at every node, and Miller–Tucker–Zemlin (MTZ) constraints to eliminate sub-tours.

M (0,0) D1 (10,30) D2 (10,50) D3 (30,10) D4 (40,40) D5 (50,60) AGV network (rectilinear aisles); dashed = one feasible tour, not necessarily optimal
Mailroom + 5 departments on the aisle grid; the dashed route is one feasible tour shown for illustration — the IP below is not solved for the optimal ordering.
  1. Nodes and arc costs. Nodes $N=\{0,1,\dots,5\}$ (0=mailroom, 1–5=departments); cost $d_{ij}$ = rectilinear distance between nodes $i,j$ (tabulated above).
  2. Decision variables. $x_{ij}\in\{0,1\}$ = 1 if the AGV travels directly from node $i$ to node $j$ ($i\ne j$); auxiliary continuous $u_i\ge0$ for $i=1,\dots,5$ (MTZ position/order variables, node 0 excluded).
  3. Degree constraints. Every node is entered once and left once: $$\sum_{j\ne i}x_{ij}=1\ \ \forall i\in N,\qquad \sum_{i\ne j}x_{ij}=1\ \ \forall j\in N.$$
  4. Sub-tour elimination (MTZ). Prevents the model from returning two or more disjoint mini-loops instead of one full circuit: $$u_i-u_j+5\,x_{ij}\le4,\qquad 1\le i\ne j\le5,\qquad 1\le u_i\le5.$$
  5. Objective. Minimize total rectilinear travel distance for the closed tour: $$\boxed{\min Z=\sum_{i\in N}\sum_{j\ne i}d_{ij}\,x_{ij}}$$ subject to Steps 3–4 and $x_{ij}\in\{0,1\}$.
ElementFormulation
Variables$x_{ij}\in\{0,1\}$ (6×5=30 arcs), $u_i\in[1,5]$ (5 MTZ variables)
Objective$\min\sum d_{ij}x_{ij}$, $d_{ij}$ rectilinear
Degree12 constraints (in=1, out=1 × 6 nodes)
Sub-tour elimination20 MTZ constraints, $1\le i\ne j\le5$