Lesson 10b: Aggregate Planning Finding An Optimal Production Plan Using Excel Solver
Lesson 10b: Aggregate Planning Finding An Optimal Production Plan Using Excel Solver
This lesson illustrates the procedure of finding an optimal production plan using
Excel Solver. Download the Excel file Lesson_10b_Agg_P_w03_331.xls from the
course website and follow the instruction under “Setting up the Spreadsheet” and
“Setting up the Excel Solver”.
Input: Demand forecast for each quarter, number of workers available in the
beginning, hiring and firing costs per worker, straighttime and over time costs per
hour, inventory holding and backorder costs per unit, productivity (units per hour),
working hours (hours per day and days per quarter) and beginning inventory.
Output (Decision Variables): Decide for each quarter: number of workers hired/
fired, overtime hours, number of units in the ending inventory and backorder.
Relationships
1. Inventory at the beginning of the current quarter (except the first quarter) =
positive inventory of the previous quarter – units backordered in the previous
quarter
5. Inventory at the end of the current quarter = Actual number of units produced
in the current quarter + Inventory at the beginning of the current quarter –
Demand forecast of the current quarter
6. Inventory at the end of the current quarter = positive inventory of the current
quarter – units backordered in the current quarter
1
7. Costs:
Straight-time cost=(regular production hours)(straight-time cost per hour)
Overtime cost=(overtime production hours)(overtime cost per hour)
Inventory holding cost=(ending inventory)(holding cost per unit)
Backorder cost=(units backordered)(backorder cost per unit)
Hiring cost=(number of workers hired)(hiring cost per worker)
Firing cost=(number of workers fired)(firing cost per worker)
The Problem
Minimize total cost such that ending inventory computed in (5) equals ending
inventory computed in (6).
A spreadsheet is set up to compute the total cost from the given values of inputs
and decision variables.
Input:
Known input values are entered in each of the cells below:
B5: Initial number of workers
B8: Hiring cost for each temporary workers
B9: Firing cost for each worker laid off
B11: Straight-time cost per hour
B12: Overtime cost per hour
B14: Holding cost per unit-quarter
B15: Backorder cost per unit
B16: Number of units produced per worker-hour
B17: Number of hours worked per day
B18: Number of days worked per quarter
B23 to B26: Forecast of demand in fall, winter, spring and summer
C23: Initial inventory, in the beginning of fall
2
A B C D E F G
1 Lab Exercise
2
3 Problem 7: Linear optimization
4
5 Number of Workers 30
6
7 Recruitment costs
8 Hiring cost 100 for each temporary worker
9 Firing cost 200 for each worker laid off
10 Wages
11 Straight time cost 5 per hour
12 Overtime cost 8 per hour
13 Inventory costs
14 Holding cost 5 per unit-quarter
15 Backorder cost 10 per unit
16 Productivity 0.5 units per worker hour
17 Working hours 8 hours per day
18 60 days per season
19
20 Forecast Beginning Workers Workers Total Overtime
21 Inventory Hired Fired Workers Hours
22
23 Fall 10000 500 5 0 ? 0
24 Winter 8000 ? 0 5 ? 0
25 Spring 7000 ? 0 5 ? 0
26 Summer 12000 ? 2 0 ? 0
27
28 Regular Actual Ending Positive Backorder Ending
29 Production Production Inventory Inventory Inventory
30 Hours Units Computed Chosen
31 Fall ? ? ? 0 0 ?
32 Winter ? ? ? 0 0 ?
33 Spring ? ? ? 0 0 ?
34 Summer ? ? ? 0 5000 ?
35
36 Bakorder Overtime Hiring Firing Inventory Straight-
37 Cost Cost Cost Cost Holding time
38 Cost Cost
39 Fall ? ? ? ? ? ?
40 Winter ? ? ? ? ? ?
41 Spring ? ? ? ? ? ?
42 Summer ? ? ? ? ? ?
43
44 Total cost ?
3
Relationships
Formulae are entered for relationships explained below:
1. Inventory at the beginning of the current quarter (except the first quarter) =
positive inventory of the previous quarter – units backordered in the previous
quarter
C24 = D31 (copied to C25 and C26)
2. Number of workers available in the current quarter = number of workers
employed in the previous quarter + number of workers hired in the current
quarter – number of workers fired in the current quarter
F23 = $B$5+D23–E23
F24 = F23+D24–E24 (copied to C25 and C26)
3. Regular production hours in a quarter = (Number of workers available in the
current quarter) (Number of working hours per day) (Number of working
days per quarter)
B31 = F23*$B$17*$B$18 (copied to B32, B33 and B34)
4
Setting up the Excel Solver
1. Add-in Solver, if needed: Click on the “Tools” menu. If the “Solver” is not one
of the items of the “Tools” menu, choose the “Add-Ins.” Click on the box
adjacent to “Solver Add-In” (a check mark will appear) and click “OK.”
2. Define objective: From the “Tools” menu, choose “Solver.” The “Solver
Parameters” Window pops up. Click on the arrow adjacent to the box “Set
Target Cell.” Click on the Cell B44, that stores the total cost and click again
on the arrow. Click on the circle adjacent to “Min.”
3. Decision variables: The cell addresses for the decision variables are entered
in the box below “By Changing Cells:.” The decision variables are
$D$23:$E$26, $G$23:$G$26, $E$31:$F$34
5
4. Constraints: The constraints are entered in the box below “Subject to the
Constraints.” Click on “Add” and the “Add Constraint” window pops up.
Provide the information on constraint as shown below and click on “OK”:
6
7. The Solution: See the changes to your spreadsheet. The cells for the decision
variables are expected to contain the optimal solution and its cost in the cell
for the total cost.
8. A limitation: The solution does not give integer values for workers hired and
fired. To avoid the limitation, add the constraint as shown below and deselect
the “Assume linear model” using Solver Options window. However, While this
change will provide integer values for workers hired and fired, an optimal
solution is not guaranteed.