Optimization. Using Analytic Solver Platform REVIEW BASED ON MANAGEMENT SCIENCE

Similar documents
Optimization. Using Analytic Solver Platform REVIEW BASED ON MANAGEMENT SCIENCE

Prepared By. Handaru Jati, Ph.D. Universitas Negeri Yogyakarta.

INFORMATION SHEET 24002/1: AN EXCEL PRIMER

Microsoft Office Excel 2010: Basic. Course Overview. Course Length: 1 Day. Course Overview

Microsoft Office Excel 2007: Basic. Course Overview. Course Length: 1 Day. Course Overview

EXCEL TUTORIAL.

Module 1 Lecture Notes 2. Optimization Problem and Model Formulation

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

Excel Forecasting Tools Review

A B C D E F. = 1/3 1 divided by 3, that is, The product of cells A2 and C12. Cell C6 divided by the difference of D4 and E4

Microsoft Office Illustrated. Getting Started with Excel 2007

Linear Programming: Basic Concepts. Chapter 2: Hillier and Hillier

Metaheuristic Optimization with Evolver, Genocop and OptQuest

Making EXCEL Work for YOU!

Chapter 7. Linear Programming Models: Graphical and Computer Methods

Sun City Summerlin Computer Club Seminar. Introduction to Microsoft Excel. Tom Burt June 30, 2016

AM 221: Advanced Optimization Spring 2016

Excel 2013 Getting Started

Excel 2007/2010. Don t be afraid of PivotTables. Prepared by: Tina Purtee Information Technology (818)

What Is Excel? Multisheet Files Multiple Document Interface Built-in Functions Customizable Toolbars Flexible Text Handling

An Introduction to Management Science, 12e. Instructions for Using Excel 2007

COMPUTERIZED OFFICE SUPPORT PROGRAM

Introduction to Linear Programming. Algorithmic and Geometric Foundations of Optimization

Optimization in One Variable Using Solver

Starting Excel application

Creating a Spreadsheet by Using Excel

Course Outline. Microsoft Office 2007 Boot Camp for Managers

Office Applications II Lesson Objectives

Excel tutorial Introduction

Documenting Models in Word

Welcome to Microsoft Excel 2013 p. 1 Customizing the QAT p. 5 Customizing the Ribbon Control p. 6 The Worksheet p. 6 Excel 2013 Specifications and

NOTATION AND TERMINOLOGY

Table of Contents. 1. Creating a Microsoft Excel Workbook...1 EVALUATION COPY

New Perspectives on Microsoft Excel Module 1: Getting Started with Excel

Lesson 1: Exploring Excel Return to the Excel 2007 web page

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

Excel. Tutorial 1 Getting Started with Excel. Tutorial 2 Formatting a Workbook. Tutorial 3 Working with Formulas and Functions COMPREHENSIVE

Excel 2016: Core Data Analysis, Manipulation, and Presentation; Exam

Creating Automated Dashboard Excel 2013 Contents

Introduction to Excel 2013

Simulation. Lecture O1 Optimization: Linear Programming. Saeed Bastani April 2016

Excel Main Screen. Fundamental Concepts. General Keyboard Shortcuts Open a workbook Create New Save Preview and Print Close a Workbook

Solving linear programming

Microsoft Office Excel 2007

Tutorial 10: Performing What-If Analyses. Microsoft Excel 2013 Enhanced

Microsoft Excel 2013 Unit 1: Spreadsheet Basics & Navigation Student Packet

CALCULATE NPV USING EXCEL

Introduction. Chapter 15. Optimization Modeling: Applications. Integer Programming. Manufacturing Example. Three Types of ILP Models

CO367/CM442 Nonlinear Optimization Lecture 1

EXCEL 2007 GETTING STARTED

Lesson 08 Linear Programming

Data Analysis and Solver Plugins for KSpread USER S MANUAL. Tomasz Maliszewski

Overview. At Course Completion After completing this course, students will be learn about and be able to:

Microsoft Excel 2016 Training Programme

MICROSOFT OFFICE. Courseware: Exam: Sample Only EXCEL 2016 CORE. Certification Guide

Excel Basic 1 GETTING ACQUAINTED WITH THE ENVIRONMENT 2 INTEGRATION WITH OFFICE EDITING FILES 4 EDITING A WORKBOOK. 1.

B.V. Patel Institute of Business Management, Computer & Information Technology, Uka Tarsadia University : Advanced Applications of MS-Office

Excel Boot Camp PIONEER TRAINING, INC.

IFTA Staff Excel Training Manual

Why Spreadsheets and Microsoft Excel? Spreadsheets are the most common, general purpose software for data analysis and reporting.

DATA 301 Introduction to Data Analytics Spreadsheets: Microsoft Excel

Tutorial 1: Getting Started with Excel

Full file at Linear Programming Models: Graphical and Computer Methods

Microsoft PowerPoint Illustrated. Unit C: Inserting Objects into a Presentation

SPREADSHEET (Excel 2007)

OPTIMIZATION. joint course with. Ottimizzazione Discreta and Complementi di R.O. Edoardo Amaldi. DEIB Politecnico di Milano

LECTURE 10. SPREADSHEET

Introduction. Linear because it requires linear functions. Programming as synonymous of planning.

Lecture 25 Nonlinear Programming. November 9, 2009

Introduction to Excel 2013 Part 2

Copyright 2018 MakeUseOf. All Rights Reserved.

Industrial Engineering Education in the Philippines Eugene Rex L. Jalao, Ph.D.

Introduction to Microsoft Excel

Links to Activities ACTIVITY 3.1. Links to Activities

Optimization of Complex Systems with OptQuest

Mastering the Actuarial Tool Kit

Microsoft Excel 2007

Using Formulas and Functions in Microsoft Excel

Basic Excel 2010 Workshop 101

Giapetto s Woodcarving Problem

Technology for Merchandise Planning and Control

Excel 2013 Workshop. Prepared by

Learning Map Excel 2007

Excel 2010: Basics Learning Guide

Introductory Excel Walpole Public Schools. Professional Development Day March 6, 2012

A Real Life Application of Linear Programming

MS Excel 1 Day Seminar Catalogue

GCSE CCEA GCSE EXCEL 2010 USER GUIDE. Business and Communication Systems

Microsoft Excel Microsoft Excel

Microsoft Excel 2013: Excel Basics June 2014

Dale s Freight Fuel Report Assignment. Objectives By the end of this lesson, you will be able to:

Using Excel This is only a brief overview that highlights some of the useful points in a spreadsheet program.

MICROSOFT EXCEL BIS 202. Lesson 1. Prepared By: Amna Alshurooqi Hajar Alshurooqi

INTRODUCTION... 1 UNDERSTANDING CELLS... 2 CELL CONTENT... 4

Introduction 7. Begin with Excel 21

Excel 2010 Statistics

2013 FOUNDATION MANUAL

OX Documents Release v Feature Overview

Microsoft Excel Level 1

CUA Spreadsheets Laboratory

Transcription:

Optimization Using Analytic Solver Platform REVIEW BASED ON MANAGEMENT SCIENCE

What We ll Cover Today Introduction Frontline Systems Session Ι beta training program goals Overview of Analytic Solver Platform (ASP) Linearity and convexity Model building Guided Mode Reports Parametric optimization 2

Frontline Systems Inc. Software Products for: Conventional and Stochastic Optimization Simulation/Risk Analysis Data Mining and Visualization 26 Years in Business (Founded 1988) 7,000 Companies as Customers: Commercial Academic Software vendors 500,000 Users 3

Lecturer Sima Maleki PhD - Industrial and Systems Engineering (Operations Research) - the University of Tennessee Frontline Systems Consulting Lead and Modeling Specialist Experience- Network design, supply chain simulation and optimization, facility location, 3D layout optimization, scheduling, and "lean healthcare" resource utilization. 4

Session Ι Online Beta Training Goals To familiarize you with the following concepts: Importance of model structure: linearity and convexity Building models in Excel using ASP Using the ASP Guided Mode to analyze and solve the model Reviewing the reports Using parametric optimization technique To empower you to achieve success State of the art tools Online educational training User guides and video demos 4/30/2014 5

Business Analytics Techniques Analyze what has happened Business intelligence queries/reports Data visualization Data transformation Descriptive Analytics Predictive Analytics Use data to segment or classify customers Use data to predict future behavior Data mining Forecasting Determine the best course of action to take Optimization Simulation Decision analysis Prescriptive Analytics 6

Problem Solving Process It is increasingly important to efficiently use limited resources. Optimization can often improve efficiency with no capital investment. Identify Problem Formulate and Implement Model Analyze Model Test Results Implement Solution 7

Typical Optimization Applications Industry Energy Chemical Manufacturing Transportation Finance Agriculture Health Mining Defense Forestry Functional Area Staff planning Scheduling Routing Blending Capacity planning Media planning Supply chain Inventory optimization Vendor selection Portfolio optimization Product mix 8

Frontline Solvers Optimization Software 1 Million Linear 100,000 Nonlinear Conventional Optimization Plug-in Solver Engines Monte Carlo Simulation & Decision Trees Stochastic & Robust Optimization Forecasting Data Mining Analytic Solver Platform 8,000 Linear 1,000 Nonlinear Risk Solver Platform Premium Solver Platform 2,000 Linear 500 Nonlinear Premium Solver Pro Risk Solver Pro XLMiner 200 Solver Basic 9

Brief Overview of Analytic Solver Platform (ASP) Ribbon Gateway to Analytic Solver Platform s graphical user interface. Model: to display the Task Pane, defining dimensional models. Optimization Model: to set up optimization models. Simulation Model: to set up simulation models. Parameter: to run multiple optimizations or simulations. Solve Action: to solve optimization or simulation model. Analysis: to analyze the results, create reports and charts. 10

Brief Overview of Analytic Solver Platform (ASP) Ribbon Tools: to create decision trees, fit distributions, examine simulation or optimization results. Options: to set options for optimization, simulation, charts and graphs. Help: to display online Help, use Live Chat, control Guided Mode, open examples or an online tutorial, access User and Reference Guides, and check the license status. 11

Brief Overview of ASP Task Pane Model button: to display or hide the Task Pane. Model tab: to view the model in outline form, see results of model diagnosis, and optionally edit model elements in place. Platform tab: to view or change Platform options. Engine tab: to select a Solver Engine and set its options. Output tab: to view a log of solution messages, or a chart of the objective values. 12

Example Problem Definition A company manufactures and sells two models of hot tubs: the Aqua-Spa and the Hydro-Lux. Aqua-Spa needs 9 hours of labor, 12 feet of tubing, and 1 pump and generates $350 profit. Hydro-Lux needs 6 hours of labor, 16 feet of tubing, and 1 pump and generates $300 profit. Company expects to have 200 pumps, 1,566 labor hours, 2,880 feet of tubing. Managerial decision: how many Aqua-Spas and Hydro-Luxes should be produced to maximize the profit during the next production cycle? Products Aqua-Spa Hydro-Lux Total Availability Labor Hours 9 6 1566 Tubing Material 12 16 2880 Pump 1 1 200 Profit Margin 350 300 Maximization 13

Examples of Variables, Constraints, and Objective Portfolio optimization Variables: amounts invested in different assets Constraints: budget, max. or min. investment per asset, minimum return Objective: overall risk or return variance Power generation Variables: number of generating units, output rate, height of reservoir, Constraints: demand, generator limit Objective: operating, fuel cost, power consumption Process manufacturing Variables: raw materials allocated to production processes Constraints: max. or min. outputs, blend specifications Objective: profit or cost of final products 14

Mathematical Optimization Mathematical optimization problem Decision variables: x = (x 1,, x n ): Maximize/Minimize f 0 x Subject to f i x b i, i = 1,, m h i x = 0, i = m + 1,, M Objective function: f 0 Constraint functions: f i and h i for i = 1,, M Feasible solution: x that satisfies all the constraints. Optimal solution: x that has the largest/smallest value of f 0 among all possible x that satisfy the constraints. 4/30/2014 15

Example Problem Formulation Decision variables: number of Aqua-Spas Hydro-Luxes X 1 X 2 Objective function to max. profit: Max 350X 1 + 300X 2 Constraints: Total available labor hours: 9X 1 + 6 X 2 1566 Total available Tubing Material: 12X 1 + 16X 2 2880 Total pumps: 1X 1 + 1 X 2 200 Bounds on variables: X 1, X 2 0 Products Aqua-Spa Hydro-Lux Total Availability Labor Hours 9 6 1566 Tubing Material 12 16 2880 Pump 1 1 200 Profit Margin 350 300 Maximization 16

Example Spreadsheet Implementation Decision variables: number of Aqua-Spas Hydro-Luxes X 1 X 2 Spreadsheet Cells: B3 C3 Objective function to max. profit: Max 350X 1 + 300X 2 Spreadsheet Cell: E4 = B4 B3 + C4 C3 = SUMPRODUCT(B4: C4, B3: C3) 4/30/2014 17

Model Structure Matters! Frontline Solvers can optimize any optimization model defined in Excel, however speed and solution quality depend heavily on the formulas you use. This is intrinsic; independent of any optimization software. A linear model will solve quickly, to large scale, and yields a proven optimal solution. A model with IF or LOOKUP functions will solve many times more slowly, cannot be very large scale, and yields only a better solution. Feasibility or infeasibility can be proven only for convex models. 18

Linear, Non-Linear, Non-Smooth Linear: =SUM(A1:A10) Easiest/Fastest Non-linear: =A1*A1 Slower Non-smooth: =IF(A1>25, A1, 0) Hardest/Slowest 19

Beyond Linearity: Convexity The key property of functions of the variables that makes a problem easy or hard to solve is convexity. Geometrically, a function is convex if, at any two points x and y, the line drawn from x to y (called the chord from x to y) lies on or above the function. All linear functions are convex. The chord from x to y lies on the function. f(x) x f(y) y In a minimization problem, if all constraints and objective are convex you can be confident of finding a globally optimal solution even if the problem is very large. 4/30/2014 20

Non-Convexity A non-convex function curves up and down. SIN(C1) Combinations of non-convex functions create complex shapes that are expensive to search. Non-convex functions can have multiple locally optimal solutions, making it difficult to find the globally optimal solution. A compromise is to seek a good, but not a proven optimal solution. Even one non-convex function makes the whole model nonconvex, and therefore much harder to solve. 21

Linear Models: Easy to solve Linear constraints intersect to form a convex region. Optimal solution always lies on the boundary of the feasible region. x2 A Optimal solution Objective function: 3x 1 +2x 2 Max Subject to 3x 1 +2x 2 x 1 +x 2 4, 2x 1 +x 2 5, x 1 +4x 2 2 x 1, x 2 0. Feasible Region x1 22

Non-Linear Models: Harder to Solve NLP algorithms begin at a starting point (an initial feasible solution). Moves in the direction that improves the objective function. If there is no feasible direction to produce a better objective function value, it stops. A local optimal solution (better than any other feasible solutions in its immediate vicinity) might be found instead of global optimal solution. Starting points x2 Objective function level curves C Local optimal solution B F Feasible Region x1 G H Global optimal solution A E x1 23

Non-Smooth Models: Hardest to Solve For a non-smooth model, you should expect only a good, not an optimal solution. A systematic search would take exponentially long. Evolutionary algorithm relies on random sampling. Maintains a population of candidate solutions. Makes random changes and combines elements of existing solutions to create a new solution. Performs a selection process. Stops and returns a solution when certain heuristic rules indicate that further progress is unlikely or when it exceeds a limit on computing time. x2 x1 Feasible Region http://xefer.com/maze-generator 24

Recap Optimization Solutions Optimal solution a feasible solution where the objective function reaches its maximum (or minimum) value. Globally optimal solution is one where there are no other feasible solutions with better objective function values. A locally optimal solution is one where there are no other feasible solutions in the vicinity with better objective function values. The kind of solution the Solver can find depends the formulas you use and the Solver Engine you choose. Smooth convex: expect a globally optimal solution. Smooth non-convex: usually expect a locally optimal solution. Non-smooth: expect to settle for a good solution that may or may not be optimal. 4/30/2014 25

Formulas Determine Your Model s Structure SUM and SUMPRODUCT are common in linear models. IF and LOOKUP functions can be non-smooth/non-convex. ASP can automatically find problem formulas in your model. IF functions can sometimes be used: A1 is a decision variable, B1 is a constant parameter =IF(A1>10, A1,2*A1) is non-smooth =IF(B1>10, A1, 2*A1) is linear 4/30/2014 26

Model Building in a Spreadsheet Using Analytic Solver Platform 27

Models in Excel Spreadsheets A well-designed, well documented, and accurate spreadsheet model is a valuable tool in decision making. To build an optimization model in Excel, start with a what-if model, with input cells for decision variables. Create Excel formulas, copy them across cell ranges, Use Excel s array formulas, and Excel functions that return array results. Use Excel s rich facilities to access data in external text files, Web pages, and relational databases to populate the model. 28

Setting Up a Model in ASP as an Excel Spreadsheet Organize the data for the model on the spreadsheet. Reserve a cell to hold the value of each decision variable. Pick a cell to represent the objective function, and enter a formula that calculates the objective function value in this cell. Pick other cells and use them to enter the formulas that calculate the left-hand sides of the constraints. The constraint right-hand sides can be entered as numbers in other cells, or entered directly in the Solver s Add Constraint dialog. Best practice: use constants for constraint right-hand sides. 29

Example Spreadsheet Implementation Decision variables: number of Aqua-Spas Hydro-Luxes X 1 X 2 Spreadsheet Cells: B3 C3 Objective function to max. profit: Max 350X 1 + 300X 2 Spreadsheet Cell: E4 = B4 B3 + C4 C3 = SumProduct(B4: C4, B3: C3) Products Aqua- Spa Hydro- Lux Total Availability Labor Hours B8 = 9 C8 = 6 E8 = 1566 Tubing B9 = 12 C9 = 16 E9 = 2880 Pump B10 = 1 C10 = 1 E10 = 200 Profit Margin B4 = 350 C4 = 300 Maximization 30

Example Spreadsheet Implementation Constraints: Total available labor hours: 9 X 1 + 6 X 2 1566 Formula for Cell D8 = B3*B8+C3*C8 Or SUMPRODUCT(B3:C3,B8:C8) Total available Tubing Material: 12X 1 + 16X 2 2880 Formula for Cell D9 = B3*B9+C3*C9 Or SUMPRODUCT(B3:C3,B9:C9) Total pumps: 1X 1 + 1 X 2 200 Products Aqua- Spa Hydro- Lux Total Availability Labor Hours B8 = 9 C8 = 6 E8 = 1566 Tubing B9 = 12 C9 = 16 E9 = 2880 Pump B10 = 1 C10 = 1 E10 = 200 Profit Margin B4 = 350 C4 = 300 Maximization Formula for Cell D10 = B3*B10+C3*C10 Or SUMPRODUCT(B3:C3,B10:C10) Bounds on variables X 1, X 2 0 31

Summary Setting Up a Model in ASP as an Excel Spreadsheet Use mouse to select the cell range on the worksheet. Then click the Decisions button and click Normal to define the cell range as normal decision variables. Use the mouse to select the objective cell on the worksheet. Then click the Objective button (min or max). To define the constraints, use mouse to select the range on the worksheet. Then click the Constraints button, and click Normal Constraint (<=, > =, or =) 32

Summary Setting Up a Model in ASP as an Excel Spreadsheet Complete the Add Constraint dialog. Follow the Guided Mode stepby step help. The Task Pane Model tab now shows all the elements of the optimization model just defined in outline form. Solve the model by clicking the Optimize button on the Ribbon, or by clicking the green arrow at the top right of the Task Pane. 33

Summary Setting Up a Model in ASP as an Excel Spreadsheet Click on Continue and review the analysis results. Review the output tab. Click the underlined message in the log to open online Help to a full explanation of the message. Click on Next Step and review the Solver Results. 34

Solver Reports After solving, produce reports by selecting Reports Optimization from the Ribbon. Answer, Sensitivity Reports Structure Report Solutions Report Scaling Report Population Report Linearity and Feasibility Reports Transformation Report 4/30/2014 35

Parametric Optimization Often you want to solve a problem for various scenarios or cases. In each scenario, certain model parameters have different values. ASP lets you easily define optimization parameters, and run multiple optimizations in one Solve. Parameters are saved as =PsiOptParam() function calls. 36

Summary Parametric Optimization Select the cell, choose Parameters - Optimization from the Ribbon. Enter a lower and upper limit on values for the parameter, or a list of explicit values for the parameter. Use PsiOptValue (cell, optimization #) to retrieve the specific value for a cell or function of an optimization. Track a constraint value by setting its Monitor property in the Task Pane. Select Reports Optimization Multiple Optimization Select Charts Multiple Optimization. 37

Benefits of Optimization A good optimization model finds better combinations of values for the decision variables than you might find by manual what-if. Many of our customers have found better solutions for real industrial problems, worth millions in savings. Frontline s Solvers offer powerful tools to help you get a better solution by diagnosing model structure and fixing problems, automatically selecting the Solver Engine, and providing updated information at each step. Help Operating Mode Guided Mode. 38

Further Benefits of Modeling Building a model often reveals relationships and yields a greater understanding of the situation being modeled. Having built a model, it is possible to apply analytic methods to suggest courses of action that might not otherwise be apparent. Experimentation is possible with a model, whereas it is often not possible, or desirable, to experiment with the situation being modeled. Analytic Solver Platform is a complete toolset for descriptive, predictive and prescriptive analytics. 39

Contact Info Dr. Sima Maleki Best way to contact me: Consulting@Solver.com You may also download this presentation from our website. You can download a free trial version of Analytic Solver Platform at Solver.com. 40

References Spreadsheet Modeling and Decision Analysis: A Practical Introduction to Business Analytics, 7 th Edition http://www.cengage.com/us/ MANAGEMENT SCIENCE-The Art of Modeling with Spreadsheets, 4 th Edition http://www.wiley.com/wileycda/wileytitle/productcd-ehep002883.html Essentials of Business Analytics, 1 st Edition http://www.cengage.com/us/ Model Building in Mathematical Programming http://www.wiley.com/wileycda/wileytitle/productcd-1118443330.html 41

42

43