Linear Programming the simple Wyndor Glass example

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

Setup and graphical solution of Linear Programming Problems [2-variables] Mathematical Programming Characteristics

Solving linear programming

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

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

Lesson 08 Linear Programming

1 GIAPETTO S WOODCARVING PROBLEM

A Survey of Software Packages for Teaching Linear and Integer Programming

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

Excel Forecasting Tools Review

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

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

II. Linear Programming

Linear programming II João Carlos Lourenço

Lagrangean Methods bounding through penalty adjustment

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

Giapetto s Woodcarving Problem

Real life Problem. Review

Linear Programming with Bounds

Using Linear Programming for Management Decisions

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

Outline. Column Generation: Cutting Stock A very applied method. Introduction to Column Generation. Given an LP problem

Column Generation: Cutting Stock

OPTIMIZAÇÃO E DECISÃO 09/10

Algorithms for Decision Support. Integer linear programming models

CHAPTER 12: LINEAR PROGRAMMING

Linear Programming End Exercises and Answers

Benders Decomposition

Econ 172A - Slides from Lecture 9

There is class of problems known as Product Mix problems.

Linear Programming: Model Formulation and Graphical Solution

NCSS Statistical Software

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

Linear Programming: Model Formulation and Graphical Solution

ISE 203 OR I. Chapter 3 Introduction to Linear Programming. Asst. Prof. Dr. Nergiz Kasımbeyli

LP Graphic Solution & Solver for LP

Documenting Models in Word

Fundamentals of Integer Programming

NOTATION AND TERMINOLOGY

Chapter 13-1 Notes Page 1

Ch.02 Modeling with Linear Programming. Management Science / Instructor: Bonghyun Ahn

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

Chapter 9 Data Analysis

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

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

Application of Cutting Stock Problem in Minimizing The Waste of Al-Quran Cover

Introduction to CPLEX. Some very convenient solvers for most students include those with Excel and Matlab.

Algebra Reviews & LP Graphic Solutions

CURVE SKETCHING EXAM QUESTIONS

Three-Dimensional (Surface) Plots

Optimization in One Variable Using Solver

Outline. Alternative Benders Decomposition Explanation explaining Benders without projections. Primal-Dual relations

Applications of Linear Programming

Using the Graphical Method to Solve Linear Programs J. Reeb and S. Leavengood

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

TIM 206 Lecture Notes Integer Programming

Chapter 7. Linear Programming Models: Graphical and Computer Methods

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.

Linear Programming. Meaning of Linear Programming. Basic Terminology

UNIT 2 LINEAR PROGRAMMING PROBLEMS

PRACTICAL EXERCISE 1.1.6b

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

Graphing Linear Inequalities in Two Variables.

Read Me First (Excel 2007)

A novel approach to include limited equipment connectivity in State-Task Network models

CHAPTER 12: LINEAR PROGRAMMING

COMP9334: Capacity Planning of Computer Systems and Networks

Lesson 2b Functions and Function Operations

STEP Support Programme. Assignment 13

TMA946/MAN280 APPLIED OPTIMIZATION. Exam instructions

ODBC INSTALLATION Operating System: Windows Bit

Course Overview. Audience Profile. At Course Completion. Module Title : 50546A: Learn Microsoft Excel 2010 Step by Step, Level 3

CHAPTER 11: BASIC LINEAR PROGRAMMING CONCEPTS

LSMW (Legacy System Migration Workbench) Published by Team of SAP Consultants at SAPTOPJOBS Visit us at.

Full file at Linear Programming Models: Graphical and Computer Methods

Some Advanced Topics in Linear Programming

MyChoice Cardholder User Guide

Advanced Operations Research Techniques IE316. Lecture 10. Dr. Ted Ralphs

Process Optimization

/ Approximation Algorithms Lecturer: Michael Dinitz Topic: Linear Programming Date: 2/24/15 Scribe: Runze Tang

Module 1 Lecture Notes 2. Optimization Problem and Model Formulation

What s Linear Programming? Often your try is to maximize or minimize an objective within given constraints

UNIT 6 MODELLING DECISION PROBLEMS (LP)

ReACT New User Setup, Password Reset and Account Unlock Instructions

How to Install and Setup VoIPOffice Communicator for Mac

Linear Programming Problems: Geometric Solutions

Section 2.1 Graphs. The Coordinate Plane

LPL: Product Description

CHAPTER 4 Linear Programming with Two Variables

Getting Started Graphs of Functions Chapter 1

171S3.3p Analyzing Graphs of Quadratic Functions. October 04, Vertex of a Parabola. The vertex of the graph of f (x) = ax 2 + bx + c is

Chapter 2: Linear Programming - Maximization

SOLAR SA - MANAGING SERVICE INDICATORS - REFERENCE GUIDE

An introduction to pplex and the Simplex Method

INFORMATION ABOUT DOWNLOADS USING INTERNET BROWSERS

Combinatorial Optimization

Using Respondus with GeorgiaVIEW Vista

Steps to Sign up and Login to the Self Service Portal & Reset Password

Server Manager User and Permissions Setup

Transcription:

Linear Programming the simple Wyndor Glass example tks@imm.dtu.dk Informatics and Mathematical Modeling Technical University of Denmark 1

Outline Abbreviations LP parts: Decision variables Objective function Constraints Wyndor glass Wyndor model in Excel 2

Abbreviations LP: Linear Programming ILP: Integer Linear Programming Solver: An algorithm/a program which finds the optimal solution to LP/ILP problems Decision variables: An un-decided decision which is left to the solver Objective function: A function specifying the cost of a certain setting of the decision variables Constraint set: A set of equations limiting the possible values of the decision variables 3

The Basic LP The basic LP model/formulation contains 3 different elements: (Decision) Variables (Linear) Objective function A set of (linear) constraints 4

A Linear Program MAX 300x + 500y 5

A Linear Program MAX 300x + 500y ST : x 4 2y 12 3x + 2y 18 5

A Linear Program MAX 300x + 500y ST : x 4 2y 12 3x + 2y 18 x 0 y 0 5

Graphically y 8 6 4 2 2 8 6 4 Only positive x 6

Graphically y 8 6 y <= 6 4 2 2 4 6 8 2y 12 x 6

Graphically y 8 x <= 4 6 y <= 6 4 2 2 4 6 8 x x 4 6

Graphically y 8 x <= 4 6 y <= 6 4 2 3x + 2y <= 18 2 4 6 8 x 3x + 2y 18 6

Graphically y 8 x <= 4 6 y <= 6 4 f(x)=300x+500y 2 3x + 2y <= 18 2 4 6 8 x f(x) = 300x + 500y 6

Graphically y Maximisation 8 x <= 4 6 y <= 6 4 f(x)=300x+500y 2 3x + 2y <= 18 2 4 6 8 x Maximal point: x = 2 and y = 6 6

Modelling What does this have to do with the real world? LP models are extremely usefull Modelling is the proces of formulating a mahtematical model for the problem. Lets look at a simple problem, the Wyndor glass problem, from the book Introduction to Operations Research, by Hillier & Liberman. 7

Wyndor Glass: Profit maximation Wyndor glass is a compagny producing different kinds of windows and (window) doors. They are considering two new types of products, a new aluminium door and wooden window. The question is now: Which mix of products should be produced, limited by the capacity of the production lines such that the profit is maximized? 8

Wyndor Glass: The production lines Wyndor glass have three types of production lines: A production line for aluminium frames, (4 production hours available) A production line for wood frames, (12 production hours available) An assembly line, (18 production hours available) 9

Door production Each batch of doors requires: 1 hour of work on the aluminium framing line 3 hours of work on the assembling line Each batch of doors can be sold for 300 $ s. 10

Door & Window production Each batch of windows requires: 2 hours of work on the wood framing line 2 hours of work on the assembling line Each batch of windows can be sold for 500 $ s. 11

Modelling: How? Given a problem we should ask the following questions: What should we decide? 12

Modelling: How? Given a problem we should ask the following questions: What should we decide? The ammount of production of Doors and Windows 12

Modelling: How? Given a problem we should ask the following questions: What should we decide? The ammount of production of Doors and Windows What are the limits on the produktion plans? 12

Modelling: How? Given a problem we should ask the following questions: What should we decide? The ammount of production of Doors and Windows What are the limits on the produktion plans? Do not overuse the production capacity and only allow positive production. 12

Modelling: How? Given a problem we should ask the following questions: What should we decide? The ammount of production of Doors and Windows What are the limits on the produktion plans? Do not overuse the production capacity and only allow positive production. What is the goal? 12

Modelling: How? Given a problem we should ask the following questions: What should we decide? The ammount of production of Doors and Windows What are the limits on the produktion plans? Do not overuse the production capacity and only allow positive production. What is the goal? Maximize the profit: 300D + 500W 12

A LP model We decide: The production (in batches) is defined by two decision variables: D (Doors) and W (Windows) The profit is calculated as a linear function: profit = 300 D + 500 W The limited capacity of each line is modelled as a constraint. 13

The LP model MAX 300D + 500W ST : D 4 2W 12 3D + 2W 18 D 0 W 0 Hmmm, this looks familiar... 14

Graphical view y Maximisation 8 x <= 4 6 y <= 6 4 f(x)=300x+500y 2 3x + 2y <= 18 2 4 6 8 x 15

Now what? Ok, having a model is all very nice, but it does not earn us any money! Finding optimal solutions is not trivial in more than 2 dimensions...... and we would like the computer do do the work for us... This is where Excel comes in: We can translate our above model into a linear model in Excel and the built in solver will find the optimal solution (but of course we already know it: D = 2 and W = 6). 16

Hence: Switch to Excel 17

Excel in Gbar We have access to Excel in the DTU databar in the following way: Login to the databar Start windows: win desk Log into Excel again (same login name and password) Choose Excel from the start button 18

Excel in Gbar II Add solver login (unfortunately this is necessary after every Excel start up...) Tools drop down menu Choose add in s Choose solver add in Select ok Load your favorite Excel model... 19

Implementing the first Wyndor model Load the data (or write it from scratch) Establish the constraint result cells, using sumproduct for each constraint Establish the result cell (again sumproduct) Enter the solver Select the cell Add the constraints Set options (assume linear annd non-negative) Say ok 20