Fatih Pense's Blog
Recursive Dynamic Programming Example (Operations Research)
Wednesday, December 21st, 2022
Question
ItΔ±r Co. has announced the introduction of an exciting new perfume. The product manager wants to plan for the next π months. The productivity rate of each worker is π bottles of perfume per month. Perfume can be stored from one month to the next, but due to spoilage and pilferage, there is π% loss. (So, for each 100 bottles stored in month π‘, only (100 β π) β 100% bottles are available in month π‘ + 1.) Initially, there are π workers; each month, additional workers may be hired if needed, fired if not needed, or kept on the payroll but left idle. Workers left idle have a tendency to quit, and the attrition rate is π%. (Hence, for each 100 workers left idle in month π‘, only (100 β π) β 100% of them choose to remain on the work force at month π‘ + 1.) For each month π‘, unit costs are
Solution
The last stage:
State
: workers remaining from previous stage : bottles of inventory remaining from previous stage
Decisions for each stage
: how many workers to produce perfume : how many workers to hire : how many workers to fire
Costs
: workers engaged in production : workers left idle : hiring cost : firing cost : inventory cost