All 29 questions UPSC has asked on inventory and storage models in the Statistics Optional (Paper II, Optimization Techniques) from 1995 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Optimization Techniques topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
- ✓ Derivation checked step by step for derivations and approximations, every step was checked, and the result was also tested numerically.
- ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2026 · 2c(i) 2025 · 1d 2024 · 4b 2023 · 3c 2022 · 3c 2021 · 4b 2019 · 1e 2017 · 4c 2016 · 4a 2015 · 3b 2015 · 4c 2014 · 3c 2011 · 1e 2011 · 3c 2010 · 1e 2010 · 3c 2009 · 3c 2007 · 4c 2006 · 3b 2005 · 4c 2001 · 3b 2000 · 3c 1999 · 7a 1999 · 7b 1998 · 11a 1997 · 11c 1995 · 10a 1995 · 10b 1995 · 10c
The PQR retail company has the following data available for one of its items: = 10,000 units, = ₹ 20; = 25% of the acquisition cost of ₹ 25. Find: (I) the economic order quantity, and (II) the total inventory cost.
Solution
Data. Annual demand units, ordering cost per order, unit cost ₹25, holding cost per unit per year.
(I) Economic order quantity.
(II) Total inventory cost. At the EOQ the ordering and holding costs are equal:
- Ordering cost
- Holding cost
Total inventory (ordering + holding) cost per year.
Including the cost of the items (), the total annual cost is ₹2,51,581.14.
✓ Checked by computer We checked in Python: Q* = √(2 × 10,000 × 20/6.25) = 252.98, and the ordering plus holding cost at Q* is √(2 × 10,000 × 20 × 6.25) = ₹1,581.14.
A stockist has to supply 400 units of a product every Monday to his customers. He gets the product at ₹ 50 per unit from the manufacturer. The cost of ordering and transportation from the manufacturer is ₹ 75 per order. The cost of carrying inventory is 7·5% per year of the cost of the product. Find (i) the economic lot size, (ii) the total optimal cost (including the capital cost) and (iii) the total weekly profit, if the item is sold for ₹ 55 per unit.
Solution
Data (per week). Demand units a week; ordering and transport per order; carrying cost a year of ₹50 per unit per year per unit per week.
(i) Economic lot size. (The same answer comes from annual figures: , .) The stockist orders about every weeks.
(ii) Total optimal cost per week.
- Ordering + carrying cost
- Cost of the product
Total optimal cost per week.
(iii) Weekly profit at a selling price of ₹55:
✓ Checked by computer We checked in Python: with H = 0.075 × 50/52 per unit per week, Q* = 912.14 units, weekly ordering + holding cost ₹65.78, total weekly cost ₹20,065.78 and weekly profit ₹1,934.22.
PQR Electronics produces 300 transistors per day, which go into the inventory. It supplies 150 transistors per day to XYZ Radios. The annual demand is 37,500 units. The inventory holding cost is $ 0·25 per transistor per year and the setup cost per production run is $ 200. Find the following: (i) Economic Order Quantity (EOQ) (ii) Production run length (iii) Number of production runs per year (iv) Maximum Inventory Level.
Solution
Model. This is the economic production quantity (EPQ) model: production rate a day, usage rate a day, so stock builds up at a day during a run. Annual demand (that is, working days a year), setup cost , holding cost per unit per year.
(i) Optimal lot size (EOQ/EPQ).
(ii) Production run length.
(iii) Number of production runs per year. (one run every working days).
(iv) Maximum inventory level.
Check: annual setup cost and annual holding cost ; they are equal at the optimum, total $1,369.31.
✓ Checked by computer We checked in Python: Q* = √(2 × 37,500 × 200/(0.25 × (1 − 150/300))) = 10,954.45, run length 36.5 days, 3.42 runs a year, maximum inventory 5,477.
What is a basic Economic Order Quantity (EOQ) model in Inventory Control and state the assumption made. A Company estimates that it will sell 12000 units of its products for the forthcoming year. The ordering cost is ₹100 per order and the carrying cost per year is 20% of the purchase price per unit. The purchase price per unit is ₹50. Find (i) EOQ (ii) Number of orders per year (iii) Time between successive orders.
Solution
The basic EOQ model. The economic order quantity is the order size that minimises the total of ordering (set-up) and holding costs. If is the annual demand, the cost per order and the holding cost per unit per year, the annual cost of ordering at a time is which is least at
Assumptions.
- Demand is known, constant and continuous.
- Lead time is zero (or constant and known), and replenishment is instantaneous: the whole lot arrives at once.
- No shortages are allowed.
- Ordering cost per order and holding cost per unit per year are constant; the unit price does not depend on the quantity (no discounts).
- A single item is considered, with no limit on storage or capital.
The company. units, , per unit per year.
EOQ:
Number of orders per year (about 24 or 25 orders).
Time between successive orders year days (about 2.1 weeks).
Minimum annual ordering + holding cost .
✓ Checked by computer We checked in Python: Q* = √(2 × 12,000 × 100/10) = 489.9, 24.49 orders a year, about 14.9 days between orders.
A company that operates for 50 weeks in a year is concerned about its stocks of copper cable. This costs ₹ 240 a metre and there is a demand for 8000 metres a week. Each replenishment costs ₹ 1,050 for administration and ₹ 1,650 for delivery, while holding costs are estimated at 25 percent of value held a year. Assuming that no shortages are allowed, what is the optimal inventory policy for the company? How would this analysis differ if the company wants to maximize its profits rather than minimize cost? What is the gross profit if the company sells the cable for ₹ 360 a metre?
Solution
Data (per year, 50 weeks). Demand m; cost per replenishment ; holding cost per metre per year.
Optimal policy (no shortages).
- Orders per year ; time between orders week (about 3.75 working days of a 5-day week).
- Annual ordering cost ; annual holding cost .
- Total variable inventory cost ; with the purchase cost , the total cost is ₹9,63,60,000 a year.
So the company should order 6,000 m of cable every three-quarters of a week.
Maximising profit instead of minimising cost. Profit revenue total cost. If the demand (and so the revenue, price) is fixed and does not depend on the order quantity, revenue is a constant, and maximising profit gives exactly the same order quantity, m. The analysis would differ only if the order policy affected revenue: for example, if shortages were allowed and lost sales cost profit, if the price or demand depended on availability, or if quantity discounts changed the unit cost. Then we would maximise (revenue − cost) directly and the optimal could change.
Gross profit at ₹360 a metre.
✓ Checked by computer We checked in Python: D = 4,00,000 m, S = ₹2,700, H = ₹60 per m per year give Q* = 6,000 m, 66.7 orders a year, variable cost ₹3,60,000, total cost ₹9,63,60,000 and gross profit ₹4,76,40,000.
A manufacturer has to supply his customers with 600 units of his product per year. Shortages are not allowed and storage amounts to 60 paise per unit per year. The set up cost per run is Rs. 80. Find (i) economic order quantity (ii) optimum period of supply per optimum order and (iii) increase in the total cost associated with ordering 20 per cent more and 40% less.
Solution
Data. units a year, set-up cost per run, storage per unit per year, no shortages.
(i) Economic order quantity.
(ii) Optimum period of supply.
(iii) Effect of ordering a different quantity. ; at the optimum .
| Order quantity | Set-up cost | Storage cost | Total | Increase |
|---|---|---|---|---|
| 120 | 120 | 240 | — | |
| 20% more, | 100 | 144 | 244 | ₹4 (1.7%) |
| 40% less, | 200 | 72 | 272 | ₹32 (13.3%) |
Ordering 20% more raises the annual cost by only ₹4, while ordering 40% less raises it by ₹32. The cost curve is flat near the EOQ, and over-ordering costs less than under-ordering by the same proportion (see the figure under Q11).
✓ Checked by computer We checked in Python: Q* = √(2 × 600 × 80/0.6) = 400, cost ₹240; costs at Q = 480 and 240 are ₹244 and ₹272.
Define inventory. What are the advantages and disadvantages of having inventories? A manufacturing company annually uses 25000 units of a raw material. The cost of the raw material is ₹ 1.25 per unit. The ordering cost of the raw material is ₹ 21.6 per order and the carrying cost is 5.4% per year of the average inventory. (i) Find the total inventory cost and the economic lot size. (ii) Should the manager be concerned if he is offered a discount of 6% on the cost price on a single order of 25000 units by the supplier?
Solution
Inventory. Inventory is the stock of goods — raw materials, work in progress, finished goods, spares and supplies — held idle for future use or sale.
Advantages of holding inventory.
- Production and sales go on smoothly despite fluctuating demand and supply; it acts as a buffer against uncertainty.
- Allows economic lot sizes and quantity discounts, and reduces ordering and set-up costs.
- Avoids stock-outs, lost sales, idle machines and loss of goodwill; customers are served quickly.
- Protects against price rises and supply disruptions; permits seasonal stocking.
Disadvantages.
- Locks up capital (opportunity cost of money).
- Storage, handling, insurance, taxes and record-keeping costs.
- Risk of deterioration, obsolescence, theft and damage.
- Excess stock can hide production and quality problems.
(i) Economic lot size and total cost. , , per unit per year. Ordering cost ; carrying cost ; total inventory cost . With the material (), the total cost is ₹31,520 a year.
(ii) The discount offer. Buy all 25,000 units in one order at :
- Material:
- Ordering: one order, ₹21.60
- Carrying: average stock units
Total , which is ₹1,330.27 less than ₹31,520 under the EOQ policy.
So the manager should be interested in the offer (provided there is space to store 25,000 units and the capital is available): it saves about ₹1,330 a year even after the higher carrying cost.
✓ Checked by computer We checked in Python: Q* = √(2 × 25,000 × 21.6/0.0675) = 4,000 units, inventory cost ₹270, total ₹31,520; the single-order offer costs ₹30,189.73, a saving of ₹1,330.27.
Discuss the single-period continuous probabilistic inventory model with instantaneous demand, shortages and continuous replenishment. The probability distribution of demand is given by The holding cost is Rs. 0.50 per day and the shortage cost is Rs. 3.20 per day. Determine the optimum order level of the inventory.
Solution
The model. In a single period, an initial stock is set; the demand is a continuous random variable with density , and it occurs instantaneously at the start of the period (so after demand, is held, or is short, for the whole period). Let be the holding cost and the shortage cost per unit for the period. The expected cost is Differentiating (Leibniz rule): So the optimum order level satisfies (“Continuous replenishment” here means the stock can be any real amount; the item is continuous rather than discrete.)
The data. , : .
Set , i.e. : (The other root, 136.8, is outside .)
The optimum order level is .
✓ Checked by computer We checked in Python: F(S) = 0.02S − 0.0001S² = 3.2/3.7 = 0.8649 has the root S = 63.24 in [0, 100].
What do you mean by probabilistic inventory problems? Discuss the continuous case of a probabilistic inventory model with instantaneous demand and no set-up cost. Let the probability density of demand of a certain item during a day be The demand is assumed to occur with a uniform pattern during the whole day. Let the unit carrying cost of the item in inventory be ₹ 0.5 per day and the unit shortage cost be ₹ 4.5 per day. If ₹ 0.5 be the purchasing cost per unit, determine the optimum order level of the inventory.
Solution
Probabilistic inventory problems. When demand (or lead time) is not known exactly but follows a probability distribution, we cannot avoid both surplus and shortage. We then choose the stock level that minimises the expected total cost of holding, shortage (and purchase). Typical models are single-period (newsboy) models with discrete or continuous demand, with demand occurring instantaneously or uniformly over the period, and multi-period models such as the policy.
Continuous demand, instantaneous demand, no set-up cost. With stock level , holding cost , shortage cost and purchase cost per unit, the expected cost is least where , i.e.
Demand at a uniform rate during the day. Here the demand is spread evenly over the day. If , the stock falls from to and the average stock is . If , the stock runs out after a fraction of the day, so the average stock is and the average shortage is . The expected cost is Setting gives the condition
The data. on , , , : .
For : and . So Solving numerically: at the left side is ; the root is .
The optimum order level is .
(If the purchase cost were ignored, the right side would be , giving . Because demand is spread over the day, the optimal stock is lower than in the instantaneous-demand model, where would give .)
✓ Checked by computer We checked in Python: with the uniform-demand condition 0.1S[1 + ln(10/S)] = (4.5 − 0.5)/(4.5 + 0.5) = 0.8, the root is S = 4.385.
Discuss Economic Lot Size model with constant demand and variable order cycle time.
Solution
Model (Harris–Wilson economic lot size model). Assumptions:
- Demand is uniform at a known rate units per unit time.
- Production (replenishment) is instantaneous; lead time is zero.
- No shortages are allowed.
- Holding cost per unit per unit time and set-up cost per run are constant.
- The cycle time (the interval between runs) is a decision variable — it is not fixed in advance.
Cost of one cycle. A lot of units is made at the start of a cycle of length ; stock falls linearly from to 0, so the stock held in a cycle is the area of the triangle, . The cost of one cycle is
Average cost per unit time.
Minimise.
Results. At the optimum the set-up cost per unit time equals the holding cost per unit time , each .
Interpretation. The lot size (the economic lot size or EOQ) increases with the square root of the demand and of the set-up cost, and decreases with the square root of the holding cost. Because the cost curve is flat near , small departures from cost little.
Example. With a year, , : year, , a year.
✓ Derivation checked step by step Every step was checked: C(t) = C₃/t + ½C₁Rt per unit time is least at t* = √(2C₃/(C₁R)), with q* = Rt* and C* = √(2C₁C₃R).
What are the different costs involved in an inventory model? Obtain the formulae for optimal order quantity and optimum variable inventory cost for the inventory model with constant demand and instantaneous supply.
Solution
Costs in an inventory model.
- Purchase (production) cost — the price paid per unit, which matters when it depends on the quantity (discounts).
- Ordering (set-up) cost — cost of placing an order or setting up a production run: paperwork, transport, inspection, machine set-up. It is per order, independent of the size of the order.
- Holding (carrying) cost — cost of keeping stock: interest on capital, storage, insurance, taxes, deterioration and obsolescence. Proportional to the quantity held and the time.
- Shortage (stock-out) cost — penalty for running out: lost sales and goodwill, overtime, emergency orders, idle facilities.
- (Sometimes) the cost of operating the inventory system itself — records, control.
Model: constant demand, instantaneous supply, no shortages. Demand is units a year at a constant rate; each order of units costs and arrives instantly when stock reaches zero; holding cost is per unit per year. Stock follows a saw-tooth: it jumps to and falls linearly to 0, so the average stock is .
Total variable inventory cost per year.
Optimal order quantity.
Optimum variable inventory cost.
Related results: number of orders , cycle time . At the optimum the ordering and holding costs are equal.
✓ Derivation checked step by step Every step was checked: TC(Q) = (D/Q)S + (Q/2)H, TC′(Q) = 0 at Q* = √(2DS/H), TC″ > 0, and TC* = √(2DSH), with the figure drawn from Q6’s data.
Discuss the inventory model with instantaneous stochastic demand with continuous replenishment unit and obtain the condition for finding the optimum inventory level.
Solution
The model. A single period. The stock level is set at the start. Demand is a continuous random variable with density and distribution , and occurs instantaneously at the start of the period. “Continuous replenishment unit” means the item can be stocked in any (non-integer) quantity, so is a continuous variable. No set-up cost. Holding cost and shortage cost per unit for the period.
- If , surplus is held: cost .
- If , shortage : cost .
Expected cost.
Optimum. By the Leibniz rule (the boundary terms vanish because the integrands are zero at ): so is convex and its minimum is where :
Interpretation. The optimum stock is the quantile of demand — the “critical ratio”. The higher the shortage cost relative to the holding cost, the higher the stock level. If there is also a purchase cost per unit, the condition becomes .
Example. With on , , (Q8): gives .
✓ Derivation checked step by step Every step was checked: the expected cost C(z) = h∫₀ᶻ(z − x)f dx + p∫ᶻ^∞(x − z)f dx, its derivative (h + p)F(z) − p, and the second-order condition (h + p)f(z) ≥ 0.
Discuss an inventory model with probabilistic demand.
Solution
Why probabilistic models. In practice demand is rarely known exactly. With random demand, we can neither avoid surplus nor shortage, so we choose the stock level to minimise the expected cost of holding and shortage. The simplest is the single-period (newsboy) model: a stock is set at the start of a period, demand occurs, and surplus is held (cost per unit) or shortage incurred (cost per unit). No set-up cost.
(a) Discrete demand, instantaneous. Demand takes values with probabilities . Expected cost Then . The optimum satisfies :
(b) Continuous demand, instantaneous. With density , , and gives
(c) Demand uniform over the period. If demand is spread evenly over the period, a shortage occurs only for part of the period and the average stock is (when ) or (when ). The optimum then satisfies (discrete analogue: ).
With purchase cost. If each unit costs , the ratio becomes .
Profit form (newsboy). If each unit sold earns profit and each unsold unit loses , the order quantity satisfies — e.g. the bakery problems (Q17, Q22).
Multi-period models. When stock is carried over and ordering has a set-up cost , the optimal policy is of type: order up to whenever the stock falls below (see Q27).
Example. Demand 0–5 with probabilities 0.1, 0.2, 0.2, 0.3, 0.1, 0.1; , : ; ; since , .
✓ Answer checked step by step Every result was checked: the discrete condition F(z − 1) < p/(p + h) ≤ F(z), the continuous condition F(z) = p/(p + h), and the uniform-demand variant.
A company uses annually 24000 units of a raw material which costs ₹ 1·25 per unit. Placing each order costs ₹ 22·5 and the carrying cost is 5·4% per year of the average inventory. Find the economic lot-size and the total inventory cost (including cost of material).
Solution
Data. units a year, per order, unit cost ₹1.25, carrying cost per unit per year.
Economic lot size. That is orders a year, one every 2 months.
Total inventory cost.
- Ordering cost
- Carrying cost
- Cost of material
Total cost (including material) .
✓ Checked by computer We checked in Python: Q* = √(2 × 24,000 × 22.5/0.0675) = 4,000 units, inventory cost ₹270, total ₹30,270.
Explain fixed order quantity approach and periodic review approach in Inventory control.
Solution
Both are systems for deciding when to order and how much, when demand is not perfectly steady.
1. Fixed order quantity approach (Q-system, continuous review, two-bin system).
- The stock level is watched continuously (every transaction is recorded).
- When the stock falls to a reorder point , a fixed quantity (usually the EOQ, ) is ordered.
- demand during lead time safety stock .
- The order quantity is fixed; the time between orders varies with demand.
- Example: the two-bin system — when the first bin is empty, an order is placed and the second bin is used meanwhile.
2. Periodic review approach (P-system, fixed interval).
- The stock is reviewed at fixed intervals (say every month).
- At each review an order is placed to bring the stock up to a target (maximum) level : order quantity stock on hand (and on order).
- : the safety stock must cover the review period plus the lead time.
- The interval is fixed; the order quantity varies.
Comparison.
| Point | Fixed order quantity (Q) | Periodic review (P) |
|---|---|---|
| Order quantity | Fixed () | Varies ( stock) |
| Order timing | Varies (when stock hits ROP) | Fixed (every ) |
| Monitoring | Continuous; perpetual records | Only at reviews |
| Safety stock | Covers lead time only — lower | Covers — higher |
| Suited to | Costly, critical (A-class) items | Cheap items; many items from one supplier; joint ordering |
| Admin cost | Higher record-keeping | Lower; easy to schedule |
In practice firms also use combinations such as the policy: review periodically, and order up to only if the stock is below .
✓ Answer checked step by step Every point was checked against the standard descriptions of the continuous-review (Q) and periodic-review (P) systems, including the reorder-point and order-up-to formulas.
An aircraft company uses rivets at a constant rate of 2500 per year. Each unit costs Rs. 30 and the company personnel estimate that it costs Rs. 130 to place an order, and that the carrying cost of inventory is 10% per year. How frequently should orders be placed? Also determine the optimum size of each order.
Solution
Data. rivets a year, per order, unit cost ₹30, carrying cost per rivet per year.
Optimum order size.
Frequency of orders.
- Number of orders a year (about 5 or 6).
- Time between orders year (about months).
Minimum annual ordering + carrying cost ; with the rivets themselves (), ₹76,396.42.
✓ Checked by computer We checked in Python: Q* = √(2 × 2,500 × 130/3) = 465.5 rivets, 5.37 orders a year, an interval of 68 days, cost ₹1,396.42.
Derive an expression for finding optimum inventory level in a single-period probabilistic model without set-up cost with continuous demand and discrete replenishment unit. A baking firm makes a profit of Rs. 5·00 per kg of cakes sold on the same day it baked and disposes all unsold cakes at a loss of Rs. 1·20 per kg. The demand follows rectangular distribution between 2000 and 3000. Find optimum quantity to be baked daily.
Solution
Model (single period, no set-up cost, continuous demand). A quantity is made at the start of the period. Demand has density . Each unit sold earns a profit ; each unit left unsold is disposed of at a loss . (Equivalently, the cost of a shortage per unit is the lost profit , and the cost of a surplus per unit is .)
Expected profit: Differentiating (the boundary terms cancel): So the optimum quantity satisfies (The replenishment is made once, at the start; the condition is the same whether the unit is treated as continuous or the answer is rounded to a whole unit, in which case we take the smallest with .)
The bakery. , : .
Demand is uniform on : . So The firm should bake about 2,806 kg of cake a day.
✓ Checked by computer We checked in Python: the expected profit is maximised where F(Q) = 5/(5 + 1.2) = 0.8065, which for the uniform demand on [2000, 3000] gives Q = 2,806.45 kg.
Determine the optimal ordering policy in the case of a single period inventory model with no set up cost, instantaneous stock replenishment and the amount demanded is a continuous random variable.
Solution
Assumptions.
- One period; the item is ordered once at the start (no set-up cost).
- Replenishment is instantaneous.
- Demand is a continuous random variable with density and distribution ; demand occurs at the start of the period (instantaneous demand).
- Costs: purchase per unit, holding per unit left over, shortage (penalty) per unit short, with .
- Initial stock (often 0); we order to bring stock up to .
Expected cost.
Optimum. is convex, so the minimum is at where
Optimal ordering policy.
- If : order (bring the stock up to ).
- If : do not order.
This is a base-stock (order-up-to) policy. is the quantile of demand: the critical ratio of the cost of under-stocking () to the total of under- and over-stocking costs ( plus ).
Remarks.
- If there is no purchase cost (or it is sunk), .
- In profit form (profit per unit sold, loss per unit unsold), .
- If a set-up cost is added, the policy becomes : order up to only when , where (see Q27).
Example. Demand uniform on , , , : , so .
✓ Derivation checked step by step Every step was checked: C(y) = c(y − x₀) + L(y) with L(y) = h∫₀ʸ(y − x)f dx + p∫ᵧ^∞(x − y)f dx, the condition F(y*) = (p − c)/(p + h), and convexity.
Discuss the inventory problem when the demand is stochastic having a discrete probability distribution.
Solution
Model. One period; stock level (an integer) is set at the start; no set-up cost. Demand is a discrete random variable, , , with distribution . Holding cost per unit left over; shortage cost per unit short.
(a) Instantaneous demand. Because is discrete, we use finite differences. Raising the stock from to adds for each outcome and saves for each : increases with (since does), so is convex. is optimal when , i.e. So is the smallest stock level at which the cumulative probability of demand reaches the critical ratio .
(b) Demand uniform over the period. If demand is spread evenly over the period, the expected cost includes the average stock (when ) or (when ), and average shortage . The difference condition becomes
(c) With a purchase cost per unit, is replaced by .
Example. A shop’s daily demand for an item is 0, 1, 2, 3, 4, 5 with probabilities 0.05, 0.10, 0.25, 0.35, 0.15, 0.10; , .
| 0 | 1 | 2 | 3 | 4 | 5 | |
|---|---|---|---|---|---|---|
| 0.05 | 0.15 | 0.40 | 0.75 | 0.90 | 1.00 |
; , so units.
✓ Answer checked step by step Every step was checked: ΔC(z) = C(z + 1) − C(z) = (h + p)F(z) − p, giving F(z* − 1) < p/(p + h) ≤ F(z*), and the uniform-demand variant; the worked example was recomputed.
What is an inventory system? Classify and discuss the different types of costs involved in an inventory system.
Solution
Inventory system. An inventory is a stock of physical goods held for future use or sale: raw materials, bought-out parts, work in progress, finished goods, and maintenance and office supplies (MRO). An inventory system is the set of policies and controls that decide what to stock, when to order and how much, and that monitor stock levels — so that demand is met at minimum total cost.
Inventory systems are classified by how they review stock (continuous review/fixed order quantity, periodic review/fixed interval, ), by demand (deterministic or probabilistic; static or dynamic), by supply (instantaneous or gradual; with or without lead time), and by whether shortages are allowed (backlogged or lost sales).
Costs in an inventory system.
Purchase (production) cost — price per unit bought, or unit cost of production. It matters when quantity discounts or economies of scale exist; otherwise it is constant and does not affect the order quantity.
Ordering or set-up cost — cost of each order or production run, independent of the quantity:
- ordering: preparing purchase orders, follow-up, transport, receiving, inspection, payment;
- set-up: preparing machines, trial runs, scrap from set-up.
Holding (carrying) cost — cost of keeping stock, proportional to the quantity and the time held:
- interest/opportunity cost of capital locked up (often the largest part);
- storage space, handling, insurance, taxes;
- deterioration, obsolescence, pilferage;
- record-keeping. It is usually expressed as a percentage of the item’s value per year.
Shortage (stock-out) cost — penalty for not having stock when it is demanded:
- backlog case: extra handling, expediting, overtime, penalty for delay;
- lost-sales case: lost profit and loss of goodwill;
- idle machines and labour in production. It is often hard to measure.
Salvage value and selling price — revenue from selling or disposing of surplus, which reduces costs (important in single-period problems).
Cost of running the system — data processing, control and inspection.
The aim of inventory control is to balance these: large orders reduce ordering cost but raise holding cost; low stocks reduce holding cost but raise shortage cost.
✓ Answer checked step by step Every point was checked against the standard classification of inventory systems and inventory costs.
Derive the formula for EOQ when (i) demand is deterministic and continuous (ii) shortages are allowed, and (iii) production is deterministic and continuous. State the assumptions made.
Solution
Notation. = demand per unit time (constant), = holding cost per unit per unit time, = shortage cost per unit per unit time, = set-up cost per run, = lot size, = cycle time.
(i) Deterministic continuous demand, instantaneous supply, no shortages. Assumptions: demand uniform at rate ; instantaneous replenishment, zero lead time; no shortages; , constant.
Stock falls linearly from to 0 in each cycle; average stock . Cost per unit time: , so this is a minimum.
(ii) Shortages allowed (backlogged). Assumptions: as in (i), but shortages are allowed and are filled when the next lot arrives.
Each run of clears the backlog and leaves stock . Stock is positive for and negative for . Per cycle: holding , shortage , set-up . Dividing by : Substituting, , which is least at As (shortages prohibitive), these reduce to (i).
(iii) Deterministic continuous production (finite replenishment rate). Assumptions: production at a constant rate ; demand at rate ; no shortages; set-up cost per run.
During a run of length , stock builds up at rate , reaching , then falls at rate . Average stock . Cost per unit time: As (instantaneous production), this reduces to (i).
✓ Derivation checked step by step Every step was checked: the three cost functions, their minimisation (setting partial derivatives to zero), and the results q* = √(2C₃R/C₁), √(2C₃R(C₁ + C₂)/(C₁C₂)) and √(2C₃RK/(C₁(K − R))).
A baking company sells its cakes by weight. It makes a profit of Rs. 0.95 for every kg (kilogram) of cake sold on the day it is baked. It disposes off all cakes not sold on the day they are baked at a loss of Rs. 1.15 per kg. If the demand for the cake is known to have the probability density , find the optimum amount of cake the company should bake daily.
Solution
Note on the question. The density as printed, “, ”, has a garbled coefficient. The standard version of this problem has which is a proper density: it falls to 0 at and . We solve that version (demand in kg).
Condition. With profit per kg sold and loss per kg unsold, the expected profit is maximised (see Q17) where
Solve. (The other root, 116, lies outside the range of demand.)
The company should bake about of cake a day.
✓ Checked by computer We checked in Python: with f(d) = 0.03 − 0.00045d on [0, 66.67] (which integrates to 1), F(Q) = 0.03Q − 0.000225Q² = 0.95/2.10 = 0.4524 gives Q = 17.33 kg.
What is the main problem in inventory management? Discuss the various costs involved in an inventory problem.
Solution
The main problem. Inventory management must answer two questions for each item:
- How much to order (the order quantity or lot size), and
- When to order (the reorder point or review interval),
so that the total cost of keeping the inventory is minimum while the required service level is maintained. The difficulty is that the costs pull in opposite directions:
- ordering in large lots cuts ordering and set-up costs (and may earn discounts) but raises holding costs and capital locked up;
- keeping stock low cuts holding costs but raises the number of orders and the risk of shortages.
The decision is further complicated by uncertain demand and lead time, limits on storage space and capital, quantity discounts, perishability, and many items being managed together (hence selective control such as ABC analysis).
Costs involved.
| Cost | What it covers | How it varies |
|---|---|---|
| Purchase / production cost | Price per unit, or unit production cost | Constant, or falls with quantity (discounts) |
| Ordering / set-up cost | Paperwork, transport, receiving, inspection; machine set-up | Fixed per order; total falls as lot size rises |
| Holding (carrying) cost | Interest on capital, storage, insurance, taxes, deterioration, obsolescence, handling | Proportional to average stock; rises with lot size |
| Shortage (stock-out) cost | Lost sales and goodwill, backorder handling, expediting, idle plant | Rises as stock falls; hard to measure |
| Salvage / disposal | Value recovered from, or loss on, surplus stock | Matters for perishable or seasonal items |
The optimal policy (such as the EOQ, , where ordering and holding costs are equal) balances these costs. When demand is uncertain, safety stock is held so that the extra holding cost balances the expected shortage cost.
✓ Answer checked step by step Every point was checked against the standard treatment of the inventory problem and its cost components.
In a certain manufacturing situation the production is instantaneous and the demand per year is R. Show that the optimal order quantity q per run which minimizes the total cost is given by Where = storage cost per unit per year, = shortage cost per unit per year, = set up cost per run.
Solution
Assumptions. Demand is uniform at units per year; production is instantaneous; shortages are allowed and backlogged (filled when the next run arrives); = storage cost and = shortage cost per unit per year; = set-up cost per run. Let be the run size, the cycle time, and the stock just after a run (after clearing the backlog).
One cycle.
- Stock is positive for ; the stock held is the area of a triangle, . Storage cost .
- Shortage lasts ; the shortage is . Shortage cost .
- Set-up cost .
Cost per year (divide by ):
Optimal for a given .
Substitute. so
Optimal . and the Hessian of is positive definite, so this is the minimum. ∎
Also and the minimum cost is . When , , the classical EOQ.
✓ Derivation checked step by step Every step was checked: the cycle costs C₁S²/(2R), C₂(q − S)²/(2R) and C₃, the optimum S = C₂q/(C₁ + C₂), and q* = √(2RC₃(C₁ + C₂)/(C₁C₂)).
Discuss An inventors’ model with probabilistic demand.
Solution
(This is the same question as Q13 (2011, 1e) above. The worked solution is repeated here so that each question is complete.)
Why probabilistic models. In practice demand is rarely known exactly. With random demand, we can neither avoid surplus nor shortage, so we choose the stock level to minimise the expected cost of holding and shortage. The simplest is the single-period (newsboy) model: a stock is set at the start of a period, demand occurs, and surplus is held (cost per unit) or shortage incurred (cost per unit). No set-up cost.
(a) Discrete demand, instantaneous. Demand takes values with probabilities . Expected cost Then . The optimum satisfies :
(b) Continuous demand, instantaneous. With density , , and gives
(c) Demand uniform over the period. If demand is spread evenly over the period, a shortage occurs only for part of the period and the average stock is (when ) or (when ). The optimum then satisfies (discrete analogue: ).
With purchase cost. If each unit costs , the ratio becomes .
Profit form (newsboy). If each unit sold earns profit and each unsold unit loses , the order quantity satisfies — e.g. the bakery problems (Q17, Q22).
Multi-period models. When stock is carried over and ordering has a set-up cost , the optimal policy is of type: order up to whenever the stock falls below (see Q27).
Example. Demand 0–5 with probabilities 0.1, 0.2, 0.2, 0.3, 0.1, 0.1; , : ; ; since , .
✓ Answer checked step by step Every result was checked: the discrete condition F(z − 1) < p/(p + h) ≤ F(z), the continuous condition F(z) = p/(p + h), and the uniform-demand variant.
Describe the Moran model for a dam with a finite capacity (discrete case). If the inputs follow the geometric distribution and there is unit release, obtain the stationary distribution of the dam content.
Solution
The Moran dam model (discrete). A dam has finite capacity (in units of water). Time is discrete (say years or seasons).
- In period , an input flows in; the are i.i.d. non-negative integers.
- If the content would exceed , the excess overflows.
- At the end of the period a release of units is made if available; if less than is present, all of it is released.
If is the content at the start of period (after the previous release), is a Markov chain on . Moran used it to study the probabilities that the dam runs dry or overflows.
Geometric inputs, unit release. Take and The states are . From state :
- to if ;
- to () if : probability (for );
- to if : probability .
Balance equations :
Solve.
- From the first: . Since , we get .
- Subtracting (equation for ) from the equation for (the sums telescope): and for , .
- Let . Try for with . Then ✓; ✓; and for , ✓, since .
- The equation for state is then automatically satisfied (the rows of sum to 1).
Stationary distribution of the dam content. where is fixed by : and when .
Check (): , normaliser .
Interpretation. is the long-run probability that the dam is empty after release (so the next release may fail), and is the probability that it is full. If (mean input , less than the release), the content tends to be low; if it tends to be high.
✓ Derivation checked step by step We checked in Python (sympy) that the stated stationary distribution solves πP = π exactly for capacities K = 3, 4, 5; the recurrence steps were checked by hand.
State the (s, S) policy in an inventory problem. Derive this policy when the demand has a negative exponential distribution.
Solution
The policy. When an order has a fixed (set-up) cost as well as a unit cost, it is not worth ordering a small amount. The optimal policy has two numbers :
- if the stock at the start of the period is below , order (bring the stock up to );
- if , do not order.
Single-period model. Purchase cost per unit, set-up cost , holding cost and shortage cost () per unit at the end of the period, demand with density . With stock after ordering, the expected holding and shortage cost is Let . Starting from , the cost is if we do not order, and if we order up to .
is convex (), with minimum at where : Ordering is worthwhile only if . Since is convex and decreasing on , define by Then: for , , so order up to ; for , , so do not order; for , ordering only raises the cost. This proves the policy is optimal.
Negative exponential demand, , (mean ): So
Order-up-to level : gives
Reorder level : . Using , which is solved numerically for .
Example. (mean demand 10), , , , : . The equation gives . So when the stock is below about 9.8 units, order up to 16.1; otherwise do not order.
(In a multi-period setting with the same costs, Scarf showed that -convexity of the cost functions keeps the form optimal in every period.)
✓ Derivation checked step by step Every step was checked: for exponential demand L(y) = h(y − 1/λ) + (h + p)e^(−λy)/λ, G′(S) = 0 gives S = (1/λ)ln((p + h)/(c + h)), and s solves G(s) = K + G(S).
Describe a multi-period stochastic inventory model allowing for a discount factor. How would you extend this model to the infinite period case?
Solution
Set-up. Periods ; at the start of each period we see the stock and order to bring it up to (instantaneous delivery). Demands are i.i.d. with density . Unsatisfied demand is backlogged. Costs per period: purchase per unit, holding per unit left at the end, shortage per unit backlogged. Costs one period later are multiplied by a discount factor (, e.g. ). No set-up cost.
One-period expected holding and shortage cost:
Finite horizon (dynamic programming). Let be the minimum expected discounted cost with periods left and initial stock . Then Write . By induction is convex, so is convex with a minimum at some . Hence the optimal policy in period is a base-stock policy: if order , otherwise order nothing. solves . For : (the single-period result).
Infinite horizon. With , the discounted costs are bounded and , which satisfies the functional equation The optimal policy is stationary: order up to the same level every period. To find it, note that if we order up to each period (and after the first period, since stock only falls), then next period we order , costing . The part of the total cost that depends on is therefore which is minimised where :
Remarks.
- When (no discounting), : in the long run every unit bought is eventually used, so the purchase cost no longer affects the level.
- With a set-up cost , the optimal policy becomes in every period (Scarf).
- With lost sales instead of backlogging, the base-stock form still holds but the critical ratio changes.
- With a lead time of periods, the same rule applies to the inventory position (stock on hand + on order − backlog), using the distribution of demand over periods.
✓ Derivation checked step by step Every step was checked: the dynamic-programming recursion with discount factor α, the base-stock form from convexity, and the stationary order-up-to level F(S*) = (p − c(1 − α))/(p + h).
Write a note on dam type storage models.
Solution
Dam (storage) models describe a store — a reservoir, a warehouse, an insurance fund — into which random inputs flow and from which releases are made according to a rule. The questions are: the distribution of the content, the probability of running dry (emptiness), the probability of overflow, and the time until the dam first empties.
1. Moran’s discrete model (finite dam). Capacity ; in period an input (i.i.d.) arrives; overflow is lost; then a release is made (or the whole content, if less than ): is a finite Markov chain with states ; its stationary distribution gives the long-run probabilities of emptiness and overflow. Example: with geometric inputs and , and (see Q26).
2. Infinite dam. With no capacity limit, . This is the same as Lindley’s recursion for the waiting time in a queue, so a dam is like a queue: the input is the arriving work and the release is the server. A stationary distribution exists only if .
3. Continuous-time models. Inputs arrive as a compound Poisson process (Gani, Prabhu, Kendall), and water is released at a constant rate while the dam is not empty. The content behaves like the virtual waiting time in an M/G/1 queue; Takács’ integral equation and Laplace transforms give its distribution and the time to first emptiness.
4. Other release rules. Release depending on the content (e.g. a proportion), seasonal (Markov-dependent) inputs, and two-dam or multiple-reservoir systems.
Uses. Design of reservoirs and the choice of release policy; insurance risk (the fund is the dam, premiums are the release in reverse); inventory with random supply; buffer stores in production lines; and models of computer and communication buffers.
Relation to inventory theory. In an inventory model the decision is how much to order (input) to meet random demand (release); in a dam model the input is random and the decision is how much to release. Both balance the cost of shortage (dry dam/stock-out) against the cost of excess (overflow/holding).
✓ Answer checked step by step Every point was checked against the standard dam (storage) models: Moran’s discrete model, its Markov-chain analysis, infinite dams, continuous-time models and their link with queues.
More on Optimization Techniques
- All Statistics PYQ solutions, topic by topic
- Optimization Techniques topic-wise PYQs (questions only, for practice)
- Statistics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Statistics booklist
Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

