Optimization in One Variable Using Solver

Similar documents
Getting Started With Excel

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

Basics: How to Calculate Standard Deviation in Excel

1. Position your mouse over the column line in the column heading so that the white cross becomes a double arrow.

Microsoft Office Excel Use Excel s functions. Tutorial 2 Working With Formulas and Functions

Falling Balls. Names: Date: About this Laboratory

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

Math 2524: Activity 1 (Using Excel) Fall 2002

M i c r o s o f t E x c e l A d v a n c e d. Microsoft Excel 2010 Advanced

Solving linear programming

Exploring Fractals through Geometry and Algebra. Kelly Deckelman Ben Eggleston Laura Mckenzie Patricia Parker-Davis Deanna Voss

WEEK NO. 12 MICROSOFT EXCEL 2007

Business Process Procedures

Computer Science Lab Exercise 2

2. create the workbook file

Put the Graphs for Each Health Plan on the Same Graph

Reference Services Division Presents. Excel Introductory Course

SPREADSHEET (Excel 2007)

Microsoft Excel 2007 Creating a XY Scatter Chart

Getting Started Graphs of Functions Chapter 1

1. What specialist uses information obtained from bones to help police solve crimes?

Excel Level Three. You can also go the Format, Column, Width menu to enter the new width of the column.

Open Excel by following the directions listed below: Click on Start, select Programs, and the click on Microsoft Excel.

EXCEL BASICS: MICROSOFT OFFICE 2010

Mathematics LBS 4. Spreadsheet Mathematics: Statistics and Graphing. Finding the Mean, Median, & Mode

Technology Is For You!

Microsoft Excel Microsoft Excel

EXCEL BASICS: MICROSOFT OFFICE 2007

Pre-Lab Excel Problem

Working with Basic Functions. Basic Functions. Excel 2010 Working with Basic Functions. The Parts of a Function. Page 1

The Ribbon The Ribbon contains multiple tabs, each with several groups of commands. You can add your own tabs that contain your favorite commands.

Excel Core Certification

Microsoft Office Illustrated. Getting Started with Excel 2007

Math 1525 Excel Lab 1 Introduction to Excel Spring, 2001

Appendix A. HINTS WHEN USING EXCEL w

CALCULATE NPV USING EXCEL

INSTRUCTIONS FOR USING MICROSOFT EXCEL PERFORMING DESCRIPTIVE AND INFERENTIAL STATISTICS AND GRAPHING

More Skills 12 Create Web Queries and Clear Hyperlinks

Basic tasks in Excel 2013

Day : Date : Objects : Open MS Excel program * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office.

Introduction to CS graphs and plots in Excel Jacek Wiślicki, Laurent Babout,

Functions in Excel. Structure of a function: Basic Mathematical Functions. Arithmetic operators: Comparison Operators:

Introduction to Microsoft Excel

Formatting Spreadsheets in Microsoft Excel

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

Use of in-built functions and writing expressions

Microsoft Excel 2010

J. La Favre Calibrating Sharp Distance Sensors July 18, 2018

Spreadsheet Warm Up for SSAC Geology of National Parks Modules, 2: Elementary Spreadsheet Manipulations and Graphing Tasks

Creating a Histogram Creating a Histogram

Forestry Functions. Using Excel to Produce a Stocking Table. By David R. Larsen, March 14, Objectives:

Math 227 EXCEL / MEGASTAT Guide

Survey Design, Distribution & Analysis Software. professional quest. Whitepaper Extracting Data into Microsoft Excel

GEEN 1300 Introduction to Engineering Computing Fall Practice Test for Section Test #1

Excel Formulas & Functions I CS101

This lesson is part 5 of 5 in a series. You can go to Invoice, Part 1: Free Shipping if you'd like to start from the beginning.

To move cells, the pointer should be a north-south-eastwest facing arrow

SAMLab Tip Sheet #5 Creating Graphs

Excel tutorial Introduction

Tutorial 9. Review. Data Tables and Scenario Management. Data Validation. Protecting Worksheet. Range Names. Macros

Empower and invest in yourself WORKBOOK MICROSOFT EXCEL INTERMEDIATE

Data Management Project Using Software to Carry Out Data Analysis Tasks

Create an external reference (link) to a cell range in another workbook

Creating Interactive Workbooks Using MS Excel Sarah Mabrouk, Framingham State College

Creating a Basic Chart in Excel 2007

Math 1314 Lesson 2: An Introduction to Geogebra (GGB) Course Overview

Starting Excel application

Chemistry Excel. Microsoft 2007

Excel Module 7: Managing Data Using Tables

Chapter 4. Microsoft Excel

0 Graphical Analysis Use of Excel

download instant at

Consolidate and Summarizing Data from Multiple Worksheets

Introduction to Microsoft Excel

Linear and Quadratic Least Squares

Printing spreadsheets is easy. Microsoft Excel has lots of options available so you can print exactly what you want.

SOLVER TI-83 QUICK REFERENCE. The SOLVER feature is used to solve equations. There may be one variable or more than one variable in the equation.

A Brief Word About Your Exam

Job Aid. Enter bid Using XML Upload Functionality

Beginner s Guide to Microsoft Excel 2002

Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum)

Excel Tips to help you with the PS477/577 Final Paper Project

Tutorial 3 - Performing a Change-Point Analysis in Excel

A cell is highlighted when a thick black border appears around it. Use TAB to move to the next cell to the LEFT. Use SHIFT-TAB to move to the RIGHT.

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2010

Contents 10. Graphs of Trigonometric Functions

Excel & Business Math Video/Class Project #39 Create Invoices in Excel with Data Validation Drop-down, VLOOKUP & IF Functions

Structured Text Lab. Objectives IN THIS LAB, YOU WILL:

Microsoft Office 2016 Mail Merge

Intermediate Excel 2016

Intermediate Microsoft Excel (Demonstrated using Windows XP) Using Spreadsheets in the Classroom

How to Open Excel. Introduction to Excel TIP: Right click Excel on list and select PIN to Start Menu. When you open Excel, a new worksheet opens

UW Department of Chemistry Lab Lectures Online

Microsoft Word for Report-Writing (2016 Version)

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs

Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum)

Lab 7 Statistics I LAB 7 QUICK VIEW

HOW TO USE THE EXPORT FEATURE IN LCL

Sort, Filter, Pivot Table

Data Analysis Guidelines

Transcription:

Chapter 11 Optimization in One Variable Using Solver This chapter will illustrate the use of an Excel tool called Solver to solve optimization problems from calculus. To check that your installation of Excel has Solver, select the Tools menu bar. If you see Solver as one of the options, you are ready to go. Otherwise, you will have to add it in. See the preface on how to add in Solver. Example A packaging company wishes to design an open top box with a square base whose volume is exactly 40 cubic feet. Find the dimensions of the box requiring the least amount of materials. Solution The problem must first be set up by hand before we can use Excel Solver. Set up of problem 1 Identify variables 2 Identify objective: Minimize surface area. Surface area = (area of base) + (area of four sides) = A = x 2 + 4xy 3 We must express the area as a function of only one variable. To do this, use the information about the volume: V = x 2 y = 40 4 Solving for y in terms of x in the above equation gives y = ----- 40. x 2 5 Now, we can write A in terms of x. Plug in the expression for y in Step 4 into the area formula in Step 2 to get 6 This will be the expression we wish to minimize. Graph the function being minimized x: length of side of base y: height of box A = x 2 + 4x ----- 40 = x 2 + 160 -------- x x 2 1 It is a good idea to graph the function which you are trying to minimize so that you have an idea of where a minimum would occur. 2 Note that deciding the interval on which to graph the function requires some thinking. Looking at the area function, we can see that making x too small will make the area large and also making x large will make the area large. The following table lists some values for the area in [1,10]. The area 82

Optimization in One Variable Using Solver 83 is first decreasing and then increasing. From the table, it looks like the minimum lies somewhere between 3 and 5 x 1 2 3 4 5 6 7 8 9 10 A 161 84 62.3 56 57 62.7 71.9 84 98.8 116 3 Graph this function on [1,10] using the directions in Chapter 2. Note that the function is not defined at x=0. You should obtain a graph resembling the following: Area Function for Box Problem y: Total surface area 200 150 100 50 0 0 1 2 3 4 5 6 7 8 9 1011 Area x : length 4 The graph also shows that a minimum is somewhere between x=3 and x=5. The next step is to input all this information into Excel so that Solver can be invoked. Since all the calculations in the spreadsheet are done with cell references, you must set up cell entries for the variable and the function you are optimizing. In Excel, the cell containing the formula for the optimizing function is referred to as the target cell. The cells containing the variables are called the changing cells. Steps to set up the problem in Excel 1 In a blank spreadsheet, first type a heading called Variable in cell a1, followed by the variable description in a3 and its value in cell b3. The variable x is initially assigned a value of 1. Refer to the table below as a guide. A 1 Variable 2 3 x: length of base 1 B 2 The area function formula is given in terms of the cell references for the variables x. Enter the information for the area function as follows: a Type a heading called Objective in cell a5 b Type a description of the objective in cell a7 c Enter the objective function formula in b7.the formula is =b3^2+160/b3.

84 Excel Guide for Finite Math and Applied Calculus 3 Your completed table should look like the one below (shown using formula view). Check it out To get familiar with the setup of the problem in Excel, change the value of the x variable in b3 to some other values. What happens to the value of the objective function? Steps to solve the problem using Solver 1 Once you check that your spreadsheet contains all the correct formulas in the appropriate cells, you are ready to invoke Solver by choosing Tools > Solver. 2 You will see a dialog box whose first entry is the information for the target cell (i.e. the objective function). Click cursor into the this entry box and click into cell B7 (formula for objective function). 3 Check the button to minimize. You dialog box should now look like the one below. 4 Next click cursor to the By Changing Cells entry box. 5 Enter the cell reference for the x variable by selecting the cell b3. This portion of your dialog box should resemble the following.

Optimization in One Variable Using Solver 85 6 Your completed Solver box should resemble the following. 7 Click into the Options box, and make sure that the Assume Linear Model checkbox is NOT checked, since this problem is NOT linear. See the following figure. 8 Click OK in the Options dialog box. 9 Click Solve in the Solver dialog box. You will get a dialog box stating that Solver found a solution. 10 Check the Keep Solver Solution button and also select the Answer report. Your completed box resembles the following.

86 Excel Guide for Finite Math and Applied Calculus 11 Click OK. Go back and examine the cells with the variable and objective. They should now contain the optimal values and resemble the following table. 12 The area is minimized for x=4.31 and the minimal area is 55.699. The height of the box, y, is given by 40/x 2 = 40/(4.31) 2 = 2.15. 13 As we had observed from the table and graph of the area function, the x value producing the minimum area is indeed between 3 and 5. 14 Click on the worksheet labeled Answer Report 1 to see a summary of the solution.