Week 10: Transportation, Transshipment & Assignment

This week’s big question: you have factories that can supply goods and stores that demand them, and a different cost to ship along every route. Which shipping plan meets all the demand at the lowest total cost? A shipping grid turns that question into a linear program you can build and check.

Monday starts with a plant-to-store shipping company and its vehicle purchase. On Wednesday, we use the same network arithmetic for Grubhub robot delivery on the IU Bloomington campus: meal orders from pickup points to residence halls, a possible transfer point, and robots assigned to individual runs. The requirements still come before Solver, but the quantities and units change with the decision.

Before the week

Read: Taylor, Introduction to Management Science (13e), Chapter 6, pp. 261–279, then Chapter 5, pp. 208–220. Chapter 6 carries Monday’s model and Wednesday’s two special cases; Chapter 5 carries Monday’s whole-number section. Both chapters demonstrate two software packages this course does not use, so the real load is about twenty pages. The chapter PDFs are in Canvas Files.

Pages Section This week
261–264 The Transportation Model Read. Balanced first, then unbalanced (p. 263), which the take-home needs
264–269 Computer Solution of a Transportation Problem Read the Excel pages, 264–266. Skip Excel QM (p. 266) and QM for Windows (p. 268)
269–274 The Transshipment Model Read. Wednesday: the flow-balance constraint at a hub
274–279 The Assignment Model Read pp. 274–276. Skip Excel QM (p. 276) and QM for Windows after it
208–211 Chapter 5: Integer Programming Models Read. Total, 0–1, and mixed models, one example each
211–213 Integer Programming Graphical Solution Read. Why rounding the LP answer fails, on a picture
213–220 Computer Solution of Integer Programming Problems Skim the Excel pages (213–214, 218–220) for the int and bin constraints; skip QM

Stop where Chapter 6’s Summary begins on p. 279, and at p. 220 in Chapter 5.

Then the warm-up self-check, on supply, demand, and reading a cost matrix:

Session 1: Mon, Oct 26 · Transportation basics and the rounding check

We start with a 30-minute instructor lesson on the shipping grid and why rounding a vehicle purchase can fail. The TA then facilitates 35 minutes of group practice. Photograph your attempt during the next two minutes; the instructor leads the final eight-minute walkthrough.

🧩 Puzzle

One company, two plants, two stores. Plant A can ship 120 units and Plant B can ship 80 (total supply 200). Store 1 needs 100 and Store 2 needs 100 (total demand 200, so the problem is balanced). Shipping costs per unit are: A→Store 1 = \$8, A→Store 2 = \$6, B→Store 1 = \$5, B→Store 2 = \$9. What shipping plan meets every store’s demand at the minimum total cost?

Build the skill 1: set up the transportation grid

First put the brief into a grid. Each inside cell is a cost per unit, not a quantity to ship.

Cost per unit Store 1 Store 2 Supply
Plant A 8 dollars 6 dollars 120 units
Plant B 5 dollars 9 dollars 80 units
Demand 100 units 100 units 200 units

Build a feasible plan before pricing it. Try sending 60 units from A to Store 1. A has 60 left for Store 2; Store 1 still needs 40 from B; B then has 40 left for Store 2. Every row and column now balances.

Shipment quantity Store 1 Store 2 Row check
Plant A 60 60 \(60+60=120\)
Plant B 40 40 \(40+40=80\)
Column check \(60+40=100\) \(60+40=100\) all demand met

Price each route using its own cell: \(60(8)+60(6)+40(5)+40(9)=1{,}400\) dollars. This plan works; optimization will ask whether another balanced grid costs less.

A transportation model has a set of sources (each with a fixed supply), a set of destinations (each with a fixed demand), and a unit cost to ship along every source→destination route. The decision variables are the shipment quantities \(x_{ij}\), units sent from source \(i\) to destination \(j\). The matching \(c_{ij}\) is the cost in dollars to ship one unit on that route. Multiplying cost per unit by units gives the route’s cost; adding over every source and destination gives total cost \(\sum_{i}\sum_{j} c_{ij}\,x_{ij}\). Minimize that total while requiring every source to ship its supply and every destination to receive its demand.

When total supply equals total demand the problem is balanced, and every unit shipped out arrives somewhere. The widget opens on a plan that sends 60 units down the Plant A→Store 1 route, at a cost of \$1,400. Drag the slider to choose how much travels on that route and watch every other route adjust automatically, then hit “Least cost”:

Use Check a value at 20, 60, and 100. Predict which route is empty at each endpoint, then check the cost. Why can this free route go neither below 20 nor above 100?

The model, written out

On the puzzle’s numbers the grid is four variables and four equalities:

Ingredient In symbols From the brief
Decision variables \(x_{A1}, x_{A2}, x_{B1}, x_{B2}\) units on each of the four routes
Objective minimize \(8x_{A1} + 6x_{A2} + 5x_{B1} + 9x_{B2}\) cost grid times shipment grid
Supply rows \(x_{A1} + x_{A2} = 120\); \(x_{B1} + x_{B2} = 80\) everything each plant ships
Demand columns \(x_{A1} + x_{B1} = 100\); \(x_{A2} + x_{B2} = 100\) everything each store receives

Write \(s_i\) for source \(i\)’s supply and \(d_j\) for destination \(j\)’s demand, both in units. The two summation signs below mean “add across the destinations, then across the sources.” The full balanced model collects the same cost calculation and row and column checks:

\[\begin{aligned} \text{Minimize } &\sum_{i}\sum_{j} c_{ij}\,x_{ij} \\ \text{subject to } &\sum_{j} x_{ij} = s_i && (\text{each source } i), \\ &\sum_{i} x_{ij} = d_j && (\text{each destination } j), \\ &x_{ij} \ge 0. \end{aligned}\]

One supply equality per source row (“everything Plant \(i\) ships sums to its supply \(s_i\)”), one demand equality per destination column (“everything arriving at store \(j\) sums to its demand \(d_j\)”), and shipments can’t go negative. That is the whole model, Solver just searches the \(x_{ij}\) for the cheapest combination that satisfies all the equalities at once.

In Excel, keep a fixed cost grid and a separate, equally sized shipment grid, with the same row and column order. One SUMPRODUCT of those grids is the total-cost cell. Put SUM formulas beside the shipment rows and below the shipment columns. In Solver, minimize the total-cost cell by changing the shipment grid, constrain those sums to their supplies and demands, require nonnegative shipments, and choose Simplex LP. Check the returned row and column totals before reading the cost.

Build the skill 2: one degree of freedom, so trade cheap routes against dear ones

Notice you only got to choose one number. With 2 sources and 2 destinations there are four routes, but the supply and demand constraints lock down the other three the moment you fix the first. A balanced 2×2 problem has exactly one degree of freedom. Call the units on Plant A→Store 1 \(t\) and watch the constraints force the rest. Row A ships 120, so A→Store 2 is \(120 - t\). Column 1 takes 100, so B→Store 1 is \(100 - t\). Row B ships 80, so B→Store 2 is \(80 - (100 - t) = t - 20\). The last column then totals \(120-t+t-20=100\) automatically: its equation checks the plan but adds no new restriction.

Every shipment must be nonnegative. The four routes require \(t\ge0\), \(t\le120\), \(t\le100\) and \(t\ge20\), respectively. Together they leave \(20\le t\le100\). Add the four route costs to price any plan in that range:

\[8t + 6(120 - t) + 5(100 - t) + 9(t - 20) = 6t + 1{,}040 ,\]

a straight line rising \$6 for every extra unit on A→Store 1. Increasing \(t\) by one adds a unit to A→Store 1 and B→Store 2, costing \(8+9=17\) dollars, and removes a unit from A→Store 2 and B→Store 1, saving \(6+5=11\) dollars. That coordinated change costs \(17-11=6\) dollars while preserving every total. So the cheapest plan uses the smallest feasible \(t\). The floor is \(t = 20\): any lower and B→Store 2 goes negative.

At \(t=20\), fill in the shipping plan one step at a time:

  1. Plant A sends 20 units to Store 1. This is the shipment that \(t\) represents.
  2. Plant B sends 80 units to Store 1. Store 1 needs 100 units, so the 20 from Plant A leave \(100-20=80\) to come from Plant B. That uses Plant B’s entire supply.
  3. Plant A sends its remaining 100 units to Store 2. It started with 120 and sent 20 to Store 1, leaving \(120-20=100\). This meets all of Store 2’s demand. Plant B sends nothing to Store 2.

Price the three shipments to check the total: \(20(8)+80(5)+100(6)=1{,}160\) dollars.

Build the skill 3: when the answer has to be a whole number

Look again at the best plan. Every shipment is a whole number even though we allowed fractions. On the 2×2 you can see why: the free number \(t\) is legal from 20 (where B→Store 2 hits zero) to 100 (where B→Store 1 hits zero), both ends are whole because they came from whole supplies and demands (\(100 - 80 = 20\), and 100), and the best plan sits at an end. The structure gives you integers at an optimal corner. Fractional plans between the corners are still feasible.

Beyond the book: the standard transportation model has a whole-number optimal corner when supplies and demands are whole numbers. This property also holds for the standard transshipment and assignment models. Extra constraints can remove that guarantee; “it uses Solver” is not enough.

The company is also buying vehicles for a possible expansion. This is a separate capacity decision: maximize units carried per month, rather than minimize the bill for the 200-unit shipment. A box truck costs \$60,000, needs 1 driver, and moves 5,000 units a month. A cargo van costs \$40,000 and runs two shifts, so it needs 2 drivers, and moves 4,000. There is \$240,000 to spend and 6 drivers to assign. Let \(x\) count box trucks and \(y\) count cargo vans. For example, three trucks and one van cost \(3(60{,}000)+40{,}000=220{,}000\) dollars, use \(3(1)+2=5\) drivers, and carry \(3(5{,}000)+4{,}000=19{,}000\) units a month. Each limit is a separate check. Divide the dollar figures by 10,000 and the capacity figures by 1,000 to write that same arithmetic compactly:

\[\text{Maximize } 5x + 4y \quad\text{s.t.}\quad 6x + 4y \le 24 \ (\text{budget}),\quad x + 2y \le 6 \ (\text{drivers}),\quad x, y \ge 0 .\]

The objective counts thousands of units per month; the first constraint counts \$10,000 units; the second counts drivers. For now, allow fractional vehicles and solve the resulting LP: draw the two lines, shade what survives both, and go to a corner. The budget line runs from \((4, 0)\), four box trucks and nothing else, to \((0, 6)\); the driver line from \((0, 3)\), three vans using every driver, to \((6, 0)\). At their crossing, both limits are equalities. Double the driver equation to get \(2x+4y=12\), then subtract it from \(6x+4y=24\): \(4x=12\), so \(x=3\). Substitute back into \(x+2y=6\) to get \(y=1.5\). That corner moves \(5(3)+4(1.5)=21\) thousand units a month. There is no such thing as half a van. Solving the problem while ignoring the whole-number requirement is called the LP relaxation, and its answer is a ceiling: every feasible whole-number plan is also allowed in the relaxation, so none can beat the relaxation’s best value. The other corners, \((0,0)\), \((4,0)\) and \((0,3)\), carry 0, 20 and 12 thousand units a month, confirming that 21 is the relaxed maximum.

Every dot below is a whole-number plan that fits both limits. Start with LP optimum, then compare Round it (nearest whole numbers) and Round down. Read the budget and driver checks below the graph. Use Check plan to test your own mix before revealing Integer optimum.

Rounding up to \((3, 2)\) breaks both constraints at once: \$260,000 against a \$240,000 budget, and 7 drivers out of 6. Rounding down to \((3, 1)\) is affordable at \$220,000 and moves 19,000 units a month, which is legal but not the best you can do. The real optimum is \((4, 0)\): four box trucks and no vans at all, spending the \$240,000 exactly and moving 20,000 units a month.

You can check the whole-number maximum without guessing. With 0, 1, 2 or 3 vans, the most trucks that fit both limits are 4, 3, 2 or 0, respectively. Those plans carry 20, 19, 18 or 12 thousand units a month. More than three vans exceed the driver limit. The best is therefore four trucks and no vans.

The whole-number answer uses a different mix from either rounded plan. On Wednesday we distinguish integer-model types and add the whole-number restrictions in Solver. Today’s handout uses the same check: test both limits and compare feasible whole-number plans.

In practice: check the whole plan

  • A cheap route is only part of a plan. Changing one shipment forces changes elsewhere. Price all affected routes and check every row and column, rather than assigning each plant its cheapest store.
  • Keep the quantity and its unit together. A route cost is dollars per unit; a shipment is units; their product is dollars. The vehicle problem instead scores capacity in thousands of units per month.
  • Check feasibility before comparing scores. A rounded purchase that exceeds either limit cannot compete, however much capacity its objective reports.

Back to the puzzle

The minimum-cost plan ships 20 on Plant A→Store 1 (so A→Store 2 = 100, B→Store 1 = 80, B→Store 2 = 0), for a total cost of \$1,160, the lowest the slider can reach. Check it: \(20(8) + 100(6) + 80(5) + 0(9) = 160 + 600 + 400 + 0 = 1{,}160\). The intuition pays off: cheap B→Store 1 runs flat out, expensive B→Store 2 carries nothing, and Plant A quietly covers what’s left. Wednesday applies the same network arithmetic to Grubhub robot deliveries on campus: whether a transfer point can improve a 200-order plan, and which robot should take each residence-hall run.

In-class group practice (wrap-up)

To close Session 1, find a low-cost shipping plan and compare whole-number vehicle plans by hand in your group.

Write every member’s name on the sheet. You have 35 minutes with the TA for the practice, then two minutes to photograph your group’s own attempt before the solutions are shown. One member uploads the photo to Canvas by the end of class; participation credit is for attempting the work.

The instructor uses the final eight minutes to demonstrate the handout’s method, check the main results with units, and explain a common mistake. This demonstration closes the session.

Session 2: Wed, Oct 28 · Robot delivery networks and assignment

🧩 Puzzle

IU Dining’s Grubhub service sends food by Avride robots across the Bloomington campus. Our pickup points are the Indiana Memorial Union (IMU) and Bookmarket in Wells Library. For this classroom model, meals are interchangeable standard orders. The capacities, route costs, times, and proposed transfer point below are hypothetical, not Grubhub operating data or customer fees.

One campus operation, two decisions. Over a hypothetical day, the IMU can dispatch up to 120 orders and Bookmarket up to 100; Teter Quad and Wright Quad each need 100. A proposed staffed point would let a robot hand off a sealed order to another robot. Should orders go direct, through the point, or both? In a separate short dispatch window, two robots must cover one run to Teter and one to Wright. Which pairing uses fewer robot-minutes?

The first decision routes orders and minimizes dollars. The second assigns robots to individual runs and minimizes minutes. Each needs its own cost grid.

Build the skill 1: transshipment through a transfer point

A transshipment model adds an intermediate node to a transportation network. Here that node is a proposed staffed handoff point, or hub. A robot arrives with a sealed order; a worker scans it and loads it into another robot for the last leg. The order keeps its destination and is counted once on each leg. The operator would need to authorize the handoff and keep the customer’s order tracking linked to the second robot; assume both are in place for this exercise. An order may go pickup → hall directly or pickup → transfer point → hall. Because the worker neither creates nor fulfills an order, the point’s flow-conservation check is orders in = orders out.

The pickups have capacity for 120 IMU orders and 100 Bookmarket orders, while the halls need 100 each. Those 220 available slots exceed demand by 20. A pickup may dispatch fewer orders than its capacity; both halls must receive their full demand. Keep these numbers and route costs fixed while changing which routes are available. The hypothetical \$2 inbound cost includes the per-order handoff. Assume the point can handle the chosen volume; its fixed staffing and setup cost is considered after the routing comparison.

1. Keep the direct routes visible. Their labels are hypothetical dollars per order. These are network diagrams, not campus maps: arrows show order flows, not walkway paths or distances.

Four direct routes from IMU and Bookmarket pickups to Teter and Wright

2. Add the transfer point and four red legs. Each order routed through it pays for an inbound and an outbound leg. Direct routes remain available.

A worker transfers sealed orders between robots at the staffed point; red legs from IMU and Bookmarket arrive there, then red legs go to Teter and Wright

Start with two pure plans. Direct only sends 100 Bookmarket orders to Teter and 100 IMU orders to Wright. Its cost is \(100(5)+100(6)=1{,}100\) dollars, with 20 IMU slots unused. For all through the transfer point, choose 100 orders from each pickup. Both inbound legs cost \$2 per order, so this choice leaves the same 20 IMU slots unused and costs

\[100(2)+100(2)+100(4)+100(3)=200+200+400+300=1{,}100.\]

The point receives all 200 orders and sends all 200 onward:

\[\underbrace{100+100}_{\text{in}}=\underbrace{100+100}_{\text{out}}=200.\]

At a pure transfer node, the compact check is \(\text{inflow}=\text{outflow}\).

With direct and transfer routes both open, compare each pair’s two possible costs. The proposed point has no throughput limit, so an order can take whichever path costs less:

Pickup → hall Direct Via transfer point Cheaper
IMU → Teter \$8 \$2 + \$4 = \$6 transfer
IMU → Wright \$6 \$2 + \$3 = \$5 transfer
Bookmarket → Teter \$5 \$2 + \$4 = \$6 direct
Bookmarket → Wright \$9 \$2 + \$3 = \$5 transfer

Bookmarket can fill all 100 Teter orders directly for \$5 each. Sending an IMU order to Teter through the point would cost \$6, so using Bookmarket’s capacity there saves \$1 per order. The 100 Wright orders can then come from the IMU through the point for \$5 each. This uses 100 of the IMU’s 120 available slots. The mixed plan’s bill is

\[100(5)+100(2)+100(3)=500+200+300=1{,}000.\]

3. Put those flows on the network. Red marks the transfer legs; black marks Bookmarket’s direct route to Teter. Each route label shows orders times dollars per order.

Staff hand off 100 IMU orders at the transfer point and send them on to Wright; Bookmarket sends 100 orders directly to Teter, and 20 IMU dispatch slots stay unused

The chosen point receives 100 orders and dispatches 100. Let \(H\) name the proposed transfer point. Name the four transfer-leg flows: \(x_{\mathrm{IMU},H}\) and \(x_{\mathrm{Bookmarket},H}\) enter from the two pickups; \(x_{H,\mathrm{Teter}}\) and \(x_{H,\mathrm{Wright}}\) leave for the halls. Its balance equation is

\[x_{\mathrm{IMU},H}+x_{\mathrm{Bookmarket},H}-x_{H,\mathrm{Teter}}-x_{H,\mathrm{Wright}}=0.\]

The plan makes this \(100+0-0-100=0\). In Solver, put inbound minus outbound in one formula cell and constrain it to zero. It must read the four changing leg quantities, so it updates as Solver tries plans.

Keep four direct-route variables and add four transfer-leg variables. For example, \(x_{\mathrm{IMU},\mathrm{Teter}}\) counts orders sent directly from the IMU to Teter; \(x_{\mathrm{IMU},H}\) counts IMU orders entering the transfer point.

Check Formula
IMU dispatches at most 120 \(x_{\mathrm{IMU},\mathrm{Teter}}+x_{\mathrm{IMU},\mathrm{Wright}}+x_{\mathrm{IMU},H}\le120\)
Bookmarket dispatches at most 100 \(x_{\mathrm{Bookmarket},\mathrm{Teter}}+x_{\mathrm{Bookmarket},\mathrm{Wright}}+x_{\mathrm{Bookmarket},H}\le100\)
Teter receives 100 \(x_{\mathrm{IMU},\mathrm{Teter}}+x_{\mathrm{Bookmarket},\mathrm{Teter}}+x_{H,\mathrm{Teter}}=100\)
Wright receives 100 \(x_{\mathrm{IMU},\mathrm{Wright}}+x_{\mathrm{Bookmarket},\mathrm{Wright}}+x_{H,\mathrm{Wright}}=100\)
Transfer point keeps nothing \(x_{\mathrm{IMU},H}+x_{\mathrm{Bookmarket},H}-x_{H,\mathrm{Teter}}-x_{H,\mathrm{Wright}}=0\)

Minimize the sum of leg cost times orders on that leg over all eight legs, with every flow nonnegative. To compare the three networks in one model, constrain unavailable legs to zero flow: all transfer legs for direct only, all direct routes for transfer only, and neither set for both available. Setting a route’s cost to zero would make it free, not close it.

Why include the transfer-point equation? Pickup rows are capacity limits, so leaving the point’s balance out would let Solver dispatch no pickup orders while claiming that 100 orders appeared at the point for Teter and another 100 for Wright. That false plan costs \(100(4)+100(3)=700\) dollars. No meal arrived to support either delivery. Requiring orders in = orders out rules it out; the valid minimum is \$1,000.

The mixed plan saves \(1{,}100-1{,}000=100\) dollars against direct only. Bookmarket still serves Teter directly because \$5 beats \$2 + \$4; the point saves \$1 on each of the 100 IMU-to-Wright orders. Opening it would reduce total cost only if its fixed staffing and setup cost were under \$100 for this hypothetical day; at \$100 the plans tie. Its throughput would need to cover the chosen 100 orders. Each additional transfer point needs its own inflow-equals-outflow check.

Build the skill 2: assignment of robots to runs

Now choose robots for two individual delivery runs. The Teter order starts at Bookmarket; the Wright order has already arrived at the staffed handoff point and starts its last leg there. Each time includes travel from a robot’s current location to that order’s pickup and then to the drop-off. This dispatch decision is measured in robot-minutes; do not add its minutes to the 200-order routing bill. Each robot takes one run in this short window and can take other runs later:

Minutes for one run Teter run Wright run
Robot 1 7 9
Robot 2 8 5

An assignment selects one cell in each robot row and one in each run column. The widget marks a selected cell as 1 and the others as 0. Select Robot 1 → Teter. Which cell remains for Robot 2? Then use Clear choices and try the crossed pairing.

Robot 1 to Teter and Robot 2 to Wright uses \(7+5=12\) robot-minutes. The crossed pairing uses \(9+8=17\). A chosen cell blocks its row and column because one robot takes one run and one run gets one robot.

The assignment model treats each robot as a source with supply 1 and each run as a destination with demand 1. Let xᵢⱼ ∈ {0, 1} equal 1 if robot \(i\) takes run \(j\) and 0 otherwise:

\[\sum_j x_{ij}=1\quad(\text{each robot takes one run}),\qquad \sum_i x_{ij}=1\quad(\text{each run gets one robot}).\]

The first sum sets each robot’s row total to 1; the second sets each run’s column total to 1. In the 12-minute pairing, \(x_{11}=1\) forces \(x_{12}=0\), \(x_{21}=0\), and \(x_{22}=1\). Use the time table as a fixed cost grid and a separate 0/1 grid as Solver’s changing cells. SUMPRODUCT gives total robot-minutes. With nonnegative cells and row and column sums of 1, the standard assignment LP has a 0/1 optimal corner. Simplex LP can find it without bin; additional scheduling rules can remove that guarantee. Robot-minutes are the sum of work, not the elapsed time if runs happen at once.

Four robots and four runs

In a later dispatch window, add a run from the IMU to Eigenmann Hall and an inbound run from the IMU to the proposed transfer point. The Eigenmann order is additional to the two-hall routing comparison. The inbound run carries a different order from the Wright run; it ends when the worker receives the order, and another robot takes it onward later.

All four runs can therefore be assigned in this window. They are four representative trips, not all 200 orders in the routing plan. The original two runs keep their times in the top-left corner:

Minutes Teter run Wright run Eigenmann run IMU→H run
Robot 1 7 9 5 3
Robot 2 8 5 4 8
Robot 3 12 12 7 5
Robot 4 12 11 5 8

Press Choose cheapest remaining four times. Each choice removes one robot and one run. Record the total, use Clear choices to find a better matching, and press Least total time to check it.

The cheapest-cell rule assigns Robot 1 to the transfer run (3 minutes), Robot 2 to Eigenmann (4), Robot 4 to Wright (11), and Robot 3 to Teter (12): 30 robot-minutes. The best matching instead assigns Robot 1 to Teter (7), Robot 2 to Wright (5), Robot 3 to the inbound transfer run (5), and Robot 4 to Eigenmann (5): 22 robot-minutes. The first 3-minute choice removes an option another robot needs.

Four robots have \(4!=4\times3\times2\times1=24\) complete matchings; the exclamation mark means factorial. Ten robots and ten runs have \(10!=3{,}628{,}800\). Solver searches the assignment model without listing them by hand.

In practice: adapt the model to the decision

  • Match units before balancing: The 220 available pickup slots and the 200 hall deliveries both count orders, so the surplus is 20 orders. Compare supply and demand in the same unit before deciding whether a dummy is needed or how large it should be.
  • Unused pickup capacity: The chosen plan dispatches 100 of the IMU’s 120 possible orders and all 100 Bookmarket orders. Its 20 idle IMU slots can appear as a dummy destination in a transportation grid with equality rows and columns. No order travels to that dummy. If demand exceeded pickup capacity instead, a dummy source would record unserved orders. A zero dummy cost assumes no penalty for the unused capacity or unmet demand.
  • Whole decisions: With whole totals, the standard transportation and transshipment models have a whole-number optimal corner; the standard assignment model has a 0/1 optimal corner. Buying extra robots requires an integer count (int in Solver). Deciding whether to open the proposed point requires a binary choice (bin), a fixed cost, and a constraint that blocks its flow when closed. A model with all whole variables is total integer; one with all yes/no variables is 0–1; one mixing whole and continuous variables is mixed integer. Solver’s branch-and-bound method tests whole choices by solving relaxed LPs and splitting a fractional choice into branches.
  • An unfilled run: One more run than robots needs a dummy robot, whose selected run remains unfilled. One more robot than runs needs a dummy run, leaving that robot idle. A zero dummy cost assumes no penalty for the gap; it does not cover a required run.
  • Check what each cost includes. The transfer comparison includes both per-order legs but no fixed opening cost. A per-trip charge or throughput limit would also change the model.
  • Leave out a cost only when it stays the same in every plan. A hypothetical insurance payment owed no matter which campus routes are used cannot change the cheapest routing plan. Staffing the proposed point is paid only when it opens, so that cost does affect the opening decision.
  • Keep units attached to the decision. Dollars compare order-routing plans; minutes compare robot assignments. Neither total alone says how long a customer waits.

Three models, one Solver pattern

  Transportation Transshipment Assignment
Variables orders on each pickup-to-hall route orders on every leg, including the transfer point 0 or 1 for each robot-run pair
Constraints here, pickup rows at most capacity; hall columns equal demand the same, plus in = out at the point every row and column = 1
Objective dollars per order × orders, summed the same over every leg minutes per run × choices, summed
Whole units an integer optimal corner with whole totals the same with whole capacities a 0/1 optimal corner

A walkway closure removes a robot route or fixes its flow at zero. A high cost does not close it.

Solve the campus examples in Excel Solver

Use these two small worksheets to practise the models before working on the take-home’s different cases. If Solver is not yet enabled, follow Week 8’s illustrated setup guide. Each model needs its own worksheet and Solver settings. Click Copy for Excel, then paste into A1 on a blank sheet, or download the ungraded two-sheet demo workbook. The copied formulas are live; the relationship words in the tables are reminders, so enter the constraints in Solver too.

1. Route orders through the proposed point

The first eight rows are the changing flows and their per-order costs. Rows 11–15 are the checks that must recalculate whenever a flow changes. The two pickup totals are capacity limits, both hall totals must equal demand, and the last row prevents an empty point from supplying orders.

  A B C D
1 IMU → Teter, direct 8   =B1*C1
2 IMU → Wright, direct 6   =B2*C2
3 Bookmarket → Teter, direct 5   =B3*C3
4 Bookmarket → Wright, direct 9   =B4*C4
5 IMU → H 2   =B5*C5
6 Bookmarket → H 2   =B6*C6
7 H → Teter 4   =B7*C7
8 H → Wright 3   =B8*C8
9 Total routing cost     =SUM(D1:D8)
10        
11 IMU dispatched =C1+C2+C5 <= 120
12 Bookmarket dispatched =C3+C4+C6 <= 100
13 Teter received =C1+C3+C7 equal to 100
14 Wright received =C2+C4+C8 equal to 100
15 Point: in minus out =C5+C6-C7-C8 equal to 0

First test a feasible plan: put 100 in C3, C5, and C8 and zero in the other five flow cells. The cost in D9 should be \$1,000. The pickup checks in B11:B12 should read 100, 100; the hall checks in B13:B14 should read 100, 100; and B15 must be 0. Then try putting 100 only in C7 and C8. D9 falls to \$700, but B15 becomes −200: 200 orders leave a point that received none. This is why the balance row belongs in Solver.

Clear C1:C8 after the formula checks. Search for Solver (use Help search on a Mac), then enter these settings:

Solver field Routing model
Set Objective D9; choose Min
By Changing Variable Cells C1:C8
Subject to the Constraints B11:B12 <= D11:D12; B13:B15 = D13:D15
Other settings Make Unconstrained Variables Non-Negative; Simplex LP
Drawn Solver Parameters dialog: minimize D9 by changing C1:C8, limit pickup totals in B11:B12, require hall totals and point balance in B13:B15, and use nonnegative variables with Simplex LP
Drawn Excel interface for this routing sheet. Excel's appearance may differ by version; the cell references and relationships are the same.

Select Solve, then Keep Solver Solution. The mixed solution puts 100 in C3, C5, and C8 and zero in the other flows: 100 Bookmarket orders go directly to Teter, and 100 IMU orders go through H to Wright, for \$1,000. To compare networks on the same demand, add C5:C8 = 0 for direct only (\$1,100), or remove that restriction and add C1:C4 = 0 for point only (\$1,100). Remove both restrictions for the mixed result. A zero flow closes a route; a zero cost would make it free.

2. Assign four robots to four runs

On another blank sheet, the upper grid holds the fixed minutes. Solver changes only the lower 4×4 choice grid. The row and column sums make each robot take one run and each run receive one robot.

  A B C D E F G
1 Minutes Teter Wright Eigenmann IMU→H run    
2 Robot 1 7 9 5 3    
3 Robot 2 8 5 4 8    
4 Robot 3 12 12 7 5    
5 Robot 4 12 11 5 8    
6              
7 Choices Teter Wright Eigenmann IMU→H run Row total Need
8 Robot 1         =SUM(B8:E8) 1
9 Robot 2         =SUM(B9:E9) 1
10 Robot 3         =SUM(B10:E10) 1
11 Robot 4         =SUM(B11:E11) 1
12              
13 Column total =SUM(B8:B11) =SUM(C8:C11) =SUM(D8:D11) =SUM(E8:E11)    
14 Need 1 1 1 1    
15              
16 Total robot-minutes =SUMPRODUCT(B2:E5,B8:E11)          

Test the best pairing by entering 1 in B8, C9, E10, and D11 and zero in the other choice cells. Every row total in F8:F11 and every column total in B13:E13 should be 1; B16 should be 22 robot-minutes. The greedy pairing instead puts 1 in E8, D9, B10, and C11, for 30. Clear B8:E11 before solving.

Solver field Assignment model
Set Objective B16; choose Min
By Changing Variable Cells B8:E11
Subject to the Constraints F8:F11 = G8:G11; B13:E13 = B14:E14
Other settings Make Unconstrained Variables Non-Negative; Simplex LP
Drawn Solver Parameters dialog: minimize B16 by changing B8:E11, require every robot row and run column to equal one, and use nonnegative variables with Simplex LP
Drawn Excel interface for the four-robot sheet. These two ranges enforce one robot per run and one run per robot.

Select Solve and Keep Solver Solution. The minimum is 22 robot-minutes: Robot 1→Teter, Robot 2→Wright, Robot 3→the inbound transfer run, and Robot 4→Eigenmann. This standard assignment LP has a 0/1 optimal corner, so you do not need bin for this grid. If you add extra scheduling rules, check again whether that guarantee still holds.

Back to the puzzle

For the 200 orders, Bookmarket sends 100 directly to Teter. The IMU sends 100 through the proposed transfer point and on to Wright, leaving 20 IMU slots unused. The point’s 100 orders in equal 100 out. The \$1,000 bill beats direct only and transfer only (\$1,100 each) on the same demands.

For the two individual runs, Robot 1 goes to Teter and Robot 2 to Wright, using 12 robot-minutes instead of 17. Four runs take 22 robot-minutes in the best matching, while the cheapest-cell rule uses 30. The transfer model needs an in-equals-out check; the assignment model needs one choice in every row and column.

After-class check

Questions spanning the transportation model, balancing with a dummy source/sink, whole-number decisions, transshipment hubs, and assignment as a 1-to-1 special case. Retry freely; nothing is submitted.

Weekly take-home (graded: submit on Canvas)

The one Excel workbook uses all three network models with the same Solver pattern:

  • Book distributor: depots count stock in pallets; zones order in cases. Convert the units, then represent the stock held back when supply and demand do not balance.
  • Library: match three auditors to three branches. Try the greedy shortcut, notice the collision, then build the 0/1 grid.
  • Food bank: write the cross-dock’s flow-balance condition. Solve direct only, dock only, and both available to see which network wins and which pantry stays direct.

Solver fills the shipment grids; the conversions, formulas, and repair are yours. Put three short responses and the required AI-use disclosure on the Free responses sheet. Upload the completed .xlsx on Canvas. That one file is your entire submission.