EuroSymphony Solver. The Simplex Algorithm

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

Linear Programming with Bounds

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology, Madras. Lecture No.

Solving linear programming

Linear Programming. them such that they

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

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

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

CSC 8301 Design & Analysis of Algorithms: Linear Programming

Use of in-built functions and writing expressions

Chapter 13-1 Notes Page 1

International Journal of Advance Research in Computer Science and Management Studies

How to Solve a Standard Maximization Problem Using the Simplex Method and the Rowops Program

MS Office for Engineers

Farming Example. Lecture 22. Solving a Linear Program. withthe Simplex Algorithm and with Excel s Solver

Alternative 1: You can create the chance using the techniques you learned in handout 1.

D-Optimal Designs. Chapter 888. Introduction. D-Optimal Design Overview

Math 2524: Activity 1 (Using Excel) Fall 2002

NOTATION AND TERMINOLOGY

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

Introduction to Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #16 Loops: Matrix Using Nested for Loop

Linear Programming. L.W. Dasanayake Department of Economics University of Kelaniya

Introduction to Linear Programming. Chapter 3: Hillier and Lieberman Chapter 3: Decision Tools for Agribusiness Dr. Hurley s AGB 328 Course

Math 414 Lecture 30. The greedy algorithm provides the initial transportation matrix.

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

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

Optimization in One Variable Using Solver

Math Introduction to Operations Research

Optimization Methods in Management Science

lab MS Excel 2010 active cell

Optimization of Design. Lecturer:Dung-An Wang Lecture 8

1 GIAPETTO S WOODCARVING PROBLEM

Basics: How to Calculate Standard Deviation in Excel

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

Intermediate Microsoft Excel

SYSTEMS OF NONLINEAR EQUATIONS

Quadratic Equations Group Acitivity 3 Business Project Week #5

Linear Programming Motivation

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology Madras.

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D.

5 Machine Learning Abstractions and Numerical Optimization

Maximizing an interpolating quadratic

Separate Text Across Cells The Convert Text to Columns Wizard can help you to divide the text into columns separated with specific symbols.

Constructing a decision tree for the research and development decision

LP Graphic Solution & Solver for LP

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

Name: THE SIMPLEX METHOD: STANDARD MAXIMIZATION PROBLEMS

MLR Institute of Technology

DesignDirector Version 1.0(E)

Basic Microsoft Excel 2007

Chapter 3: Rate Laws Excel Tutorial on Fitting logarithmic data

Anima-LP. Version 2.1alpha. User's Manual. August 10, 1992

Intermediate Microsoft Excel 2008

The Simplex Algorithm

Modern Methods of Data Analysis - WS 07/08

Product Engineering Optimizer

Some (semi-)advanced tips for LibreOffice

The Simplex Algorithm for LP, and an Open Problem

Giapetto s Woodcarving Problem

Working Under Feasible Region Contraction Algorithm (FRCA) Solver Environment

lpsymphony - Integer Linear Programming in R

Table of Contents Data Validation... 2 Data Validation Dialog Box... 3 INDIRECT function... 3 Cumulative List of Keyboards Throughout Class:...

Reference Services Division Presents. Excel Introductory Course

(Refer Slide Time: 01:00)

Running Head: Lab 4 STAT User Manual. User Manual. Prepared by: 411 Blue Team. Date: 12 December, Version 3

Non-linear regression tutorial

Artificial Intelligence

Linear Programming. Readings: Read text section 11.6, and sections 1 and 2 of Tom Ferguson s notes (see course homepage).

Linear Programming. Widget Factory Example. Linear Programming: Standard Form. Widget Factory Example: Continued.

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

Create a Form using Word

Using Microsoft Excel

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

EXCEL 2007 TIP SHEET. Dialog Box Launcher these allow you to access additional features associated with a specific Group of buttons within a Ribbon.

Chapter 4. Microsoft Excel

Running Head: Lab 4 STAT User Manual. User Manual. Prepared by: 411 Blue Team. Date: 19 November, Version 1

3 INTEGER LINEAR PROGRAMMING

ADAPTIVE FINITE ELEMENT

Graphical Analysis. Figure 1. Copyright c 1997 by Awi Federgruen. All rights reserved.

Starting Excel application

Tuesday, April 10. The Network Simplex Method for Solving the Minimum Cost Flow Problem

Assembly Language Manual for the STACK Computer

Optimization. Using Analytic Solver Platform REVIEW BASED ON MANAGEMENT SCIENCE

( ) ( ) Completing the Square. Alg 3 1 Rational Roots Solving Polynomial Equations. A Perfect Square Trinomials

MGO Tutorial - Dewatering Scenario

LP-Modelling. dr.ir. C.A.J. Hurkens Technische Universiteit Eindhoven. January 30, 2008

Logical Bases: Representation of Numbers Decimal number Positional notation Binary numbers

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

Getting Started. Custom Reports Software

Introduction to Microsoft Excel

RAVASMARTSOLUTIONS - TECH TIPS

STAT 311 (3 CREDITS) VARIANCE AND REGRESSION ANALYSIS ELECTIVE: ALL STUDENTS. CONTENT Introduction to Computer application of variance and regression

4. Linear Programming

Spreadsheet EXCEL. Popular Programs. Applications. Microsoft Excel. What is a Spreadsheet composed of?

16 - Comparing Groups

CSc 545 Lecture topic: The Criss-Cross method of Linear Programming

Finding an optimal seating arrangement for employees traveling to an event

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

Transcription:

EuroSymphony Solver After opening Lotus Symphony Spreadsheet EuroSymphony Solver can be reached in Tools menu EuroSymphony Solver submenu. It provides four algorithms to solve optimization problems, namly Simplex, Quadratic, Non-linear and Hungarian. More details are in context help. The Simplex Algorithm The simplex algorithm is a popular technique for numerical solution of the linear programming problem. A linear programming problem consists of a set of linear inequalities (the constraints) on a number of non-negative real variables and a linear function (the target function) on the same real variables which is to be maximized or minimized. To use the simplex algorithm of EuroOffice Solver, pick the corresponding menu item in the Tools menu. In the dialog that appears you can set the cells that contain the coefficients of the target function, the cells to change (the variable cells) and the cell range describing the constraints to be observed. If some cells are selected when you open the dialog, these will be assumed to be the variable cells. Note that the variable cells will be overwritten with the solution! If there are N variables, the target range and the variable range both have to be N cells wide and 1 cell high. The inequalities or constraints are expressed in a cell range N+2 cells wide and as high as many inequalities there are each row represents an inequality. The first N cells in each row contain the coefficients of a function over the variable cells. The second cell from the right contains a symbol of relationship: either "<=", ">=", "=" or "==", the last two of which are synonymous. The rightmost cell contains a constant (or a formula over something other than the changing cells). 1

Quadratic Solver The free version of EuroOffice Solver does not contain this solver method. It is only available in the Professional version. The quadratic solver algorithm can be used to solve quadratic optimization problems. The problem is similar to the linear programming problem, but the target function that is minimized can be quadratic. A quadratic optimization problem consists of a set of linear inequalities (the constraints) on a number of non-negative real variables and a quadratic function (the target function) on the same real variables which is to be minimized. To use the quadratic solver pick the corresponding menu item in the Tools menu. In the dialog that appears you can set the cells that contain the coefficients of the target function, the cells to change (the variable cells) and the cell range describing the constraints to be observed. If some cells are selected when you open the dialog, these will be assumed to be the variable cells. Note that the variable cells will be overwritten with the solution! If there are N variables, the target function is described by an N by N matrix for the quadratic component, a linear range that is N cells wide and 1 cell high and a single cell for a constant. The variable range has to be N cells wide and 1 cell high as well. The inequalities or constraints are expressed in a cell range N+2 cells wide and as high as many inequalities there are each row represents an inequality. The first N cells in each row contain the coefficients of a function over the variable cells. The second cell from the right contains a symbol of relationship. For the quadratic solver it can only be "<=". The rightmost cell contains a constant (or a formula over 2

something other than the changing cells). Non-linear Solver The free version of EuroOffice Solver does not contain this solver method. It is only available in the Professional version. The non-linear solver algorithm can be used to solve a number of non-linear optimization problems. The problems solved consist of a set of linear inequalities (the constraints) on a number of non-negative real variables and an arbitrary function (the target function) on the same real variables which is to be maximized or minimized. To use the non-linear solver pick the corresponding menu item in the Tools menu. In the dialog that appears you can set the cell that contains the target function, the cells to change (the variable cells) and the cell range describing the constraints to be observed. If some cells are selected when you open the dialog, these will be assumed to be the variable cells. Note that the variable cells will be overwritten with the solution! The target function is given as a regular OpenOffice.org formula, complete with the "=" sign at the start. You can use any function available in OpenOffice.org, but note that the solver will only perform well with target functions that change their values gradually as their parameters change. 3

If there are N variables, the variable range has to be N cells wide and 1 cell high. The range for the initial values has to be N cells wide and 1 cell high as well. The algorithm will start out from these values, so they have to satisfy the constraints. If the target function has multiple local optima, the initial values have to be near the optimum aimed at for the algorithm to perform well. Note that if you use the "Solve just once" setting, it is fine to use the same cells as both variable cells and initial value cells, but if you use the "Solve continuously" setting to create a continuous solver you have to use a separate cell range for initial values. The inequalities or constraints are expressed in a cell range N+2 cells wide and as high as many inequalities there are each row represents an inequality. The first N cells in each row contain the coefficients of a linear function over the variable cells. The second cell from the right contains a symbol of relationship: either "<=", ">=", "=" or "==", the last two of which are synonymous. The rightmost cell contains a constant (or a formula over something other than the changing cells). You can set the error magnitude of the algorithm. This setting influences how accurate the solution is going to be and also how fast it will be found. If the numbers in your calculations are of unusually large or small magnitude, then change this setting accordingly. You can also set a limit on how much time the optimization is allowed to take. It is usually convenient to give this setting in seconds, but if you want consistent behaviour across computers of varying CPU strengths, you can set a limit in terms of maximum number of iterations. 4

Hungarian Algorithm The free version of EuroOffice Solver does not contain this solver method. It is only available in the Professional version. The Hungarian algorithm is a combinatorial optimization algorithm which solves assignment problems in polynomial time. The assignment problem is one of the fundamental combinatorial optimization problems in the branch of optimization or operations research in mathematics. It consists of finding a maximum weight matching in a weighted bipartite graph. The form of the problem that is solved by the implementation in EuroOffice Solver is as follows: There are a number of suppliers and a number of consumers. There is an amount of goods supplied by each supplier and an amount of goods consumed by each consumer. The number of suppliers and consumers can be different, but the total amount of goods supplied and consumed must be equal. There is a function assigning a number to each pair of suppliers and consumers that is the cost of transporting a single item of goods from the given supplier to the given consumer. It is required to create a function that assigns a number to each pair of suppliers and consumers that is the number of goods to be transported from the given supplier to the given consumer so that for every supplier the sum of the goods transported from it to the consumers is 5

equal to the number of goods supplied by it, for every consumer the sum of goods transported to it is equal to the number of goods that it is willing to consume and that the total cost of transportation is minimal. To use the Hungarian algorithm of EuroOffice Solver pick the corresponding menu item in the Tools menu. In the dialog that appears you can set the cell range that describes the problem, the cell range to output the solution to and a single cell to output the value of the optimal solution to. If there is a range selected when you open the dialog it will be assumed to be the problem range. If there is no range selected then the range with numbers around the cursor will be guessed to be the problem range. The problem range for a problem of S suppliers and C consumers is S+1 cells tall and C+1 cells wide. The first cell of the first row is ignored. The rest of the first row contains the amounts of goods the consumers are willing to consume. The rest of the first column contains the amounts of goods the suppliers supply. The rest of the table contains the transportation cost function. If transportation is impossible between a supplier and a consumer then enter "X" in the cell corresponding to the supplier and consumer instead of a numerical value for the cost function. You have to set either both the solution range and the optimal value cell or just one of them. If you set the solution range it has to be S cells tall and C cells wide for a problem of S suppliers and C consumers. The cells of this range will be filled with the numbers of the solution indicating how many goods should be transported between the given pair of supplier and consumer. Note that any values currently in these cells will be overwritten! The same goes for the cell that is to contain the optimal cost. 6

Using Continuous Solvers Once you have set up the Solver dialog box, you have the choice of either solving the problem just once or creating a continuous solver. In both cases the problem will be solved by changing the variable cells. But if you have chosen to create a continuous solver, it will continue monitoring the target formula, the cells describing the initial values and the constraint range and whenever they change, the variable cells will immediately be updated with the new solution. This is very useful for quickly trying out different scenarios. The continuous solver will even be saved into the OpenDocument Spreadsheet file and will continue to function when loaded into an OpenOffice.org application that has the EuroOffice Solver extension installed. If you have the variable range of a continuous solver selected when you open the non-linear solver dialog from the menu, the dialog will be filled with the properties of the solver. If you create a continuous solver with the same variable range as an already existing continuous solver then you will be asked if you want to overwrite the existing solver. Solver Manager The Solver Manager is a dialog for listing, modifying and deleting continuous solvers. You can also use this dialog to create a new continuous solver that is set up similarly to an already running one. To do this choose to edit an existing solver, modify any settings you would like to (you must change the variable range, or the problem range for the Hungarian algorithm solver) and click OK. You can also access and modify a continuous solver by selecting its variable range (or the problem range for the Hungarian algorithm solver) and clicking the menu item corresponding to the type of the continuous solver. You can not delete a continuous solver this way though. 7