Menu Close

Inventory and storage models: UPSC Statistics Optional PYQ Solutions (1995–2026)

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

Cover of the UPSC Prelims Topic-wise PYQ book with detailed explanations

From the Optional Province team

Preparing for Prelims too?

Our UPSC Prelims Topic-wise PYQ Book covers every Prelims question with detailed explanations, so you can see exactly where UPSC asks from. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

The PQR retail company has the following data available for one of its items: D = 10,000 units, S = ₹ 20; C = 25% of the acquisition cost of ₹ 25. Find: (I) the economic order quantity, and (II) the total inventory cost.

2026 · Paper II · Q2c(i) · 5 marks

Solution

Data. Annual demand D=10,000D=10{,}000 units, ordering cost S=₹20S=₹20 per order, unit cost ₹25, holding cost H=25%×25=₹6.25H=25\%\times25=₹6.25 per unit per year.

(I) Economic order quantity. Q*=2DSH=2×10,000×206.25=64,000=252.98≈253 units.Q^*=\sqrt{\frac{2DS}{H}}=\sqrt{\frac{2\times10{,}000\times20}{6.25}}=\sqrt{64{,}000}=252.98\approx\boxed{253\text{ units}}.

(II) Total inventory cost. At the EOQ the ordering and holding costs are equal:

  • Ordering cost =DQS=10,000252.98×20=₹790.57=\dfrac DQ S=\dfrac{10{,}000}{252.98}\times20=₹790.57
  • Holding cost =Q2H=252.982×6.25=₹790.57=\dfrac Q2H=\dfrac{252.98}2\times6.25=₹790.57

Total inventory (ordering + holding) cost =2DSH=₹1,581.14=\sqrt{2DSH}=₹1{,}581.14 per year.

Including the cost of the items (10,000×25=₹2,50,00010{,}000\times25=₹2{,}50{,}000), 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.

↑ Back to the question list

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.

2025 · Paper II · Q1d · 10 marks

Solution

Data (per week). Demand D=400D=400 units a week; ordering and transport S=₹75S=₹75 per order; carrying cost 7.5%7.5\% a year of ₹50 =₹3.75=₹3.75 per unit per year =3.7552=₹0.0721=\dfrac{3.75}{52}=₹0.0721 per unit per week.

(i) Economic lot size. Q*=2DSH=2×400×753.75/52=8,32,000=912.14≈912 units.Q^*=\sqrt{\frac{2DS}{H}}=\sqrt{\frac{2\times400\times75}{3.75/52}}=\sqrt{8{,}32{,}000}=912.14\approx\boxed{912\text{ units}}. (The same answer comes from annual figures: D=20,800D=20{,}800, H=₹3.75H=₹3.75.) The stockist orders about every 912/400=2.3912/400=2.3 weeks.

(ii) Total optimal cost per week.

  • Ordering + carrying cost =2DSH=2×400×75×0.0721=₹65.78=\sqrt{2DSH}=\sqrt{2\times400\times75\times0.0721}=₹65.78
  • Cost of the product =400×50=₹20,000=400\times50=₹20{,}000

Total optimal cost =₹20,065.78=₹20{,}065.78 per week.

(iii) Weekly profit at a selling price of ₹55: 400×55−20,065.78=22,000−20,065.78=₹1,934.22 per week.400\times55-20{,}065.78=22{,}000-20{,}065.78=₹1{,}934.22\text{ per week}.

✓ 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.

↑ Back to the question list

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.

2024 · Paper II · Q4b · 15 marks

Solution

Model. This is the economic production quantity (EPQ) model: production rate p=300p=300 a day, usage rate d=150d=150 a day, so stock builds up at p−d=150p-d=150 a day during a run. Annual demand D=37,500D=37{,}500 (that is, 37,500/150=25037{,}500/150=250 working days a year), setup cost S=$200S=\$200, holding cost H=$0.25H=\$0.25 per unit per year.

(i) Optimal lot size (EOQ/EPQ). Q*=2DSH(1−dp)=2×37,500×2000.25×(1−0.5)=1.2×108=10,954 transistors.Q^*=\sqrt{\frac{2DS}{H\left(1-\frac dp\right)}}=\sqrt{\frac{2\times37{,}500\times200}{0.25\times(1-0.5)}}=\sqrt{1.2\times10^8}=10{,}954\text{ transistors}.

(ii) Production run length. tp=Q*p=10,954300=36.5 days.t_p=\frac{Q^*}{p}=\frac{10{,}954}{300}=36.5\text{ days}.

(iii) Number of production runs per year. DQ*=37,50010,954=3.42 runs a year\frac D{Q^*}=\frac{37{,}500}{10{,}954}=3.42\text{ runs a year} (one run every 10,954/150=7310{,}954/150=73 working days).

(iv) Maximum inventory level. Imax=Q*(1−dp)=10,954×0.5=5,477 transistors.I_{\max}=Q^*\left(1-\frac dp\right)=10{,}954\times0.5=5{,}477\text{ transistors}.

Check: annual setup cost =3.42×200=$684.65=3.42\times200=\$684.65 and annual holding cost =5,4772×0.25=$684.65=\frac{5{,}477}2\times0.25=\$684.65; 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.

↑ Back to the question list

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.

2023 · Paper II · Q3c · 15 marks

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 DD is the annual demand, SS the cost per order and HH the holding cost per unit per year, the annual cost of ordering QQ at a time is TC(Q)=DQS+Q2H,TC(Q)=\frac DQS+\frac Q2H, which is least at Q*=2DSH.Q^*=\sqrt{\frac{2DS}H}.

Assumptions.

  1. Demand is known, constant and continuous.
  2. Lead time is zero (or constant and known), and replenishment is instantaneous: the whole lot arrives at once.
  3. No shortages are allowed.
  4. Ordering cost per order and holding cost per unit per year are constant; the unit price does not depend on the quantity (no discounts).
  5. A single item is considered, with no limit on storage or capital.

The company. D=12,000D=12{,}000 units, S=₹100S=₹100, H=20%×₹50=₹10H=20\%\times₹50=₹10 per unit per year.

  1. EOQ: Q*=2×12,000×10010=2,40,000=489.9≈490 units.Q^*=\sqrt{\frac{2\times12{,}000\times100}{10}}=\sqrt{2{,}40{,}000}=489.9\approx\boxed{490\text{ units}}.

  2. Number of orders per year =12,000489.9=24.5=\dfrac{12{,}000}{489.9}=24.5 (about 24 or 25 orders).

  3. Time between successive orders =Q*D=489.912,000=0.0408=\dfrac{Q^*}D=\dfrac{489.9}{12{,}000}=0.0408 year ≈14.9\approx14.9 days (about 2.1 weeks).

Minimum annual ordering + holding cost =2DSH=₹4,899=\sqrt{2DSH}=₹4{,}899.

✓ 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.

↑ Back to the question list

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?

2022 · Paper II · Q3c · 15 marks

Solution

Data (per year, 50 weeks). Demand D=8,000×50=4,00,000D=8{,}000\times50=4{,}00{,}000 m; cost per replenishment S=1,050+1,650=₹2,700S=1{,}050+1{,}650=₹2{,}700; holding cost H=25%×240=₹60H=25\%\times240=₹60 per metre per year.

Optimal policy (no shortages). Q*=2DSH=2×4,00,000×2,70060=3.6×107=6,000 m.Q^*=\sqrt{\frac{2DS}H}=\sqrt{\frac{2\times4{,}00{,}000\times2{,}700}{60}}=\sqrt{3.6\times10^7}=\boxed{6{,}000\text{ m}}.

  • Orders per year =4,00,000/6,000=66.7=4{,}00{,}000/6{,}000=66.7; time between orders =6,000/8,000=0.75=6{,}000/8{,}000=0.75 week (about 3.75 working days of a 5-day week).
  • Annual ordering cost =66.67×2,700=₹1,80,000=66.67\times2{,}700=₹1{,}80{,}000; annual holding cost =6,0002×60=₹1,80,000=\frac{6{,}000}2\times60=₹1{,}80{,}000.
  • Total variable inventory cost =₹3,60,000=₹3{,}60{,}000; with the purchase cost 4,00,000×240=₹9,60,00,0004{,}00{,}000\times240=₹9{,}60{,}00{,}000, 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, 4,00,000×4{,}00{,}000\times price) is fixed and does not depend on the order quantity, revenue is a constant, and maximising profit gives exactly the same order quantity, Q*=6,000Q^*=6{,}000 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 QQ could change.

Gross profit at ₹360 a metre. Revenue=4,00,000×360=₹14,40,00,000,\text{Revenue}=4{,}00{,}000\times360=₹14{,}40{,}00{,}000, Gross profit=14,40,00,000−9,63,60,000=₹4,76,40,000 a year.\text{Gross profit}=14{,}40{,}00{,}000-9{,}63{,}60{,}000=\boxed{₹4{,}76{,}40{,}000\text{ a year}}.

✓ 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.

↑ Back to the question list

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.

2021 · Paper II · Q4b · 15 marks

Solution

Data. D=600D=600 units a year, set-up cost S=₹80S=₹80 per run, storage H=₹0.60H=₹0.60 per unit per year, no shortages.

(i) Economic order quantity. Q*=2DSH=2×600×800.60=1,60,000=400 units.Q^*=\sqrt{\frac{2DS}H}=\sqrt{\frac{2\times600\times80}{0.60}}=\sqrt{1{,}60{,}000}=\boxed{400\text{ units}}.

(ii) Optimum period of supply. t*=Q*D=400600=23 year=8 months.t^*=\frac{Q^*}D=\frac{400}{600}=\frac23\text{ year}=8\text{ months}.

(iii) Effect of ordering a different quantity. TC(Q)=DSQ+HQ2=48,000Q+0.3QTC(Q)=\dfrac{DS}Q+\dfrac{HQ}2=\dfrac{48{,}000}Q+0.3Q; at the optimum TC(400)=120+120=₹240TC(400)=120+120=₹240.

Order quantity Set-up cost Storage cost Total Increase
Q*=400Q^*=400 120 120 240 —
20% more, Q=480Q=480 100 144 244 ₹4 (1.7%)
40% less, Q=240Q=240 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.

↑ Back to the question list

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?

2019 · Paper II · Q1e · 10 marks

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. D=25,000D=25{,}000, S=₹21.6S=₹21.6, H=5.4%×1.25=₹0.0675H=5.4\%\times1.25=₹0.0675 per unit per year. Q*=2×25,000×21.60.0675=1,60,00,000=4,000 units.Q^*=\sqrt{\frac{2\times25{,}000\times21.6}{0.0675}}=\sqrt{1{,}60{,}00{,}000}=\boxed{4{,}000\text{ units}}. Ordering cost =25,0004,000×21.6=₹135=\frac{25{,}000}{4{,}000}\times21.6=₹135; carrying cost =4,0002×0.0675=₹135=\frac{4{,}000}2\times0.0675=₹135; total inventory cost =₹270=₹270. With the material (25,000×1.25=₹31,25025{,}000\times1.25=₹31{,}250), the total cost is ₹31,520 a year.

(ii) The discount offer. Buy all 25,000 units in one order at 1.25×0.94=₹1.1751.25\times0.94=₹1.175:

  • Material: 25,000×1.175=₹29,37525{,}000\times1.175=₹29{,}375
  • Ordering: one order, ₹21.60
  • Carrying: average stock 12,50012{,}500 units ×5.4%×1.175=₹793.13\times\,5.4\%\times1.175=₹793.13

Total =₹30,189.73=₹30{,}189.73, 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.

↑ Back to the question list

Discuss the single-period continuous probabilistic inventory model with instantaneous demand, shortages and continuous replenishment. The probability distribution of demand D is given by f(D)={0.02−0.0002D,0≤D≤1000,D>100 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.

2017 · Paper II · Q4c · 15 marks

Solution

The model. In a single period, an initial stock SS is set; the demand DD is a continuous random variable with density ff, and it occurs instantaneously at the start of the period (so after demand, S−DS-D is held, or D−SD-S is short, for the whole period). Let hh be the holding cost and pp the shortage cost per unit for the period. The expected cost is C(S)=h∫0S(S−x)f(x)dx+p∫S∞(x−S)f(x)dx.C(S)=h\int_0^S(S-x)f(x)\,dx+p\int_S^\infty(x-S)f(x)\,dx . Differentiating (Leibniz rule): C′(S)=h∫0Sf(x)dx−p∫S∞f(x)dx=(h+p)F(S)−p,C'(S)=h\int_0^Sf(x)\,dx-p\int_S^\infty f(x)\,dx=(h+p)F(S)-p, C″(S)=(h+p)f(S)≥0.C''(S)=(h+p)f(S)\ge0 . So the optimum order level S*S^* satisfies F(S*)=pp+h.\boxed{F(S^*)=\frac{p}{p+h}}. (“Continuous replenishment” here means the stock can be any real amount; the item is continuous rather than discrete.)

The data. h=0.50h=0.50, p=3.20p=3.20: pp+h=3.203.70=0.8649\dfrac p{p+h}=\dfrac{3.20}{3.70}=0.8649.

F(S)=∫0S(0.02−0.0002x)dx=0.02S−0.0001S2.F(S)=\int_0^S(0.02-0.0002x)\,dx=0.02S-0.0001S^2 . Set 0.02S−0.0001S2=0.86490.02S-0.0001S^2=0.8649, i.e. S2−200S+8,649=0S^2-200S+8{,}649=0: S=200−40,000−34,5952=200−73.522=63.24.S=\frac{200-\sqrt{40{,}000-34{,}595}}2=\frac{200-73.52}{2}=63.24 . (The other root, 136.8, is outside [0,100][0,100].)

The optimum order level is S*≈63.2 units\boxed{S^*\approx63.2\text{ units}}.

✓ 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].

↑ Back to the question list

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 f(x)={0.1,0≤x≤100,x>10 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.

2016 · Paper II · Q4a · 20 marks

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 (s,S)(s,S) policy.

Continuous demand, instantaneous demand, no set-up cost. With stock level zz, holding cost hh, shortage cost pp and purchase cost cc per unit, the expected cost C(z)=cz+h∫0z(z−x)f(x)dx+p∫z∞(x−z)f(x)dxC(z)=c\,z+h\int_0^z(z-x)f(x)\,dx+p\int_z^\infty(x-z)f(x)\,dx is least where C′(z)=c+(h+p)F(z)−p=0C'(z)=c+(h+p)F(z)-p=0, i.e. F(z*)=p−cp+h.F(z^*)=\frac{p-c}{p+h}.

Demand at a uniform rate during the day. Here the demand xx is spread evenly over the day. If x≤zx\le z, the stock falls from zz to z−xz-x and the average stock is z−x2z-\frac x2. If x>zx>z, the stock runs out after a fraction z/xz/x of the day, so the average stock is z22x\frac{z^2}{2x} and the average shortage is (x−z)22x\frac{(x-z)^2}{2x}. The expected cost is C(z)=cz+h[∫0z(z−x2)fdx+∫z∞z22xfdx]+p∫z∞(x−z)22xfdx.C(z)=cz+h\left[\int_0^z\Big(z-\frac x2\Big)f\,dx+\int_z^\infty\frac{z^2}{2x}f\,dx\right]+p\int_z^\infty\frac{(x-z)^2}{2x}f\,dx . Setting C′(z)=0C'(z)=0 gives the condition F(z)+z∫z∞f(x)xdx=p−cp+h.\boxed{F(z)+z\int_z^\infty\frac{f(x)}x\,dx=\frac{p-c}{p+h}}.

The data. f(x)=0.1f(x)=0.1 on [0,10][0,10], h=0.5h=0.5, p=4.5p=4.5, c=0.5c=0.5: p−cp+h=4.05.0=0.8\dfrac{p-c}{p+h}=\dfrac{4.0}{5.0}=0.8.

For 0<z<100<z<10: F(z)=0.1zF(z)=0.1z and z∫z100.1xdx=0.1zln10zz\displaystyle\int_z^{10}\frac{0.1}x\,dx=0.1z\ln\frac{10}z. So 0.1z[1+ln10z]=0.8.0.1z\left[1+\ln\frac{10}z\right]=0.8 . Solving numerically: at z=4.4z=4.4 the left side is 0.44(1+0.821)=0.8010.44(1+0.821)=0.801; the root is z=4.385z=4.385.

The optimum order level is z*≈4.39 units\boxed{z^*\approx4.39\text{ units}}.

(If the purchase cost were ignored, the right side would be p/(p+h)=0.9p/(p+h)=0.9, giving z≈5.88z\approx5.88. Because demand is spread over the day, the optimal stock is lower than in the instantaneous-demand model, where F(z)=0.8F(z)=0.8 would give z=8z=8.)

✓ 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.

↑ Back to the question list

Discuss Economic Lot Size model with constant demand and variable order cycle time.

2015 · Paper II · Q3b · 15 marks

Solution

Model (Harris–Wilson economic lot size model). Assumptions:

  1. Demand is uniform at a known rate RR units per unit time.
  2. Production (replenishment) is instantaneous; lead time is zero.
  3. No shortages are allowed.
  4. Holding cost C1C_1 per unit per unit time and set-up cost C3C_3 per run are constant.
  5. The cycle time tt (the interval between runs) is a decision variable — it is not fixed in advance.

Cost of one cycle. A lot of q=Rtq=Rt units is made at the start of a cycle of length tt; stock falls linearly from qq to 0, so the stock held in a cycle is the area of the triangle, 12qt=12Rt2\frac12qt=\frac12Rt^2. The cost of one cycle is C3+12C1Rt2.C_3+\tfrac12C_1Rt^2 .

Average cost per unit time. C(t)=C3t+12C1Rt.C(t)=\frac{C_3}{t}+\frac12C_1Rt .

Minimise. dCdt=−C3t2+12C1R=0\frac{dC}{dt}=-\frac{C_3}{t^2}+\frac12C_1R=0 ⇒t*=2C3C1R,\Longrightarrow\ t^*=\sqrt{\frac{2C_3}{C_1R}}, d2Cdt2=2C3t3>0.\frac{d^2C}{dt^2}=\frac{2C_3}{t^3}>0 .

Results. q*=Rt*=2C3RC1,\boxed{q^*=Rt^*=\sqrt{\frac{2C_3R}{C_1}}}, C*=C(t*)=2C1C3R.C^*=C(t^*)=\sqrt{2C_1C_3R}. At the optimum the set-up cost per unit time C3/t*C_3/t^* equals the holding cost per unit time 12C1Rt*\frac12C_1Rt^*, each 122C1C3R\frac12\sqrt{2C_1C_3R}.

Interpretation. The lot size q*q^* (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 t*t^*, small departures from q*q^* cost little.

Example. With R=600R=600 a year, C3=₹80C_3=₹80, C1=₹0.60C_1=₹0.60: t*=160/360=0.667t^*=\sqrt{160/360}=0.667 year, q*=400q^*=400, C*=₹240C^*=₹240 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).

↑ Back to the question list

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.

2015 · Paper II · Q4c · 15 marks

Solution

Costs in an inventory model.

  1. Purchase (production) cost — the price paid per unit, which matters when it depends on the quantity (discounts).
  2. 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.
  3. Holding (carrying) cost — cost of keeping stock: interest on capital, storage, insurance, taxes, deterioration and obsolescence. Proportional to the quantity held and the time.
  4. Shortage (stock-out) cost — penalty for running out: lost sales and goodwill, overtime, emergency orders, idle facilities.
  5. (Sometimes) the cost of operating the inventory system itself — records, control.

Model: constant demand, instantaneous supply, no shortages. Demand is DD units a year at a constant rate; each order of QQ units costs SS and arrives instantly when stock reaches zero; holding cost is HH per unit per year. Stock follows a saw-tooth: it jumps to QQ and falls linearly to 0, so the average stock is Q/2Q/2.

01230100200300400Time (in cycles of length t = Q/D)StockStockQ/210040070010000100200300400500Order quantity QCost per year (₹)OrderingHoldingTotal
Left: the classical EOQ model — stock is replenished instantly to Q and used at a constant rate, so the average stock is Q/2. Right: with D = 600, S = ₹80, H = ₹0.60 (Q6), the ordering and holding costs are equal at the EOQ, Q* = 400, where the total cost is least (₹240).

Total variable inventory cost per year. TC(Q)=DQS⏟ordering+Q2H⏟holding.TC(Q)=\underbrace{\frac DQ\,S}_{\text{ordering}}+\underbrace{\frac Q2\,H}_{\text{holding}} .

Optimal order quantity. dTCdQ=−DSQ2+H2=0\frac{d\,TC}{dQ}=-\frac{DS}{Q^2}+\frac H2=0 ⇒Q*=2DSH,\Longrightarrow\ \boxed{Q^*=\sqrt{\frac{2DS}H}}, d2TCdQ2=2DSQ3>0.\frac{d^2TC}{dQ^2}=\frac{2DS}{Q^3}>0 .

Optimum variable inventory cost. TC*=DS2DS/H+H22DSH=DSH2+DSH2=2DSH.TC^*=\frac{DS}{\sqrt{2DS/H}}+\frac H2\sqrt{\frac{2DS}H}=\sqrt{\frac{DSH}2}+\sqrt{\frac{DSH}2}=\boxed{\sqrt{2DSH}}.

Related results: number of orders D/Q*=DH/(2S)D/Q^*=\sqrt{DH/(2S)}, cycle time t*=Q*/D=2S/(DH)t^*=Q^*/D=\sqrt{2S/(DH)}. 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.

↑ Back to the question list

Discuss the inventory model with instantaneous stochastic demand with continuous replenishment unit and obtain the condition for finding the optimum inventory level.

2014 · Paper II · Q3c · 15 marks

Solution

The model. A single period. The stock level zz is set at the start. Demand xx is a continuous random variable with density f(x)f(x) and distribution F(x)F(x), and occurs instantaneously at the start of the period. “Continuous replenishment unit” means the item can be stocked in any (non-integer) quantity, so zz is a continuous variable. No set-up cost. Holding cost hh and shortage cost pp per unit for the period.

  • If x≤zx\le z, surplus z−xz-x is held: cost h(z−x)h(z-x).
  • If x>zx>z, shortage x−zx-z: cost p(x−z)p(x-z).

Expected cost. C(z)=h∫0z(z−x)f(x)dx+p∫z∞(x−z)f(x)dx.C(z)=h\int_0^z(z-x)f(x)\,dx+p\int_z^\infty(x-z)f(x)\,dx .

Optimum. By the Leibniz rule (the boundary terms vanish because the integrands are zero at x=zx=z): C′(z)=h∫0zf(x)dx−p∫z∞f(x)dx=hF(z)−p[1−F(z)]=(h+p)F(z)−p.C'(z)=h\int_0^zf(x)\,dx-p\int_z^\infty f(x)\,dx=hF(z)-p[1-F(z)]=(h+p)F(z)-p . C″(z)=(h+p)f(z)≥0,C''(z)=(h+p)f(z)\ge0, so CC is convex and its minimum is where C′(z)=0C'(z)=0: F(z*)=∫0z*f(x)dx=pp+h.\boxed{F(z^*)=\int_0^{z^*}f(x)\,dx=\frac p{p+h}}.

Interpretation. The optimum stock is the pp+h\frac p{p+h} 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 cc per unit, the condition becomes F(z*)=(p−c)/(p+h)F(z^*)=(p-c)/(p+h).

Example. With f(x)=0.02−0.0002xf(x)=0.02-0.0002x on [0,100][0,100], h=0.5h=0.5, p=3.2p=3.2 (Q8): F(z)=0.8649F(z)=0.8649 gives z*=63.2z^*=63.2.

✓ 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.

↑ Back to the question list

Discuss an inventory model with probabilistic demand.

2011 · Paper II · Q1e · 12 marks

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 zz 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 xx occurs, and surplus is held (cost hh per unit) or shortage incurred (cost pp per unit). No set-up cost.

(a) Discrete demand, instantaneous. Demand xx takes values 0,1,2,…0,1,2,\dots with probabilities p(x)p(x). Expected cost C(z)=h∑x≤z(z−x)p(x)+p∑x>z(x−z)p(x).C(z)=h\sum_{x\le z}(z-x)p(x)+p\sum_{x>z}(x-z)p(x). Then ΔC(z)=C(z+1)−C(z)=(h+p)F(z)−p\Delta C(z)=C(z+1)-C(z)=(h+p)F(z)-p. The optimum z*z^* satisfies ΔC(z*−1)<0≤ΔC(z*)\Delta C(z^*-1)<0\le\Delta C(z^*): F(z*−1)<pp+h≤F(z*).F(z^*-1)<\frac p{p+h}\le F(z^*).

(b) Continuous demand, instantaneous. With density ff, C(z)=h∫0z(z−x)fdx+p∫z∞(x−z)fdxC(z)=h\int_0^z(z-x)f\,dx+p\int_z^\infty(x-z)f\,dx, and C′(z)=(h+p)F(z)−p=0C'(z)=(h+p)F(z)-p=0 gives F(z*)=pp+h.F(z^*)=\frac p{p+h}.

(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 z−x2z-\frac x2 (when x≤zx\le z) or z22x\frac{z^2}{2x} (when x>zx>z). The optimum then satisfies F(z)+z∫z∞f(x)xdx=pp+hF(z)+z\int_z^\infty\frac{f(x)}x\,dx=\frac p{p+h} (discrete analogue: F(z−1)+(z−12)∑x≥zp(x)/x<pp+h<F(z)+(z+12)∑x>zp(x)/xF(z-1)+(z-\tfrac12)\sum_{x\ge z}p(x)/x<\frac p{p+h}<F(z)+(z+\tfrac12)\sum_{x>z}p(x)/x).

With purchase cost. If each unit costs cc, the ratio becomes (p−c)/(p+h)(p-c)/(p+h).

Profit form (newsboy). If each unit sold earns profit mm and each unsold unit loses ll, the order quantity satisfies F(Q*)=mm+lF(Q^*)=\dfrac m{m+l} — e.g. the bakery problems (Q17, Q22).

Multi-period models. When stock is carried over and ordering has a set-up cost KK, the optimal policy is of (s,S)(s,S) type: order up to SS whenever the stock falls below ss (see Q27).

Example. Demand 0–5 with probabilities 0.1, 0.2, 0.2, 0.3, 0.1, 0.1; h=1h=1, p=4p=4: p/(p+h)=0.8p/(p+h)=0.8; F=0.1,0.3,0.5,0.8,0.9,1F=0.1,0.3,0.5,0.8,0.9,1; since F(2)=0.5<0.8≤F(3)=0.8F(2)=0.5<0.8\le F(3)=0.8, z*=3z^*=3.

✓ 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.

↑ Back to the question list

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).

2011 · Paper II · Q3c · 15 marks

Solution

Data. D=24,000D=24{,}000 units a year, S=₹22.5S=₹22.5 per order, unit cost ₹1.25, carrying cost H=5.4%×1.25=₹0.0675H=5.4\%\times1.25=₹0.0675 per unit per year.

Economic lot size. Q*=2DSH=2×24,000×22.50.0675=1,60,00,000=4,000 units.Q^*=\sqrt{\frac{2DS}H}=\sqrt{\frac{2\times24{,}000\times22.5}{0.0675}}=\sqrt{1{,}60{,}00{,}000}=\boxed{4{,}000\text{ units}}. That is 24,000/4,000=624{,}000/4{,}000=6 orders a year, one every 2 months.

Total inventory cost.

  • Ordering cost =6×22.5=₹135=6\times22.5=₹135
  • Carrying cost =4,0002×0.0675=₹135=\frac{4{,}000}2\times0.0675=₹135
  • Cost of material =24,000×1.25=₹30,000=24{,}000\times1.25=₹30{,}000

Total cost (including material) =135+135+30,000=₹30,270 a year=135+135+30{,}000=\boxed{₹30{,}270\text{ a year}}.

✓ Checked by computer We checked in Python: Q* = √(2 × 24,000 × 22.5/0.0675) = 4,000 units, inventory cost ₹270, total ₹30,270.

↑ Back to the question list

Cover of the UPSC Mains Topic-wise and Year-wise PYQs book (2013–2026)

From the Optional Province team

Strengthen your GS papers

Our UPSC Mains Topic-wise & Year-wise PYQ Book (2013–2026) maps every GS question to the syllabus, so you know what UPSC asks and how often. Now available as a hard copy and an eBook.

Buy Hard Copy on AmazonBuy eBook (PDF)

Download a free sample

Explain fixed order quantity approach and periodic review approach in Inventory control.

2010 · Paper II · Q1e · 12 marks

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 ROPROP, a fixed quantity QQ (usually the EOQ, 2DS/H\sqrt{2DS/H}) is ordered.
  • ROP=ROP= demand during lead time ++ safety stock =d‾L+zσdL=\bar d\,L+z\,\sigma_d\sqrt L.
  • 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 TT (say every month).
  • At each review an order is placed to bring the stock up to a target (maximum) level MM: order quantity =M−=M- stock on hand (and on order).
  • M=d‾(T+L)+zσdT+LM=\bar d\,(T+L)+z\,\sigma_d\sqrt{T+L}: 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 (QQ) Varies (M−M- stock)
Order timing Varies (when stock hits ROP) Fixed (every TT)
Monitoring Continuous; perpetual records Only at reviews
Safety stock Covers lead time only — lower Covers T+LT+L — 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 (s,S)(s,S) policy: review periodically, and order up to SS only if the stock is below ss.

✓ 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.

↑ Back to the question list

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.

2010 · Paper II · Q3c · 15 marks

Solution

Data. D=2,500D=2{,}500 rivets a year, S=₹130S=₹130 per order, unit cost ₹30, carrying cost H=10%×30=₹3H=10\%\times30=₹3 per rivet per year.

Optimum order size. Q*=2DSH=2×2,500×1303=2,16,666.7=465.5≈466 rivets.Q^*=\sqrt{\frac{2DS}H}=\sqrt{\frac{2\times2{,}500\times130}{3}}=\sqrt{2{,}16{,}666.7}=465.5\approx\boxed{466\text{ rivets}}.

Frequency of orders.

  • Number of orders =2,500465.5=5.37=\dfrac{2{,}500}{465.5}=5.37 a year (about 5 or 6).
  • Time between orders =465.52,500=0.186=\dfrac{465.5}{2{,}500}=0.186 year ≈68 days\approx\boxed{68\text{ days}} (about 2142\tfrac14 months).

Minimum annual ordering + carrying cost =2DSH=2×2,500×130×3=₹1,396.42=\sqrt{2DSH}=\sqrt{2\times2{,}500\times130\times3}=₹1{,}396.42; with the rivets themselves (₹75,000₹75{,}000), ₹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.

↑ Back to the question list

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.

2009 · Paper II · Q3c · 20 marks

Solution

Model (single period, no set-up cost, continuous demand). A quantity QQ is made at the start of the period. Demand xx has density f(x)f(x). Each unit sold earns a profit mm; each unit left unsold is disposed of at a loss ll. (Equivalently, the cost of a shortage per unit is the lost profit mm, and the cost of a surplus per unit is ll.)

Expected profit: P(Q)=∫0Q[mx−l(Q−x)]f(x)dx+∫Q∞mQf(x)dx.P(Q)=\int_0^Q\big[mx-l(Q-x)\big]f(x)\,dx+\int_Q^\infty mQ\,f(x)\,dx . Differentiating (the boundary terms cancel): P′(Q)=−l∫0Qf(x)dx+m∫Q∞f(x)dx=−lF(Q)+m[1−F(Q)]=m−(m+l)F(Q),P'(Q)=-l\int_0^Qf(x)\,dx+m\int_Q^\infty f(x)\,dx=-lF(Q)+m[1-F(Q)]=m-(m+l)F(Q), P″(Q)=−(m+l)f(Q)≤0.P''(Q)=-(m+l)f(Q)\le0 . So the optimum quantity satisfies F(Q*)=mm+l.\boxed{F(Q^*)=\frac{m}{m+l}}. (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 QQ with F(Q)≥m/(m+l)F(Q)\ge m/(m+l).)

The bakery. m=₹5.00m=₹5.00, l=₹1.20l=₹1.20: mm+l=56.2=0.8065\dfrac{m}{m+l}=\dfrac{5}{6.2}=0.8065.

Demand is uniform on [2000,3000][2000,3000]: F(Q)=Q−20001000F(Q)=\dfrac{Q-2000}{1000}. So Q−20001000=0.8065\frac{Q-2000}{1000}=0.8065 ⇒Q*=2000+806.5=2,806.5 kg.\Longrightarrow\ Q^*=2000+806.5=\boxed{2{,}806.5\text{ kg}}. 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.

↑ Back to the question list

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.

2007 · Paper II · Q4c · 15 marks

Solution

Assumptions.

  • One period; the item is ordered once at the start (no set-up cost).
  • Replenishment is instantaneous.
  • Demand DD is a continuous random variable with density ff and distribution FF; demand occurs at the start of the period (instantaneous demand).
  • Costs: purchase cc per unit, holding hh per unit left over, shortage (penalty) pp per unit short, with p>cp>c.
  • Initial stock x0x_0 (often 0); we order y−x0y-x_0 to bring stock up to yy.

Expected cost. C(y)=c(y−x0)+h∫0y(y−x)f(x)dx+p∫y∞(x−y)f(x)dx⏟L(y).C(y)=c(y-x_0)+\underbrace{h\int_0^y(y-x)f(x)\,dx+p\int_y^\infty(x-y)f(x)\,dx}_{L(y)} .

Optimum. C′(y)=c+hF(y)−p[1−F(y)]=c−p+(h+p)F(y),C'(y)=c+hF(y)-p\,[1-F(y)]=c-p+(h+p)F(y), C″(y)=(h+p)f(y)≥0.C''(y)=(h+p)f(y)\ge0 . CC is convex, so the minimum is at y*y^* where F(y*)=p−cp+h.\boxed{F(y^*)=\frac{p-c}{p+h}}.

Optimal ordering policy.

  • If x0<y*x_0<y^*: order y*−x0y^*-x_0 (bring the stock up to y*y^*).
  • If x0≥y*x_0\ge y^*: do not order.

This is a base-stock (order-up-to) policy. y*y^* is the (p−c)/(p+h)(p-c)/(p+h) quantile of demand: the critical ratio of the cost of under-stocking (p−cp-c) to the total of under- and over-stocking costs (p−cp-c plus h+ch+c).

Remarks.

  • If there is no purchase cost (or it is sunk), F(y*)=pp+hF(y^*)=\frac p{p+h}.
  • In profit form (profit mm per unit sold, loss ll per unit unsold), F(y*)=mm+lF(y^*)=\frac m{m+l}.
  • If a set-up cost KK is added, the policy becomes (s,S)(s,S): order up to S=y*S=y^* only when x0<sx_0<s, where C(s)=K+C(S)C(s)=K+C(S) (see Q27).

Example. Demand uniform on [0,100][0,100], c=2c=2, h=1h=1, p=6p=6: F(y*)=4/7F(y^*)=4/7, so y*=57.1y^*=57.1.

✓ 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.

↑ Back to the question list

Discuss the inventory problem when the demand is stochastic having a discrete probability distribution.

2006 · Paper II · Q3b · 15 marks

Solution

Model. One period; stock level zz (an integer) is set at the start; no set-up cost. Demand xx is a discrete random variable, P(x)=pxP(x)=p_x, x=0,1,2,…x=0,1,2,\dots, with distribution F(z)=∑x≤zpxF(z)=\sum_{x\le z}p_x. Holding cost hh per unit left over; shortage cost pp per unit short.

(a) Instantaneous demand. C(z)=h∑x=0z(z−x)px+p∑x=z+1∞(x−z)px.C(z)=h\sum_{x=0}^z(z-x)p_x+p\sum_{x=z+1}^\infty(x-z)p_x . Because zz is discrete, we use finite differences. Raising the stock from zz to z+1z+1 adds hh for each outcome x≤zx\le z and saves pp for each x≥z+1x\ge z+1: ΔC(z)=C(z+1)−C(z)=hF(z)−p[1−F(z)]=(h+p)F(z)−p.\Delta C(z)=C(z+1)-C(z)=hF(z)-p\,[1-F(z)]=(h+p)F(z)-p . ΔC(z)\Delta C(z) increases with zz (since FF does), so CC is convex. z*z^* is optimal when ΔC(z*−1)<0≤ΔC(z*)\Delta C(z^*-1)<0\le\Delta C(z^*), i.e. F(z*−1)<pp+h≤F(z*).\boxed{F(z^*-1)<\frac p{p+h}\le F(z^*)}. So z*z^* is the smallest stock level at which the cumulative probability of demand reaches the critical ratio p/(p+h)p/(p+h).

(b) Demand uniform over the period. If demand xx is spread evenly over the period, the expected cost includes the average stock z−x2z-\frac x2 (when x≤zx\le z) or z22x\frac{z^2}{2x} (when x>zx>z), and average shortage (x−z)22x\frac{(x-z)^2}{2x}. The difference condition becomes L(z*−1)<pp+h<L(z*),L(z^*-1)<\frac p{p+h}<L(z^*), L(z)=F(z)+(z+12)∑x=z+1∞pxx.L(z)=F(z)+\Big(z+\tfrac12\Big)\sum_{x=z+1}^\infty\frac{p_x}x .

(c) With a purchase cost cc per unit, p/(p+h)p/(p+h) is replaced by (p−c)/(p+h)(p-c)/(p+h).

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; h=₹1h=₹1, p=₹4p=₹4.

zz 0 1 2 3 4 5
F(z)F(z) 0.05 0.15 0.40 0.75 0.90 1.00

p/(p+h)=0.8p/(p+h)=0.8; F(3)=0.75<0.8≤F(4)=0.90F(3)=0.75<0.8\le F(4)=0.90, so z*=4z^*=4 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.

↑ Back to the question list

What is an inventory system? Classify and discuss the different types of costs involved in an inventory system.

2005 · Paper II · Q4c · 15 marks

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, (s,S)(s,S)), 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.

  1. 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.

  2. 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.
  3. 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.
  4. 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.
  5. Salvage value and selling price — revenue from selling or disposing of surplus, which reduces costs (important in single-period problems).

  6. 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.

↑ Back to the question list

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.

2001 · Paper II · Q3b · 20 marks

Solution

Notation. RR = demand per unit time (constant), C1C_1 = holding cost per unit per unit time, C2C_2 = shortage cost per unit per unit time, C3C_3 = set-up cost per run, qq = lot size, t=q/Rt=q/R = cycle time.

(i) Deterministic continuous demand, instantaneous supply, no shortages. Assumptions: demand uniform at rate RR; instantaneous replenishment, zero lead time; no shortages; C1C_1, C3C_3 constant.

Stock falls linearly from qq to 0 in each cycle; average stock q/2q/2. Cost per unit time: C(q)=C3Rq+C1q2,C(q)=\frac{C_3R}{q}+\frac{C_1q}2, C′(q)=−C3Rq2+C12=0,C'(q)=-\frac{C_3R}{q^2}+\frac{C_1}2=0, q*=2C3RC1,\boxed{q^*=\sqrt{\frac{2C_3R}{C_1}}}, C*=2C1C3R,C^*=\sqrt{2C_1C_3R}, t*=2C3C1R.t^*=\sqrt{\frac{2C_3}{C_1R}} . C″(q)=2C3R/q3>0C''(q)=2C_3R/q^3>0, 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 qq clears the backlog and leaves stock SS. Stock is positive for t1=S/Rt_1=S/R and negative for t2=(q−S)/Rt_2=(q-S)/R. Per cycle: holding C1⋅12St1=C1S22RC_1\cdot\frac12St_1=\frac{C_1S^2}{2R}, shortage C2(q−S)22R\frac{C_2(q-S)^2}{2R}, set-up C3C_3. Dividing by t=q/Rt=q/R: C(q,S)=C1S22q+C2(q−S)22q+C3Rq.C(q,S)=\frac{C_1S^2}{2q}+\frac{C_2(q-S)^2}{2q}+\frac{C_3R}{q}. ∂C∂S=C1S−C2(q−S)q=0\frac{\partial C}{\partial S}=\frac{C_1S-C_2(q-S)}{q}=0 ⇒S=C2C1+C2q.\Longrightarrow\ S=\frac{C_2}{C_1+C_2}\,q . Substituting, C=C1C2C1+C2⋅q2+C3RqC=\dfrac{C_1C_2}{C_1+C_2}\cdot\dfrac q2+\dfrac{C_3R}q, which is least at q*=2C3RC1⋅C1+C2C2,\boxed{q^*=\sqrt{\frac{2C_3R}{C_1}\cdot\frac{C_1+C_2}{C_2}}}, S*=2C3RC1⋅C2C1+C2,S^*=\sqrt{\frac{2C_3R}{C_1}\cdot\frac{C_2}{C_1+C_2}}, C*=2C1C3RC2C1+C2.C^*=\sqrt{2C_1C_3R\frac{C_2}{C_1+C_2}} . As C2→∞C_2\to\infty (shortages prohibitive), these reduce to (i).

(iii) Deterministic continuous production (finite replenishment rate). Assumptions: production at a constant rate K>RK>R; demand at rate RR; no shortages; set-up cost C3C_3 per run.

During a run of length t1=q/Kt_1=q/K, stock builds up at rate K−RK-R, reaching Imax=(K−R)t1=q(1−RK)I_{\max}=(K-R)t_1=q\left(1-\frac RK\right), then falls at rate RR. Average stock =12q(1−RK)=\frac12q\left(1-\frac RK\right). Cost per unit time: C(q)=C3Rq+C1q2(1−RK),C(q)=\frac{C_3R}q+\frac{C_1q}2\left(1-\frac RK\right), q*=2C3RC1(1−RK)=2C3RKC1(K−R),\boxed{q^*=\sqrt{\frac{2C_3R}{C_1\left(1-\frac RK\right)}}=\sqrt{\frac{2C_3RK}{C_1(K-R)}}}, C*=2C1C3R(1−RK).C^*=\sqrt{2C_1C_3R\left(1-\frac RK\right)} . As K→∞K\to\infty (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))).

↑ Back to the question list

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 f(d)=0.03−0.0000d,0≤d≤c, find the optimum amount of cake the company should bake daily.

2000 · Paper II · Q3c · 15 marks

Solution

Note on the question. The density as printed, “0.03−0.0000d0.03-0.0000d, 0≤d≤c0\le d\le c”, has a garbled coefficient. The standard version of this problem has f(d)=0.03−0.00045d,f(d)=0.03-0.00045d, 0≤d≤66.67,0\le d\le66.67, which is a proper density: it falls to 0 at d=66.67d=66.67 and ∫066.67f=0.03(66.67)−0.000225(66.67)2=2−1=1\int_0^{66.67}f=0.03(66.67)-0.000225(66.67)^2=2-1=1. We solve that version (demand in kg).

Condition. With profit m=₹0.95m=₹0.95 per kg sold and loss l=₹1.15l=₹1.15 per kg unsold, the expected profit is maximised (see Q17) where F(Q*)=mm+l=0.952.10=0.4524.F(Q^*)=\frac m{m+l}=\frac{0.95}{2.10}=0.4524 .

Solve. F(Q)=∫0Q(0.03−0.00045d)dd=0.03Q−0.000225Q2.F(Q)=\int_0^Q(0.03-0.00045d)\,dd=0.03Q-0.000225Q^2 . 0.000225Q2−0.03Q+0.4524=00.000225Q^2-0.03Q+0.4524=0 ⇒Q=0.03−0.0009−0.0004070.00045=0.03−0.02220.00045=17.33.\Longrightarrow\ Q=\frac{0.03-\sqrt{0.0009-0.000407}}{0.00045}=\frac{0.03-0.0222}{0.00045}=17.33 . (The other root, 116, lies outside the range of demand.)

The company should bake about 17.3 kg\boxed{17.3\text{ kg}} 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.

↑ Back to the question list

What is the main problem in inventory management? Discuss the various costs involved in an inventory problem.

1999 · Paper II · Q7a · 20 marks

Solution

The main problem. Inventory management must answer two questions for each item:

  1. How much to order (the order quantity or lot size), and
  2. 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, Q*=2DS/HQ^*=\sqrt{2DS/H}, 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.

↑ Back to the question list

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 q=2RC3(C1+C2)C1C2 Where C1 = storage cost per unit per year, C2 = shortage cost per unit per year, C3 = set up cost per run.

1999 · Paper II · Q7b · 20 marks

Solution

Assumptions. Demand is uniform at RR units per year; production is instantaneous; shortages are allowed and backlogged (filled when the next run arrives); C1C_1 = storage cost and C2C_2 = shortage cost per unit per year; C3C_3 = set-up cost per run. Let qq be the run size, t=q/Rt=q/R the cycle time, and SS the stock just after a run (after clearing the backlog).

0123-4-20246Time (in cycles of length t = q/R)Stock (negative = backlog)Stock
Inventory with shortages (backlogged): each run of q brings the stock up to S after clearing the backlog. Stock is held for t₁ = S/R and short for t₂ = (q − S)/R in each cycle.

One cycle.

  • Stock is positive for t1=S/Rt_1=S/R; the stock held is the area of a triangle, 12St1=S22R\frac12St_1=\frac{S^2}{2R}. Storage cost =C1S22R=\dfrac{C_1S^2}{2R}.
  • Shortage lasts t2=(q−S)/Rt_2=(q-S)/R; the shortage is 12(q−S)t2=(q−S)22R\frac12(q-S)t_2=\frac{(q-S)^2}{2R}. Shortage cost =C2(q−S)22R=\dfrac{C_2(q-S)^2}{2R}.
  • Set-up cost =C3=C_3.

Cost per year (divide by t=q/Rt=q/R): C(q,S)=C1S22q+C2(q−S)22q+RC3q.C(q,S)=\frac{C_1S^2}{2q}+\frac{C_2(q-S)^2}{2q}+\frac{RC_3}q .

Optimal SS for a given qq. ∂C∂S=C1Sq−C2(q−S)q=0\frac{\partial C}{\partial S}=\frac{C_1S}{q}-\frac{C_2(q-S)}{q}=0 ⇒S=C2C1+C2q,\Longrightarrow\ S=\frac{C_2}{C_1+C_2}\,q, q−S=C1C1+C2q.q-S=\frac{C_1}{C_1+C_2}\,q .

Substitute. C1S2+C2(q−S)22q=q2⋅C1C22+C2C12(C1+C2)2\frac{C_1S^2+C_2(q-S)^2}{2q}=\frac{q}{2}\cdot\frac{C_1C_2^2+C_2C_1^2}{(C_1+C_2)^2} =q2⋅C1C2C1+C2,=\frac q2\cdot\frac{C_1C_2}{C_1+C_2}, so C(q)=q2⋅C1C2C1+C2+RC3q.C(q)=\frac q2\cdot\frac{C_1C_2}{C_1+C_2}+\frac{RC_3}q .

Optimal qq. C′(q)=12⋅C1C2C1+C2−RC3q2=0C'(q)=\frac12\cdot\frac{C_1C_2}{C_1+C_2}-\frac{RC_3}{q^2}=0 ⇒q=2RC3(C1+C2)C1C2.\Longrightarrow\ \boxed{q=\sqrt{\frac{2RC_3(C_1+C_2)}{C_1C_2}}}. C″(q)=2RC3/q3>0C''(q)=2RC_3/q^3>0 and the Hessian of C(q,S)C(q,S) is positive definite, so this is the minimum. ∎

Also S*=2RC3C2C1(C1+C2)S^*=\sqrt{\dfrac{2RC_3C_2}{C_1(C_1+C_2)}} and the minimum cost is 2RC1C3C2C1+C2\sqrt{2RC_1C_3\dfrac{C_2}{C_1+C_2}}. When C2→∞C_2\to\infty, q→2RC3/C1q\to\sqrt{2RC_3/C_1}, 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₂)).

↑ Back to the question list

Discuss An inventors’ model with probabilistic demand.

1998 · Paper II · Q11a · 15 marks

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 zz 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 xx occurs, and surplus is held (cost hh per unit) or shortage incurred (cost pp per unit). No set-up cost.

(a) Discrete demand, instantaneous. Demand xx takes values 0,1,2,…0,1,2,\dots with probabilities p(x)p(x). Expected cost C(z)=h∑x≤z(z−x)p(x)+p∑x>z(x−z)p(x).C(z)=h\sum_{x\le z}(z-x)p(x)+p\sum_{x>z}(x-z)p(x). Then ΔC(z)=C(z+1)−C(z)=(h+p)F(z)−p\Delta C(z)=C(z+1)-C(z)=(h+p)F(z)-p. The optimum z*z^* satisfies ΔC(z*−1)<0≤ΔC(z*)\Delta C(z^*-1)<0\le\Delta C(z^*): F(z*−1)<pp+h≤F(z*).F(z^*-1)<\frac p{p+h}\le F(z^*).

(b) Continuous demand, instantaneous. With density ff, C(z)=h∫0z(z−x)fdx+p∫z∞(x−z)fdxC(z)=h\int_0^z(z-x)f\,dx+p\int_z^\infty(x-z)f\,dx, and C′(z)=(h+p)F(z)−p=0C'(z)=(h+p)F(z)-p=0 gives F(z*)=pp+h.F(z^*)=\frac p{p+h}.

(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 z−x2z-\frac x2 (when x≤zx\le z) or z22x\frac{z^2}{2x} (when x>zx>z). The optimum then satisfies F(z)+z∫z∞f(x)xdx=pp+hF(z)+z\int_z^\infty\frac{f(x)}x\,dx=\frac p{p+h} (discrete analogue: F(z−1)+(z−12)∑x≥zp(x)/x<pp+h<F(z)+(z+12)∑x>zp(x)/xF(z-1)+(z-\tfrac12)\sum_{x\ge z}p(x)/x<\frac p{p+h}<F(z)+(z+\tfrac12)\sum_{x>z}p(x)/x).

With purchase cost. If each unit costs cc, the ratio becomes (p−c)/(p+h)(p-c)/(p+h).

Profit form (newsboy). If each unit sold earns profit mm and each unsold unit loses ll, the order quantity satisfies F(Q*)=mm+lF(Q^*)=\dfrac m{m+l} — e.g. the bakery problems (Q17, Q22).

Multi-period models. When stock is carried over and ordering has a set-up cost KK, the optimal policy is of (s,S)(s,S) type: order up to SS whenever the stock falls below ss (see Q27).

Example. Demand 0–5 with probabilities 0.1, 0.2, 0.2, 0.3, 0.1, 0.1; h=1h=1, p=4p=4: p/(p+h)=0.8p/(p+h)=0.8; F=0.1,0.3,0.5,0.8,0.9,1F=0.1,0.3,0.5,0.8,0.9,1; since F(2)=0.5<0.8≤F(3)=0.8F(2)=0.5<0.8\le F(3)=0.8, z*=3z^*=3.

✓ 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.

↑ Back to the question list

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.

1997 · Paper II · Q11c · 20 marks

Solution

The Moran dam model (discrete). A dam has finite capacity KK (in units of water). Time is discrete (say years or seasons).

  • In period tt, an input XtX_t flows in; the XtX_t are i.i.d. non-negative integers.
  • If the content would exceed KK, the excess overflows.
  • At the end of the period a release of MM units is made if available; if less than MM is present, all of it is released.

If ZtZ_t is the content at the start of period tt (after the previous release), Zt+1=min(Zt+Xt,K)−min(min(Zt+Xt,K),M).Z_{t+1}=\min(Z_t+X_t,\,K)-\min\big(\min(Z_t+X_t,K),\,M\big). {Zt}\{Z_t\} is a Markov chain on {0,1,…,K−M}\{0,1,\dots,K-M\}. Moran used it to study the probabilities that the dam runs dry or overflows.

Geometric inputs, unit release. Take M=1M=1 and P(X=x)=bax,P(X=x)=b\,a^x, x=0,1,2,…,b=1−a.x=0,1,2,\dots,\quad b=1-a . The states are 0,1,…,K−10,1,\dots,K-1. From state ii:

  • to 00 if i+X≤1i+X\le1;
  • to jj (1≤j≤K−21\le j\le K-2) if X=j+1−iX=j+1-i: probability baj+1−ib\,a^{j+1-i} (for j+1≥ij+1\ge i);
  • to K−1K-1 if i+X≥Ki+X\ge K: probability P(X≥K−i)=aK−iP(X\ge K-i)=a^{K-i}.

Balance equations πj=∑iπiPij\pi_j=\sum_i\pi_iP_{ij}: π0=π0(b+ab)+π1b,\pi_0=\pi_0(b+ab)+\pi_1b, πj=b[π0aj+1+∑i=1j+1πiaj+1−i](1≤j≤K−2).\pi_j=b\Big[\pi_0a^{j+1}+\sum_{i=1}^{j+1}\pi_ia^{j+1-i}\Big]\ (1\le j\le K-2).

Solve.

  • From the first: π0(1−b−ab)=π1b\pi_0(1-b-ab)=\pi_1b. Since 1−b−ab=a−ab=a21-b-ab=a-ab=a^2, we get π1=a2bπ0\pi_1=\dfrac{a^2}{b}\pi_0.
  • Subtracting a×a\times(equation for j−1j-1) from the equation for jj (the sums telescope): πj−aπj−1=bπj+1(2≤j≤K−2),\pi_j-a\pi_{j-1}=b\,\pi_{j+1}\qquad(2\le j\le K-2), and for j=1j=1, π1−a2π0=bπ2\pi_1-a^2\pi_0=b\,\pi_2.
  • Let ρ=a/b\rho=a/b. Try πj=caρj\pi_j=c\,a\,\rho^j for j≥1j\ge1 with π0=c\pi_0=c. Then π1=ca2/b\pi_1=ca^2/b ✓; π2=(π1−a2π0)/b=ca2(1−b)/b2=caρ2\pi_2=(\pi_1-a^2\pi_0)/b=ca^2(1-b)/b^2=ca\rho^2 ✓; and for j≥2j\ge2, (πj−aπj−1)/b=caρj−1(ρ−a)/b=caρj−1⋅a2b2=caρj+1(\pi_j-a\pi_{j-1})/b=ca\rho^{j-1}(\rho-a)/b=ca\rho^{j-1}\cdot\frac{a^2}{b^2}=ca\rho^{j+1} ✓, since ρ−a=a2/b\rho-a=a^2/b.
  • The equation for state K−1K-1 is then automatically satisfied (the rows of PP sum to 1).

Stationary distribution of the dam content. π0=c,\boxed{\pi_0=c}, πj=ca(ab)j(j=1,…,K−1),\boxed{\pi_j=c\,a\left(\frac ab\right)^j\quad(j=1,\dots,K-1)}, where cc is fixed by ∑πj=1\sum\pi_j=1: c=[1+a∑j=1K−1ρj]−1=[1+aρ(1−ρK−1)1−ρ]−1(ρ≠1),c=\left[1+a\sum_{j=1}^{K-1}\rho^j\right]^{-1}=\left[1+\frac{a\rho(1-\rho^{K-1})}{1-\rho}\right]^{-1}\quad(\rho\ne1), and c=1/(1+a(K−1))=2/(K+1)c=1/(1+a(K-1))=2/(K+1) when a=b=12a=b=\tfrac12.

Check (K=3K=3): π∝(b2,a2b,a3)\pi\propto(b^2,\,a^2b,\,a^3), normaliser b2+a2b+a3=b2+a2=1−2a+2a2b^2+a^2b+a^3=b^2+a^2=1-2a+2a^2.

Interpretation. π0\pi_0 is the long-run probability that the dam is empty after release (so the next release may fail), and πK−1\pi_{K-1} is the probability that it is full. If a<12a<\tfrac12 (mean input a/b<1a/b<1, less than the release), the content tends to be low; if a>12a>\tfrac12 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.

↑ Back to the question list

State the (s, S) policy in an inventory problem. Derive this policy when the demand has a negative exponential distribution.

1995 · Paper II · Q10a · 20 marks

Solution

The (s,S)(s,S) policy. When an order has a fixed (set-up) cost KK as well as a unit cost, it is not worth ordering a small amount. The optimal policy has two numbers s≤Ss\le S:

  • if the stock xx at the start of the period is below ss, order S−xS-x (bring the stock up to SS);
  • if x≥sx\ge s, do not order.

Single-period model. Purchase cost cc per unit, set-up cost KK, holding cost hh and shortage cost pp (p>cp>c) per unit at the end of the period, demand DD with density ff. With stock yy after ordering, the expected holding and shortage cost is L(y)=h∫0y(y−x)f(x)dx+p∫y∞(x−y)f(x)dx.L(y)=h\int_0^y(y-x)f(x)\,dx+p\int_y^\infty(x-y)f(x)\,dx . Let G(y)=cy+L(y)G(y)=cy+L(y). Starting from xx, the cost is G(x)−cxG(x)-cx if we do not order, and K+G(y)−cxK+G(y)-cx if we order up to y>xy>x.

GG is convex (G″=(h+p)f≥0G''=(h+p)f\ge0), with minimum at SS where G′(S)=c+(h+p)F(S)−p=0G'(S)=c+(h+p)F(S)-p=0: F(S)=p−cp+h.F(S)=\frac{p-c}{p+h}. Ordering is worthwhile only if K+G(S)<G(x)K+G(S)<G(x). Since GG is convex and decreasing on x<Sx<S, define s<Ss<S by G(s)=K+G(S).G(s)=K+G(S). Then: for x<sx<s, G(x)>K+G(S)G(x)>K+G(S), so order up to SS; for s≤x≤Ss\le x\le S, G(x)≤K+G(S)G(x)\le K+G(S), so do not order; for x>Sx>S, ordering only raises the cost. This proves the (s,S)(s,S) policy is optimal.

Negative exponential demand, f(x)=λe−λxf(x)=\lambda e^{-\lambda x}, x≥0x\ge0 (mean 1/λ1/\lambda): ∫y∞(x−y)λe−λxdx=e−λyλ,\int_y^\infty(x-y)\lambda e^{-\lambda x}dx=\frac{e^{-\lambda y}}\lambda, ∫0y(y−x)λe−λxdx=y−1λ+e−λyλ.\int_0^y(y-x)\lambda e^{-\lambda x}dx=y-\frac1\lambda+\frac{e^{-\lambda y}}\lambda . So L(y)=h(y−1λ)+(h+p)e−λyλ,L(y)=h\Big(y-\frac1\lambda\Big)+\frac{(h+p)e^{-\lambda y}}{\lambda}, G(y)=(c+h)y−hλ+(h+p)e−λyλ.G(y)=(c+h)y-\frac h\lambda+\frac{(h+p)e^{-\lambda y}}\lambda .

Order-up-to level SS: G′(S)=c+h−(h+p)e−λS=0G'(S)=c+h-(h+p)e^{-\lambda S}=0 gives S=1λlnp+hc+h.\boxed{S=\frac1\lambda\ln\frac{p+h}{c+h}}.

Reorder level ss: G(s)=K+G(S)G(s)=K+G(S). Using (h+p)e−λS=c+h(h+p)e^{-\lambda S}=c+h, (c+h)s+(h+p)λe−λs=K+(c+h)(S+1λ),\boxed{(c+h)\,s+\frac{(h+p)}{\lambda}e^{-\lambda s}=K+(c+h)\Big(S+\frac1\lambda\Big)}, s<S,s<S, which is solved numerically for ss.

Example. λ=0.1\lambda=0.1 (mean demand 10), c=1c=1, h=1h=1, p=9p=9, K=5K=5: S=10ln5=16.09S=10\ln5=16.09. The equation 2s+100e−0.1s=5+2(26.09)=57.192s+100e^{-0.1s}=5+2(26.09)=57.19 gives s≈9.8s\approx9.8. 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 KK-convexity of the cost functions keeps the (s,S)(s,S) 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).

↑ Back to the question list

Describe a multi-period stochastic inventory model allowing for a discount factor. How would you extend this model to the infinite period case?

1995 · Paper II · Q10b · 20 marks

Solution

Set-up. Periods n=1,2,…n=1,2,\dots; at the start of each period we see the stock xx and order to bring it up to y≥xy\ge x (instantaneous delivery). Demands D1,D2,…D_1,D_2,\dots are i.i.d. with density ff. Unsatisfied demand is backlogged. Costs per period: purchase cc per unit, holding hh per unit left at the end, shortage pp per unit backlogged. Costs one period later are multiplied by a discount factor α\alpha (0<α<10<\alpha<1, e.g. α=1/(1+r)\alpha=1/(1+r)). No set-up cost.

One-period expected holding and shortage cost: L(y)=h∫0y(y−ξ)f(ξ)dξ+p∫y∞(ξ−y)f(ξ)dξ.L(y)=h\int_0^y(y-\xi)f(\xi)\,d\xi+p\int_y^\infty(\xi-y)f(\xi)\,d\xi .

Finite horizon (dynamic programming). Let Cn(x)C_n(x) be the minimum expected discounted cost with nn periods left and initial stock xx. Then Cn(x)=miny≥x{c(y−x)+L(y)+α∫0∞Cn−1(y−ξ)f(ξ)dξ},C_n(x)=\min_{y\ge x}\Big\{c(y-x)+L(y)+\alpha\int_0^\infty C_{n-1}(y-\xi)f(\xi)\,d\xi\Big\}, C0≡0.C_0\equiv0 . Write Gn(y)=cy+L(y)+αECn−1(y−D)G_n(y)=cy+L(y)+\alpha E\,C_{n-1}(y-D). By induction Cn−1C_{n-1} is convex, so GnG_n is convex with a minimum at some yn*y_n^*. Hence the optimal policy in period nn is a base-stock policy: if x<yn*x<y_n^* order yn*−xy_n^*-x, otherwise order nothing. yn*y_n^* solves Gn′(y)=0G_n'(y)=0. For n=1n=1: F(y1*)=p−cp+hF(y_1^*)=\dfrac{p-c}{p+h} (the single-period result).

Infinite horizon. With α<1\alpha<1, the discounted costs are bounded and Cn→CC_n\to C, which satisfies the functional equation C(x)=miny≥x{c(y−x)+L(y)+α∫0∞C(y−ξ)f(ξ)dξ}.C(x)=\min_{y\ge x}\Big\{c(y-x)+L(y)+\alpha\int_0^\infty C(y-\xi)f(\xi)\,d\xi\Big\}. The optimal policy is stationary: order up to the same level S*S^* every period. To find it, note that if we order up to SS each period (and x≤Sx\le S after the first period, since stock only falls), then next period we order S−(y−D)S-(y-D), costing c(S−y+D)c(S-y+D). The part of the total cost that depends on yy is therefore cy+L(y)−αcy=(1−α)cy+L(y),cy+L(y)-\alpha c\,y=(1-\alpha)c\,y+L(y), which is minimised where (1−α)c+(h+p)F(y)−p=0(1-\alpha)c+(h+p)F(y)-p=0: F(S*)=p−(1−α)cp+h.\boxed{F(S^*)=\frac{p-(1-\alpha)c}{p+h}}.

Remarks.

  • When α→1\alpha\to1 (no discounting), F(S*)→p/(p+h)F(S^*)\to p/(p+h): in the long run every unit bought is eventually used, so the purchase cost no longer affects the level.
  • With a set-up cost KK, the optimal policy becomes (s,S)(s,S) 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 LL periods, the same rule applies to the inventory position (stock on hand + on order − backlog), using the distribution of demand over L+1L+1 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).

↑ Back to the question list

Write a note on dam type storage models.

1995 · Paper II · Q10c · 20 marks

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 KK; in period tt an input XtX_t (i.i.d.) arrives; overflow is lost; then a release MM is made (or the whole content, if less than MM): Zt+1=min(Zt+Xt,K)−min[min(Zt+Xt,K),M].Z_{t+1}=\min(Z_t+X_t,K)-\min\big[\min(Z_t+X_t,K),\,M\big]. {Zt}\{Z_t\} is a finite Markov chain with states 0,…,K−M0,\dots,K-M; its stationary distribution gives the long-run probabilities of emptiness and overflow. Example: with geometric inputs P(X=x)=(1−a)axP(X=x)=(1-a)a^x and M=1M=1, π0=c\pi_0=c and πj=ca(a/(1−a))j\pi_j=c\,a\,(a/(1-a))^j (see Q26).

2. Infinite dam. With no capacity limit, Zt+1=max(Zt+Xt−M,0)Z_{t+1}=\max(Z_t+X_t-M,0). 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 E(X)<ME(X)<M.

3. Continuous-time models. Inputs arrive as a compound Poisson process (Gani, Prabhu, Kendall), and water is released at a constant rate 11 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.

↑ Back to the question list

More on Optimization Techniques

Questions: UPSC Civil Services (Main) Examination, Statistics Paper II, 1995–2026. Solutions: Optional Province. Found an error? Tell us.

Spotted an error? Tell us.

We classify every PYQ with care, but mistakes can slip in. If a question is in the wrong topic, has a typo, the wrong year, or is missing, let us know. We review every report and update the page.

Report an Error
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted