Lecture 4.3 Recap

4.3: Production-Inventory Planning: Single Product · ISE 754, Fall 2026 · in class 22 October 2026

A recap answers what students found most difficult in their pre-class review of the lecture, along with anything the instructor adds. Blue Lecture panels quote the lecture; orange Another view panels look at the same idea from another side.

Example 3(a), by hand

Asked in the review Lecture 4.3, Sec. 2

The questionWorking Example 3(a) by hand.

Lecture The example, and the method

“For the product of Fig. 1, made in two stages over three months, determine the production plan that minimizes total production and inventory cost, and the cost: by hand, and with Model 1 in Julia.”

“Determine the plan and its cost by hand, from the capacities and flow balance.”

“Model 2 is the flow balance of Sec. 2.2, node by node from the last, with one choice. At each node the flow out is already known: what goes on to the next stage, or to the demand at the last stage, plus the inventory carried into the next month. Production takes as much of it as the capacity allows, and the rest has to come in as inventory from the month before, which is then the inventory out of the node to its left. In month 1 the inventory coming in is the initial inventory, so production is the rest, which has to fit within the capacity. Fig. 4 draws the steps, and Table 1 lists them:”

The time-expanded network of Example 3: two rows of nodes, stage 1 above stage 2, and three columns, months 1 to 3. Production enters stage 1 from above with capacities 50, 0 and 50 at 200 dollars a ton; stage 1 feeds stage 2 with capacities 60, 0 and 0 at 800 dollars a ton; demand leaves stage 2 below, 20, 10 and 15. Inventory runs left to right at 5 dollars a ton-month at stage 1 and 25 at stage 2. Initial inventories are 0; final inventories are 35 at stage 1 and 0 at stage 2.
The lecture's Fig. 1. “The time-expanded network of a single product made in two stages over three monthly periods, with the data of Ex. 3.” Symbols are in black and their values in red.

Another view Work it node by node

Press Next to balance one node at a time in Model 2's order: the last stage first, and in each stage the last month first. Each flow found turns blue. The last step adds up the cost. Example 3(c), the lecture's second set of data, is the same procedure with capacity that binds.

StepNodeFlow outProductionInventory in
The steps so far, in the form of the lecture's Table 1.

Lecture The cost, and the one term most easily missed

\[\begin{aligned} \text{production:}\quad & 200\,(45 + 35) + 800\,(45) = 52{,}000 \\ \text{inventory:}\quad & 25\,(25 + 15) + 5\,(35) = 1{,}175 \\ \text{total:}\quad & 52{,}000 + 1{,}175 = 53{,}175 \end{aligned}\]

“The final inventory’s cost, \(5 \times 35\), is counted because the inventory sum of Eq. 1 runs to \(j = t + 1\).”

Example 5: a plan with setup costs, costed by hand

Asked in the review Lecture 4.3, Sec. 3

The questionExample 5, setup costs in manufacturing.

Lecture What a setup cost is, and its share of the inventory cost

“What takes the model from a linear program to a mixed-integer linear program is a setup cost in a period, assumed to be incurred in each period in which a resource produces: literally getting the machine up and running, for example, a cost independent of how much is produced but incurred every period.”

“The setup cost is allocated to the inventory cost at a stage by assumption (e) of Model 3. Each ton is charged a share of every setup it has passed through, the setup cost divided by the capacity per setup, added to the production cost of each stage up to the stage it is at before the carrying rate is applied:”

\[c_i^i = h \left[ \left( c_1^p + \frac{c_1^s}{u_1} \right) + \cdots + \left( c_i^p + \frac{c_i^s}{u_i} \right) \right]\]

Lecture Example 5(b): a given plan

Example 5 gives two stages that can make 40 and 80 tons a month at $200 and $800 a ton, with setups of $6,000 and $18,000 a month. Part (b) changes some of the data:

“Using some different data as noted below (otherwise, use the data given in Ex. 5) and only a three-month planning horizon, determine the total variable production, inventory, and setup cost over the horizon. The forecasted demand is 22, 3, and 33 tons per month. The product loses five percent of its value after one month. Each month, 20, 4, 40 and 25, 0, 37 tons, respectively, are produced at each stage. Currently, five tons of material is in storage at stage one and none at stage two; at the end of the planning period, seven tons of material should be in storage at stage one and four at stage two.”

“Going month by month, the inventory carried out of each node is what came in less what went on:”

Another view Cost the plan node by node

Here the production is given, in red, and the inventories are what to find. Press Next to balance one node at a time, month by month. At stage 1, what goes on is stage 2's production in the same month; at stage 2, it is the demand. Then check the end of the horizon against the statement, and add up the three costs. Change a production number below to see the check fail.

Month 1Month 2Month 3

Lecture The lecture's answer

“The final inventories come out at the 7 and 4 tons required, the Balance check of Lecture 1.2.”

\[\begin{aligned} \text{production:}\quad & 200\,(20 + 4 + 40) + 800\,(25 + 0 + 37) = 62{,}400 \\ \text{inventory:}\quad & 17.50\,(0 + 4 + 7) + 68.75\,(3 + 0 + 4) = 673.75 \\ \text{setups:}\quad & 6{,}000\,(3) + 18{,}000\,(2) = 54{,}000 \end{aligned}\]

Example 6: a truckload as a setup

Asked in the review Lecture 4.3, Sec. 3

The questionExample 6, a truckload treated as a setup cost.

Lecture Why a truck is a setup

“In some situations, though, the setup cost is nearly everything. A truckload is one: between two points, most of its cost is independent of the load carried, up to the truck’s maximum payload, which is why Ex. 6 treats a truck as a setup.”

“The plan has two stages. Stage 1 is the plant, which can produce any amount in a week at the product’s value, $25,000 a ton, with no setup cost. Stage 2 is the shipment by truckload, set up once for each truck sent, at one truck’s charge, with no cost per ton and a capacity per setup of the maximum payload; any number of trucks can be sent in a week. The inventory at Gainesville carries the product’s value plus the truckload charge per ton, assumption (e) of Model 3, which is Lecture 3.3’s allocated full-truckload rate, Ex. 1(h).”

“The truckload’s setup cost is one truck’s charge, $1,357.2, with no cost per ton, and its capacity per setup is the maximum payload, 6.11 tons.”

“At the higher value, inventory costs more to carry, so the shipments should be smaller and more frequent, and they are: 13 trucks of about 1.54 tons, one every 4.0 weeks, against minTLC’s 1.46 tons every 3.8 weeks.”

Example 6 ships Lecture 3.3's product, 20 tons a year, by truckload from Raleigh to Gainesville, planned week by week over a year with Model 3: (a) at $25,000 a ton, and (b) at $85,000 a ton.

Another view Move the product's value

Each value below is Example 6 solved again with Model 3, a year of weeks, at that value a ton, beside Lecture 3.3's minTLC on the same shipment. Every truck costs the same, so the plan trades fewer trucks against more inventory, and a ton's value decides the trade.

trucks in the year
tons a truck
weeks between trucks
truck charge a ton
holding a ton a week, at the plant

Why the inventory cost starts at period 2

Asked in the review Lecture 4.3, Sec. 2

The questionWhy Model 1's inventory cost is summed from period 2 to t + 1.

The fourth of the review's six questions: “Model 1’s inventory cost is summed from period 2 to period t + 1 rather than from period 1. Why?”

Lecture One end or the other, not both

\[\text{Minimize} \quad \sum_{i=1}^{m} \sum_{j=1}^{t} c_i^p\, x_{ij} + \sum_{i=1}^{m} \sum_{j=2}^{t+1} c_i^i\, y_{ij}\]

“In a rolling horizon, this month’s plan carries those four, and next month’s cuts off the first period, adds one at the end, and solves the same model again. With the cost counted every month, the inventory carried from one plan into the next would appear in both, as the final inventory of one and the initial inventory of the other, and over time the plans would show an inventory cost that is not actually incurred. Leaving out the cost of the initial inventory avoids that double counting. The final inventory could have been left out instead, and the initial included: one or the other, but not both.”

“The 10 tons on hand at the start add nothing to the cost, since their cost was incurred in the previous period and the inventory sum of Eq. 1 starts at \(j = 2\).”

The second paragraph is from Example 3(c), where stage 1 starts with 10 tons on hand.

Another view Add up Example 4's inventory both ways

Example 4 starts with 5 tons at stage 1 and 25 at stage 2. Its plan's inventory is below, each arc's tons and, in brackets, its cost at $12 and $46 a ton-month. Choose where the sum starts, and compare the total with the $134,300 the model reports.

Example 4's optimal inventory, the lecture's Code block 18. Shaded cells are in the sum.

What a setup cost changes about capacity

Asked in the review Lecture 4.3, Secs. 2 and 3

The questionWhat setup costs change about who decides when a stage produces.

The fifth: “In Sec. 2, the person running the model sets a stage’s capacity to zero in each period it is not available. What does Model 3, with setup costs, change about that decision?”

Lecture The model decides, and only a cost makes it

“Which periods to produce in is then determined by the model, through its indicator variables, rather than by the person running it, as the zero capacities of Sec. 2 required.”

“Without the setup cost. Take \(c_i^s = 0\) in Eq. 3. The indicator still gates the capacity, row (c), but nothing in the objective makes the model turn it off, so wherever a stage may be set up its capacity is there at no cost: the model is Model 1 with \(u_{ij} = u_i\bar{z}_{ij}\), and which periods are available is determined outside it, as in Sec. 2.”

“The setup cost is the natural element: it is what makes producing in a period cost something, and so what makes in which periods to produce a decision for the model.”

Another view Turn Example 5's setup costs up and down

Example 5 solved with Model 3 at multiples of its setup costs, $6,000 and $18,000, with every month available to both stages. Nobody sets a zero: a blank is a month the model chose not to set the stage up. Start at none and step up: from about a tenth of Example 5's setup costs on, the model settles on Example 5's plan, and raising them further changes only what the plan costs.

Tons produced123456
The plan Model 3 finds at the setup costs chosen above. Months 1 to 6.

At 1×, this is Example 5's plan, and it is the very plan Example 4 found with its maintenance zeros typed in, stage 1 down in month 5 and stage 2 in months 3 and 5. The two examples share their stages, capacities, demand and inventories; in one the zeros were given, and in the other the setup costs made the model choose them.

How far ahead an outage makes a plan look

Asked in the review Lecture 4.3, Sec. 5

The questionHow the horizon a plan needs to see an outage grows with utilization.

The sixth: “By Eq. 5, how does the horizon a plan needs to see an outage change as the utilization of the resource before the outage rises, and why?”

Lecture Building ahead on idle capacity

“The plan builds the inventory for it on the idle capacity of the periods before it: counting back from the outage, each period’s idle capacity is added until the total covers the outage’s demand, and the horizon has to span those periods and the outage.”

“Measure demand and inventory in periods of the resource’s production, so that each period’s demand is \(u\) and its idle capacity \(1 - u\). An outage of \(\tau\) periods then has a demand of \(\tau u\), all of it to be built ahead, and \(b\) periods of build-ahead supply \(b\,(1 - u)\) of it, so the number of periods of build-ahead satisfies:”

\[b\,(1 - u) = \tau u, \qquad b = \frac{\tau u}{1 - u}\]
\[H \ge \delta + b + \tau = \delta + \frac{\tau u}{1 - u} + \tau = \delta + \frac{\tau}{1 - u}\]

Eq. 5, where \(H\) is the planning horizon (periods), \(\delta\) the cumulative lead time (periods), \(\tau\) the length of the outage (periods), and \(u\) the utilization of the resource in the periods before the outage.

“By Eq. 5, with materials on hand (\(\delta = 0\)), a month-long outage at 90% utilization needs a horizon of 10 months, and at 95%, 20; a lead time adds to each.”

Another view Count back from the outage

Each bar is one period of the resource's capacity: the part in blue meets that period's own demand, and the part in orange is idle capacity spent building ahead. Raise the utilization and watch how many periods it takes to cover the outage.

Outage Lead time