Module 4 - Sensitivity Excel Solver - OFC Changes
Module 4 - Sensitivity Excel Solver - OFC Changes
Module 4 - Sensitivity Excel Solver - OFC Changes
http://people.brunel.ac.uk/~mastjjb/jeb/or/lpsens_solver.html
Solving simple Linear Programming using excel and excel solver
by generating the following.
❑Optimum solution
❑Sensitivity Analysis
Spreadsheet Model using
Excel Solver
The figure on the right is the excel
spreadsheet of the information
provided by the LP problem.
These are groups by the
following categories:
• Production plan
• Decision variables
• Available materials and the Used
materials.
LHS = left-hand side Anderson, D. S. (2018). An Introduction to Management Science:
RHS = right-hand side Quantitative Approaches to Decision Making (14th edition).
Singapore: Cengage Learning Asia Pte Ltd. (pp. 149-151)
Excel Solver
Sensitivity Report
Setting up and running the Spreadsheet Model
Activate the Solver Add-in in Excel. [File/options/Add-ins/click Add-ins/Go].
1. On the spreadsheet, enter the problem data in the top part of the
spreadsheet.
2. Specify cell locations for the decision variables.
3. Select a cell and enter a formula for computing he value of the objective
function.
4. Select a cell and enter a formula for computing the LHS of each
constraint.
5. Select a cell and enter a formula for computing the RHS of each
constraint.
Anderson, D. S. (2018). An Introduction to Management Science:Quantitative Approaches to Decision Making (14 th
edition). Singapore: Cengage Learning Asia Pte Ltd. )
Basic Steps in Using Excel Solver
1. Select the DATA tab on the Ribbon
2. Select Solver from the Analysis Group
3. When the Solver Parameters dialog box appears:
Enter the cell reference of the Objective Function into the Set Objective box
Select the To: Max/Min option
Enter the cell reference of the decision variables into By Changing Variable Cells box
4. Select Add
When the Add Constraint dialog box appears:
Enter cell references are for the left hand side coefficients.
Select the corresponding symbol (<=, >=, =).
Enter the cell references of the rhs. Click OK
5. When the solver dialog box reappears: Select the checkbox for Make Unconstrained Variables Nonnegative.
6. In Select a Solving Method dropdown menu select Simplex LP.
7. Click Solve.
8. When the Solver Results dialog box appears: select Keep Solver Solution. Click OK
Anderson, D. S. (2018). An Introduction to Management Science:Quantitative Approaches to Decision Making (14 th edition). Singapore: Cengage Learning Asia Pte Ltd.
Linear Programming Problem Spreadsheet Model
Constraints:
D12 = sumproduct(B8:C8, B12:C12)
[= sumproduct(production plan cell,constraint coefficient)]
Setting up and running the Spreadsheet Model
1. Activate the Solver Add-in in Excel. [File/options/Add-ins/click Add-ins/Go].
2. On the spreadsheet, enter the ‘variables’ row as ‘changing cells’ named as Production Plan (number of x1,
x2,..xn produced).
3. Enter the ‘Objective Function’ cell as ‘Target Cell’ using the =sumproduct formula to maximize or minimize
along the Production Plan row.
4. Enter the OF array along the Unit Profit/Cost per variable.
5. Enter the constraints array on the succeeding rows per variable, the used resources column using the
formula =sumproduct, and the available resources array(constants/RHS).
x1 = prod 1
x2 = prod 2
x1 = prod 1
x2 = prod 2
Coincides with
Feasible
increased to as high as 7.5, keeping the OF line within the graphs of the 3 Region 2x1 + 3x2 < 19
two binding constraints. 4 constraint line
2
3
The two broken lines correspond to the graphs of the two binding 1
constraints. 1 2
x1
1 2 3 4 5 6 7 8 9 10
The figure on the left presents
the spreadsheet output of the
LP model with an optimum
solution of (5, 3) and OF value =
46 whose result is consistent
with the graphical solution
shown in slide 13.
The figure on the left presents
the excel solver dialogue box for
the given LP model in slide 13.
The figure on the left presents the sensitivity report generated by the
excel solver for the problem in slide 13.
The column D “Final value” provides the optimum solution to the
•
problem (5, 3)
The column E shows the reduced cost (see p. 107 from Anderson et.al.
•
Interpretation:
The range of optimality indicates that the profit contribution per standard bag c1 = 10, could be
decreased to as low as 6.3 and could be increased to as high as 13.5, while the profit contribution per
deluxe bag c2 = 9, could be decreased to as low as 6.67 and could be increased to as high as 14.29.
Introduction to Management Science : Quantitative Approaches to Decision Making By Anderson, D.R., et al.,
Illustration 3: Sensitivity Analysis for the Upholstery Problem Using excel Solver
Range of Optimality for the sofa and couch:
This problem is left for the student exercise on finding range of optimality using excel
solver and see if the result will be consistent with the graphical solution method.
Objective Function: Max Z = 1200x +1600y
Subject to:
3x +2y ≤ 18 microfiber constraint
2x +4y ≤ 20 leather constraint
x ≤5 vinyl constraint
NNC: x , y ≥ 0
Anderson, D. R., Sweeney, DJ., Williams, T.A., Camm, J.D., Cochran, J.J., &
Ohlmann, J.W. (2019). An Introduction to Management Science: Quantitative
Approaches to Decision Making. Singapore: Cengage Learning Asia Pte Ltd.
http://people.brunel.ac.uk/~mastjjb/jeb/or/lpsens_solver.html