SlideShare a Scribd company logo
1 of 21
Download to read offline
IN THE NAME OF GOD
An introduction to Excel Solver
By : Mahsa Rezaei
1
Why Excel?
One advantage of the spreadsheet approach to optimization is that
many optimization models can be represented in an understandable
fashion in a spreadsheet.
Another benefit is that many people are already familiar with using
spreadsheets.
The spreadsheet copy command allows large models with many similar
constraints to be created and solved quickly in a spreadsheet
environment.
 Enabling SOLVER in Excel:
Solver is an Add-in for Microsoft Excel which is typically not enabled during the initial
installation of Excel. If ‘Solver’ does not appear on the ‘Date’ tab in Excel ,then you
need to enable it as follows:
Go to ‘office button / excel options’.
Choose ‘add-in’ from the page appeared.
Then choose ‘Solver add-in’ from the menu.
Click ‘Go…’.
Make sure that solver is enabled.
Now go to Data tab menu, Solver must be there.
 Solving a linear problem in excel requires four main
steps:
1.Organize your information:
There are three categories of information needed for solving an
optimization problem in Excel: an Objective Function, Decision Variables,
and Constraints.
2.Set up the problem in the excel spreadsheet
3.Running Solver
4.Interpreting the Results
For better understanding we will follow an example and implement the
instructions on it.
Problem:
An electronics firm manufactures integrated circuit for radios,
televisions, and stereos. For the next month it has available 1500 units of
materials and 920 units of labor. The requirements and selling price of
one of each of the above products is given in the following table. The
goal of this problem is to maximize income.
Selling price(dollars)Units of laborUnits of material
812Radio
60812TV
45615Stereo
1.Organize problem’s information:
Decision variables: X1=units of radio
X2=units of TV
X3=units of stereo
Constraints: 2 X1+12 X2+15 X3 ≤ 1500
X1 +8 X2+6 X3 ≤ 920
Objective function:
income=8 X1+60 X2+45 X3
2.Set up the problem in the excel spreadsheet
Enter the names of the Objective Function, Decision Variables
and Constraints into cells in column A-the more descriptive the
labels are, the easier it is to keep track of the relationships
among the variables and constraints.
Also enter the coefficients related to each one ,in the
spreadsheet.
For the Decision Variables, you can enter a 0 into each of the
corresponding cells in column B or you can leave them blank
Solver will calculate the optimum values for these variables.
In the cell corresponding to objective function enter the formula
based on the profit, also you need to do the same for each of the
constraints.
3.Running Solver
As mentioned before you can find Solver in data tab. As you click on
it, the following dialog box will appear:
In ‘Set Target Cell’ enter the cell corresponding to your Objective
Function and choose the appropriate outcome under ‘Equal To:’
(maximize, minimize, or set to a specific value).
NOTE: You can enter cells into any of these target boxes by selecting
them on the spreadsheet using the cursor ;it’s easier than typing in
cell addresses.
Select the cells corresponding to all of your Decision Variables in
the ‘By Changing Cells:’ target box.
To set up the Constraints, select ‘Add’ under ‘Subject to the
Constraints:’ The following dialog box opens:
Enter the cell location (in column E here) for each Constraint into
the left hand box (‘Cell Reference:’) and the cell location (in
column F here) of the Constraint value into the right hand box. Use
the pull-down menu in the middle to select the appropriate
inequality relation. Continue to click the “Add” button until all of
your Constraints are entered, then select ‘OK’.
NOTE: You can later change or delete these Constraints from the
Solver dialog box if necessary.
Click OK. This will return you to the Solver dialog box. When all
the targets and constraints have been entered, select ‘Solve’. The
optimized values and following dialog box will appear :
You may encounter different messages in the solver results dialog
box. for more information about this you can check the following
link:
http://www.solver.com/suppstdmsgresult.htm
At this point you have the option to generate any of three reports:
Answer, Sensitivity, and Limits. These are inserted as new workbooks
in the Excel file. Select any you wish to have included. If Solver was
able to find a solution, it will notify you that all constraints and
optimality conditions were satisfied. You may elect to Keep the
Solver Solution or Restore the Original Values. NOTE: If you choose
to generate an Answer Report, you can still select ‘Restore Original
Values’ to continue working with the unaltered spreadsheet; the
results from Solver will be saved in the Answer Report.
Click ‘OK’. You are then returned to the spreadsheet.
HINT: The last set of target and constraints used in the Solver
dialog box will be saved with each worksheet in the Excel file, and
will be copied with the worksheet if you need to duplicate it. So you
can repeatedly run Solver in the sheet to investigate the effects of
changing Constraint values or relationships.
4.Interpreting the Results
Until you become familiar with each report and the information it
holds you may wish to generate all possible reports to ensure you
do not miss any required information. The following is an example
of the answer report generated for this Problem.
Answer Report
The Answer Report identifies the names, the corresponding cells,
the initial and optimal (final) values of the Target (i.e. the
Objective Function), and the values of Adjustable Cells (i.e. the
Decision Variables) that produced it. In the Constraint section the
status column indicates if a Constraint was binding or not. For
nonbinding Constraints, the slack column shows how far from the
Constraint your results are.
 Sensitivity Report
The Sensitivity Report gives the final optimal values of both the
Decision Variables and the Constraints, along with the Lagrange
multiplier (i.e. shadow prices) of the binding Constraints.
Limits Report
The Limits Report holds some interesting information. It has the upper
and lower limits of the decision variables given all the constraints of the
problem.. The target result for each lower limit tells us what value the
objective function will take on if that particular constraint drops to the
lower limit and all other constraints remain at the optimal value. The
target result for the maximum column tells us the profit that is realized
if all decision variables are at their optimal values.
Question?

More Related Content

What's hot

Multi criteria decision making
Multi criteria decision makingMulti criteria decision making
Multi criteria decision makingKartik Bansal
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 012013901097
 
Structured equation model
Structured equation modelStructured equation model
Structured equation modelKing Abidi
 
An introduction to decision trees
An introduction to decision treesAn introduction to decision trees
An introduction to decision treesFahim Muntaha
 
Data Science - Part IX - Support Vector Machine
Data Science - Part IX -  Support Vector MachineData Science - Part IX -  Support Vector Machine
Data Science - Part IX - Support Vector MachineDerek Kane
 
CHAPTER 11 LOGISTIC REGRESSION.pptx
CHAPTER 11 LOGISTIC REGRESSION.pptxCHAPTER 11 LOGISTIC REGRESSION.pptx
CHAPTER 11 LOGISTIC REGRESSION.pptxUmaDeviAnanth
 
Operation research - the revised simplex method
Operation research - the revised simplex methodOperation research - the revised simplex method
Operation research - the revised simplex method2013901097
 
Resource management techniques
Resource management techniquesResource management techniques
Resource management techniquesDr Geetha Mohan
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithmsguest9938738
 
ELECTRE Decision Making Method
ELECTRE  Decision Making MethodELECTRE  Decision Making Method
ELECTRE Decision Making MethodMrinmoy Majumder
 
Limitations of linear programming
Limitations of linear programmingLimitations of linear programming
Limitations of linear programmingTarun Gehlot
 
NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING karishma gupta
 
Ms excel ppt
Ms excel pptMs excel ppt
Ms excel pptSuraj Jha
 
Lasso and ridge regression
Lasso and ridge regressionLasso and ridge regression
Lasso and ridge regressionSreerajVA
 
Excel for Dummies
Excel for DummiesExcel for Dummies
Excel for DummieseduCBA
 
Excel functions and formulas
Excel functions and formulasExcel functions and formulas
Excel functions and formulasJason Wong
 
Introduction to Excel
Introduction to ExcelIntroduction to Excel
Introduction to ExcelNajma Alam
 

What's hot (20)

Multi criteria decision making
Multi criteria decision makingMulti criteria decision making
Multi criteria decision making
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 01
 
Structured equation model
Structured equation modelStructured equation model
Structured equation model
 
MS EXCEL.ppt
MS EXCEL.pptMS EXCEL.ppt
MS EXCEL.ppt
 
An introduction to decision trees
An introduction to decision treesAn introduction to decision trees
An introduction to decision trees
 
Data Science - Part IX - Support Vector Machine
Data Science - Part IX -  Support Vector MachineData Science - Part IX -  Support Vector Machine
Data Science - Part IX - Support Vector Machine
 
CHAPTER 11 LOGISTIC REGRESSION.pptx
CHAPTER 11 LOGISTIC REGRESSION.pptxCHAPTER 11 LOGISTIC REGRESSION.pptx
CHAPTER 11 LOGISTIC REGRESSION.pptx
 
Operation research - the revised simplex method
Operation research - the revised simplex methodOperation research - the revised simplex method
Operation research - the revised simplex method
 
Resource management techniques
Resource management techniquesResource management techniques
Resource management techniques
 
Genetic algorithms
Genetic algorithmsGenetic algorithms
Genetic algorithms
 
ELECTRE Decision Making Method
ELECTRE  Decision Making MethodELECTRE  Decision Making Method
ELECTRE Decision Making Method
 
Limitations of linear programming
Limitations of linear programmingLimitations of linear programming
Limitations of linear programming
 
simplex method
simplex methodsimplex method
simplex method
 
NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING NON LINEAR PROGRAMMING
NON LINEAR PROGRAMMING
 
Ms excel ppt
Ms excel pptMs excel ppt
Ms excel ppt
 
Lasso and ridge regression
Lasso and ridge regressionLasso and ridge regression
Lasso and ridge regression
 
Excel for Dummies
Excel for DummiesExcel for Dummies
Excel for Dummies
 
The diet problem
The diet problemThe diet problem
The diet problem
 
Excel functions and formulas
Excel functions and formulasExcel functions and formulas
Excel functions and formulas
 
Introduction to Excel
Introduction to ExcelIntroduction to Excel
Introduction to Excel
 

Similar to Excel Solver(By Mahsa Rezaei)

Intermediate excel application to advanced courses
Intermediate excel   application to advanced coursesIntermediate excel   application to advanced courses
Intermediate excel application to advanced courseszavenger
 
Linear programming with excel
Linear programming with excelLinear programming with excel
Linear programming with excelHilda Isfanovi
 
ROLL NO 1 TO 9(G1) USE OF EXCEL IN CA PROFESSION (Final Draft).pptx
ROLL NO 1 TO 9(G1) USE OF EXCEL IN CA PROFESSION (Final Draft).pptxROLL NO 1 TO 9(G1) USE OF EXCEL IN CA PROFESSION (Final Draft).pptx
ROLL NO 1 TO 9(G1) USE OF EXCEL IN CA PROFESSION (Final Draft).pptxDishantGola
 
computer applications in business unit 3
computer applications in business unit 3computer applications in business unit 3
computer applications in business unit 3Dr T.Sivakami
 
De vry math 399 all ilabs latest 2016 november
De vry math 399 all ilabs latest 2016 novemberDe vry math 399 all ilabs latest 2016 november
De vry math 399 all ilabs latest 2016 novemberlenasour
 
Homework Assignment 9 Edited on 10272014 Due by Wednes.docx
Homework Assignment 9 Edited on 10272014 Due by Wednes.docxHomework Assignment 9 Edited on 10272014 Due by Wednes.docx
Homework Assignment 9 Edited on 10272014 Due by Wednes.docxadampcarr67227
 
Creating a Normative Group
Creating a Normative GroupCreating a Normative Group
Creating a Normative Groupatsumagaysay
 
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docxDBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docxedwardmarivel
 
Microsoft Excel 20072010 What-If Analysis © Martin Green
Microsoft Excel 20072010  What-If Analysis © Martin GreenMicrosoft Excel 20072010  What-If Analysis © Martin Green
Microsoft Excel 20072010 What-If Analysis © Martin GreenDioneWang844
 
Itm310 problem solving #7 complete solutions correct answers key
Itm310 problem solving #7 complete solutions correct answers keyItm310 problem solving #7 complete solutions correct answers key
Itm310 problem solving #7 complete solutions correct answers keySong Love
 
Excel Formulas Functions 2007
Excel Formulas Functions 2007Excel Formulas Functions 2007
Excel Formulas Functions 2007simply_coool
 
Introduction to micro soft Training ms Excel.ppt
Introduction to micro soft Training ms Excel.pptIntroduction to micro soft Training ms Excel.ppt
Introduction to micro soft Training ms Excel.pptdejene3
 
Getting started with_microsoft_excel
Getting started with_microsoft_excelGetting started with_microsoft_excel
Getting started with_microsoft_excelDeepak Chavan
 

Similar to Excel Solver(By Mahsa Rezaei) (20)

Excel solver
Excel solverExcel solver
Excel solver
 
Excel help 01
Excel help 01Excel help 01
Excel help 01
 
Intermediate excel application to advanced courses
Intermediate excel   application to advanced coursesIntermediate excel   application to advanced courses
Intermediate excel application to advanced courses
 
Linear programming with excel
Linear programming with excelLinear programming with excel
Linear programming with excel
 
Regression analysis in excel
Regression analysis in excelRegression analysis in excel
Regression analysis in excel
 
MS Excel 2013
MS Excel 2013MS Excel 2013
MS Excel 2013
 
Microsoft Excel Tutorial
Microsoft Excel TutorialMicrosoft Excel Tutorial
Microsoft Excel Tutorial
 
ROLL NO 1 TO 9(G1) USE OF EXCEL IN CA PROFESSION (Final Draft).pptx
ROLL NO 1 TO 9(G1) USE OF EXCEL IN CA PROFESSION (Final Draft).pptxROLL NO 1 TO 9(G1) USE OF EXCEL IN CA PROFESSION (Final Draft).pptx
ROLL NO 1 TO 9(G1) USE OF EXCEL IN CA PROFESSION (Final Draft).pptx
 
computer applications in business unit 3
computer applications in business unit 3computer applications in business unit 3
computer applications in business unit 3
 
Advexcellp
AdvexcellpAdvexcellp
Advexcellp
 
De vry math 399 all ilabs latest 2016 november
De vry math 399 all ilabs latest 2016 novemberDe vry math 399 all ilabs latest 2016 november
De vry math 399 all ilabs latest 2016 november
 
Homework Assignment 9 Edited on 10272014 Due by Wednes.docx
Homework Assignment 9 Edited on 10272014 Due by Wednes.docxHomework Assignment 9 Edited on 10272014 Due by Wednes.docx
Homework Assignment 9 Edited on 10272014 Due by Wednes.docx
 
Creating a Normative Group
Creating a Normative GroupCreating a Normative Group
Creating a Normative Group
 
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docxDBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
 
Microsoft Excel 20072010 What-If Analysis © Martin Green
Microsoft Excel 20072010  What-If Analysis © Martin GreenMicrosoft Excel 20072010  What-If Analysis © Martin Green
Microsoft Excel 20072010 What-If Analysis © Martin Green
 
Itm310 problem solving #7 complete solutions correct answers key
Itm310 problem solving #7 complete solutions correct answers keyItm310 problem solving #7 complete solutions correct answers key
Itm310 problem solving #7 complete solutions correct answers key
 
Excel Formulas Functions 2007
Excel Formulas Functions 2007Excel Formulas Functions 2007
Excel Formulas Functions 2007
 
Introduction to micro soft Training ms Excel.ppt
Introduction to micro soft Training ms Excel.pptIntroduction to micro soft Training ms Excel.ppt
Introduction to micro soft Training ms Excel.ppt
 
Dealing with data-excel
Dealing with data-excelDealing with data-excel
Dealing with data-excel
 
Getting started with_microsoft_excel
Getting started with_microsoft_excelGetting started with_microsoft_excel
Getting started with_microsoft_excel
 

More from mahsa rezaei

seminar_presentation
seminar_presentationseminar_presentation
seminar_presentationmahsa rezaei
 
Master of Science Thesis in Electrical Engineering
Master of Science Thesis in Electrical EngineeringMaster of Science Thesis in Electrical Engineering
Master of Science Thesis in Electrical Engineeringmahsa rezaei
 
bachelor final project
bachelor final projectbachelor final project
bachelor final projectmahsa rezaei
 

More from mahsa rezaei (9)

Kalman_filtering
Kalman_filteringKalman_filtering
Kalman_filtering
 
seminar_presentation
seminar_presentationseminar_presentation
seminar_presentation
 
Master of Science Thesis in Electrical Engineering
Master of Science Thesis in Electrical EngineeringMaster of Science Thesis in Electrical Engineering
Master of Science Thesis in Electrical Engineering
 
thesis1
thesis1thesis1
thesis1
 
bachelor final project
bachelor final projectbachelor final project
bachelor final project
 
BPMN and Bizagi
BPMN and BizagiBPMN and Bizagi
BPMN and Bizagi
 
data mining
data miningdata mining
data mining
 
BIandDataMining
BIandDataMiningBIandDataMining
BIandDataMining
 
Mahsa_Rezaei_BPMS
Mahsa_Rezaei_BPMSMahsa_Rezaei_BPMS
Mahsa_Rezaei_BPMS
 

Excel Solver(By Mahsa Rezaei)

  • 1. IN THE NAME OF GOD An introduction to Excel Solver By : Mahsa Rezaei 1
  • 2. Why Excel? One advantage of the spreadsheet approach to optimization is that many optimization models can be represented in an understandable fashion in a spreadsheet. Another benefit is that many people are already familiar with using spreadsheets. The spreadsheet copy command allows large models with many similar constraints to be created and solved quickly in a spreadsheet environment.
  • 3.  Enabling SOLVER in Excel: Solver is an Add-in for Microsoft Excel which is typically not enabled during the initial installation of Excel. If ‘Solver’ does not appear on the ‘Date’ tab in Excel ,then you need to enable it as follows:
  • 4. Go to ‘office button / excel options’. Choose ‘add-in’ from the page appeared. Then choose ‘Solver add-in’ from the menu. Click ‘Go…’. Make sure that solver is enabled. Now go to Data tab menu, Solver must be there.
  • 5.  Solving a linear problem in excel requires four main steps: 1.Organize your information: There are three categories of information needed for solving an optimization problem in Excel: an Objective Function, Decision Variables, and Constraints. 2.Set up the problem in the excel spreadsheet 3.Running Solver 4.Interpreting the Results For better understanding we will follow an example and implement the instructions on it.
  • 6. Problem: An electronics firm manufactures integrated circuit for radios, televisions, and stereos. For the next month it has available 1500 units of materials and 920 units of labor. The requirements and selling price of one of each of the above products is given in the following table. The goal of this problem is to maximize income. Selling price(dollars)Units of laborUnits of material 812Radio 60812TV 45615Stereo
  • 7. 1.Organize problem’s information: Decision variables: X1=units of radio X2=units of TV X3=units of stereo Constraints: 2 X1+12 X2+15 X3 ≤ 1500 X1 +8 X2+6 X3 ≤ 920 Objective function: income=8 X1+60 X2+45 X3
  • 8. 2.Set up the problem in the excel spreadsheet Enter the names of the Objective Function, Decision Variables and Constraints into cells in column A-the more descriptive the labels are, the easier it is to keep track of the relationships among the variables and constraints. Also enter the coefficients related to each one ,in the spreadsheet. For the Decision Variables, you can enter a 0 into each of the corresponding cells in column B or you can leave them blank Solver will calculate the optimum values for these variables.
  • 9.
  • 10. In the cell corresponding to objective function enter the formula based on the profit, also you need to do the same for each of the constraints.
  • 11.
  • 12. 3.Running Solver As mentioned before you can find Solver in data tab. As you click on it, the following dialog box will appear:
  • 13. In ‘Set Target Cell’ enter the cell corresponding to your Objective Function and choose the appropriate outcome under ‘Equal To:’ (maximize, minimize, or set to a specific value). NOTE: You can enter cells into any of these target boxes by selecting them on the spreadsheet using the cursor ;it’s easier than typing in cell addresses. Select the cells corresponding to all of your Decision Variables in the ‘By Changing Cells:’ target box. To set up the Constraints, select ‘Add’ under ‘Subject to the Constraints:’ The following dialog box opens:
  • 14. Enter the cell location (in column E here) for each Constraint into the left hand box (‘Cell Reference:’) and the cell location (in column F here) of the Constraint value into the right hand box. Use the pull-down menu in the middle to select the appropriate inequality relation. Continue to click the “Add” button until all of your Constraints are entered, then select ‘OK’. NOTE: You can later change or delete these Constraints from the Solver dialog box if necessary.
  • 15. Click OK. This will return you to the Solver dialog box. When all the targets and constraints have been entered, select ‘Solve’. The optimized values and following dialog box will appear : You may encounter different messages in the solver results dialog box. for more information about this you can check the following link: http://www.solver.com/suppstdmsgresult.htm
  • 16. At this point you have the option to generate any of three reports: Answer, Sensitivity, and Limits. These are inserted as new workbooks in the Excel file. Select any you wish to have included. If Solver was able to find a solution, it will notify you that all constraints and optimality conditions were satisfied. You may elect to Keep the Solver Solution or Restore the Original Values. NOTE: If you choose to generate an Answer Report, you can still select ‘Restore Original Values’ to continue working with the unaltered spreadsheet; the results from Solver will be saved in the Answer Report. Click ‘OK’. You are then returned to the spreadsheet. HINT: The last set of target and constraints used in the Solver dialog box will be saved with each worksheet in the Excel file, and will be copied with the worksheet if you need to duplicate it. So you can repeatedly run Solver in the sheet to investigate the effects of changing Constraint values or relationships.
  • 17. 4.Interpreting the Results Until you become familiar with each report and the information it holds you may wish to generate all possible reports to ensure you do not miss any required information. The following is an example of the answer report generated for this Problem. Answer Report The Answer Report identifies the names, the corresponding cells, the initial and optimal (final) values of the Target (i.e. the Objective Function), and the values of Adjustable Cells (i.e. the Decision Variables) that produced it. In the Constraint section the status column indicates if a Constraint was binding or not. For nonbinding Constraints, the slack column shows how far from the Constraint your results are.
  • 18.
  • 19.  Sensitivity Report The Sensitivity Report gives the final optimal values of both the Decision Variables and the Constraints, along with the Lagrange multiplier (i.e. shadow prices) of the binding Constraints.
  • 20. Limits Report The Limits Report holds some interesting information. It has the upper and lower limits of the decision variables given all the constraints of the problem.. The target result for each lower limit tells us what value the objective function will take on if that particular constraint drops to the lower limit and all other constraints remain at the optimal value. The target result for the maximum column tells us the profit that is realized if all decision variables are at their optimal values.