Excel and the use of the Solver This is an introduction into the use of the numeric Solver embedded in Excel. Initially we will see how we can use it to.

Slides:



Advertisements
Similar presentations
Example 2.2 Estimating the Relationship between Price and Demand.
Advertisements

Lecture 3 Linear Programming: Tutorial Simplex Method
Parameterizing a Geometry using the COMSOL Moving Mesh Feature
USING EXCEL FOR KEEPING STUDENT RECORDS. WHAT THIS PRESENTATION COVERS What Excel looks like Cells, rows and columns Renaming sheets Minimising the ribbon.
Lesson 14 Creating Formulas and Charting Data
1 Bolts in Tension pt1 Andrei Lozzi. The flanges at the end of the two turbine shafts seen above, are bolted together to form a very rigid friction coupling.
® Microsoft Office 2010 Excel Tutorial 4: Enhancing a Workbook with Charts and Graphs.
FTP Biostatistics II Model parameter estimations: Confronting models with measurements.
East Los Angeles College
Introduction to Excel 2007 Part 2: Bar Graphs and Histograms February 5, 2008.
Computational Methods in Physics PHYS 3437
2.8 Analyzing Graphs of Polynomial Functions p. 373
ENGR 351 Numerical Methods Instructor: Dr. L.R. Chevalier
Data Tutorial Tutorial on Types of Graphs Used for Data Analysis, Along with How to Enter Them in MS Excel Carryn Bellomo University of Nevada, Las Vegas.
Microsoft Office © Copyright William Rowan Objective By the end of this you will have being given a brief introduction to: Microsoft Word Microsoft.
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms Psych 209.
1 Introduction to Spreadsheets Bent Thomsen. 2 What is an electronic spreadsheet? It is the electronic equivalent of an accounting worksheet, comprised.
Non-Linear Simultaneous Equations
Graphing in Excel X-Y Scatter Plot SCI 110 CCC Skills Training.
Word & Excel This is an introduction to the use of the equation editor in Word. Those expressions can then be copied and pasted into Excel and elsewhere.
Computer Literacy BASICS
Chapter 19 Linear Programming McGraw-Hill/Irwin
Targeted Review of Major Concepts
Exploratory Data Analysis. Computing Science, University of Aberdeen2 Introduction Applying data mining (InfoVis as well) techniques requires gaining.
Tutor: Prof. A. Taleb-Bendiab Contact: Telephone: +44 (0) CMPDLLM002 Research Methods Lecture 9: Quantitative.
1. The Simplex Method.
Spreadsheets in Finance and Forecasting Presentation 8: Problem Solving.
Microsoft Excel Part 2 Kin 260 Adapted from Daniel Frankl, Ph.D. Revised by Jackie Kiwata 10/07.
1 Lesson 19 Creating Formulas and Charting Data Computer Literacy BASICS: A Comprehensive Guide to IC 3, 3 rd Edition Morrison / Wells.
Sample size vs. Error A tutorial By Bill Thomas, Colby-Sawyer College.
Example 15.1 Daily Scheduling of Postal Employees Workforce Scheduling Models.
Linear Programming: Basic Concepts
9 Torsion.
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
1 Microsoft Excel An Introduction to Spreadsheets Lecture 18.
6.8 Analyzing Graphs of Polynomial Functions
Goal Seek and Solver. Goal seeking helps you n Find a specific value for a target cell by adjusting the value of one other cell whose value is allowed.
Rev.S08 MAC 1140 Module 9 System of Equations and Inequalities I.
Ahmed M. El-Sherbeeny, PhD Industrial Engineering Department
Risk Analysis & Modelling
Copyright © 2008 Pearson Prentice Hall. All rights reserved Exploring Microsoft Office Excel 2007 Chapter 8 What-if Analysis Robert Grauer, Keith.
SSAC2007.QA154.ND1.1 What is the Largest-Volume, Open-Top, Rectangular Box You Can Make from a Sheet of Cardboard? – Exploring Polynomial Functions Core.
What-If Analysis for Linear Programming
Newton’s Method, Root Finding with MATLAB and Excel
Review of fundamental 1 Data mining in 1D: curve fitting by LLS Approximation-generalization tradeoff First homework assignment.
Lecture 29 Dr. MUMTAZ AHMED MTH 161: Introduction To Statistics.
DAY 9: MICROSOFT EXCEL – CHAPTER 6 Sravanthi Lakkimsetty Sept 16, 2015.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Supplement 6 Linear Programming.
ME 142 Engineering Computation I Review Exam 1.  2 Part Exam In-Class Portion Testing Center Portion Equally weighted.
Moodle Quizes Staff Guide. Creating Quizzes Click Add an Activity or Resource With the course in editing mode...
Statistical Fundamentals: Using Microsoft Excel for Univariate and Bivariate Analysis Alfred P. Rovai Charts Overview PowerPoint Prepared by Alfred P.
EXCEL DECISION MAKING TOOLS AND CHARTS BASIC FORMULAE - REGRESSION - GOAL SEEK - SOLVER.
The previous cubic is entered in Excel in away that may be read easily Note the ‘ name box’ is used here to give the numerical content of the cell a name,
Linear Programming McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Shroff S.R. Rotary Institute of Chemical Technology Chemical Engineering Instrumentation and process Control.
Plotting in Excel KY San Jose State University Engineering 10.
Excel and the use of the Solver
Excel - Data Analysis Dr. Theodore Cleveland University of Houston
Solver & Optimization Problems
Mixed Costs Chapter 2: Managerial Accounting and Cost Concepts. In this chapter we explain how managers need to rely on different cost classifications.
Excel Solver IE 469 Spring 2017.
Analyzing Graphs of Polynomial Functions
Tutorial 4: Enhancing a Workbook with Charts and Graphs
Introduction to Spreadsheets
Excel Solver IE 469 Spring 2018.
Excel Solver IE 469 Fall 2018.
Linear Programming Excel Solver.
Higher National Certificate in Engineering
Excel Solver IE 469 Spring 2019.
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms
Presentation transcript:

Excel and the use of the Solver This is an introduction into the use of the numeric Solver embedded in Excel. Initially we will see how we can use it to reveal the roots and turning points of a cubic polynomial, which has been concocted with known roots. Then it is used to find solution much less obvious and quite elaborate non linear equations. Ultimately this numeric solver is used to find numeric ‘optimal’ solutions, to design problems that must be completely prescribed, and which are beyond a most normal human to judge. Traditionally determining the design details of gears, springs and bolted joints have been left to experienced personnel. Now it can be shown that some often seen designs can easily bettered. You must note that the solver does not ‘invent’ a solution, it merely finds the combination of values, that give the required end-result. The designer still invents the type or category of the design. 1

The previous cubic is entered in Excel in away that may be read easily Note the ‘ name box’ is used here to give the numerical content of the cell a name, not just cell coordinates, that may then be used in equations. Subscripted variables may be represented with underscores eg x_1, a_2 etc. Excel has vector and matrix functions but it is not represented as done in Matlab name box Cell C12 is named ‘a_2’ (see the name box) and its value is -3.5, it is calculated as the sum of the 3 coefficients x_1, x_2 & x_3 This is just text reminding the user what this s.s. is about This is just text reminding the user the name of the variable in the cell to its right The Use of Excel in Design analysis & Calculations Andrei Lozzi

A column of independent variables xs are entered, associated dependent ys are calculated. The box is highlighted and a scatter diagram is chosen from the Chart Wizard I copied the content of C18 to E18, delete the ‘=‘ sign leaving a text version of the otherwise unseen equation behind cell C18 3

We copied a single pair of independent and dependent variables to B26 & C26. Select Tools/Solver, this permits the selection of the object function, ie the ‘ Target Cell ’ and the independent variable(s), ie ‘ Changing Cells ’. Note that the starting values of the search for the maximum ‘y’ are the values in the cells B26 & C26. The solver is a numeric not an a symbolic tool, it will gives only approximations. Cells B26 and C26 4

Here the correctness of the Solver ’s solution can only be verified within the resolution of the graph, but the range and density of the gridlines on the graph can be adjusted to give better resolution. Local maximum, approximately (-0.6,15) 5

We now seek to find the min value of the cubic, using x = -4 as the starting point. The Solver finds the nearest or local condition required of the object function. The solver does not execute a global or a guided search. This initial condition for x & y tend to negative infinity, to limit the search we can add constraints. 6

Title and purpose of this spread sheet Name of s.s. file Description of variable Symbol used in equations Value of variable units Equation to calculate variable An example of a layout for a s.s. The intentions is to make the file easily readable, used by others expanded by yourself and assessed by your supervisor. If your marker or supervisor cannot understand they will not give you the benefit of the doubt they will mark you down. 7

In the search for some ‘optimal’ solution in design, where there are multiple variables, it is often necessary to use constraining relationships to eliminate nonsense answers. We have a rectangular prism representing a container for which we want to minimise the cost of the material or limit the heat transfer through the surfaces. The question is what are the proportions of the sides so that the surface area is a minimum. If we search for the smallest surface area, L, W & H will all tend to 0. Giving a box of no volume. An appropriate constraint may be taken to be that the volume be =1. 8

The search is then for the dimensions of a rectangular prism with the smallest surface area but fixed volume. Here we used a Volume =1 as the constraint. Fortunately essentially all practical engineering problems have fairly easily recognisable solutions, obvious constraints and limited pitfalls, unlike the sort of functions that mathematicians are fond of examining. What do you expect the lengths of the sides to be? 9

The search for the lengths of the length sides of a 13 dimension prism, of min surface area, but which meets 10 boundary conditions, ie all volumes from the 3 rd dimension to the 13 th are all required to be 1. Limits to: time, cycles, tolerance, method of approximations etc. The previous example is deceptively easy and quick. In an attempt to search for the limitations in the capacity of PCs and this solver, the 3 dimensional prism can be extended to higher dimensions 10

Not so long ago a PC would bog down long before the 13 th dimension, not at all now. A few years ago a 1 mega-flop computer would cost $1 M. To day new PCs can do much better. It would take a human with a calculator more than 2 years to do a mega- flop. This indicates to me that the ultimate power of PCs has barely been explored. 11

The function for the 13 th dimension surface area has 78 non linear terms !! 12

13 OVERVIEW ON THE USE OF THE SOLVER It may not initially be entirely obvious to you, but the solver is not psychic, the value in the cell that you try to ‘optimise’ must be a function of the cells that you declare as variables. The boundary conditions can be limits to the variables themselves or functions of those variables. The objective function, that you wish to come to some desired value, here referred to as the Target Cell, can be set to maximise, minimise or reach a particular value. The independent variables, that is the cells that you can declare as variables, are identified within By Changing Cells box. hence it is necessary that you have a continuous chain of relationships (equations), beginning with the independent variables to the objective function. This chain must extend to teach of the constraints, identified within Subject to the Constraints. If you have any discontinuity from the independent variables to the dependent variables, you will get nonsense. You can also generate nonsense many other ways. The advantage of this ‘Solver’ is that you get feedback very quickly

A real and very useful application is to find the parameters of a pair of gears that have an equal margin of safety against failure in 4 areas, two in each gear: Compressible failure A, on each. Tensile failure at B, at the base of opposite teeth. A chain is no stronger that its weaker link. The lowest factor of safety limits the capacity of the gear pair 14

Each variable shown here is a function of other variables. There are 2 sets of such equations one for each gear In a gear box there are many such sets, and in an industrial plant there may be many such boxes 15

If we are provided with the mean and alternating pressures in the cylinder: Pm, Pa, for n number of bolts, of grade X.Y we can calculate the diameter d and length l that will give a mean and alternating stresses σm, σa in the bolts, that will be below the Gerber parabola. The diameter and length of the bolts will determine the dimensions of the flange, D & C and hence its volume V. All this will give us just a ‘working solution’ not the lightest nor the cheapest. We can find an ‘optimal’ solution for this design by begging from where we finished and going backwards. We can set the solver to find the smallest volume V(d,l) by varying n, d, l, such that σm, σa will be below the Gerber parabola, for the given the pressures Pm, Pa. 16