IENG 431_LAB2 27/03/09 Friday.

Slides:



Advertisements
Similar presentations
Solving LP Problems in a Spreadsheet
Advertisements

Optimization problems using excel solver
1 Material to Cover  relationship between different types of models  incorrect to round real to integer variables  logical relationship: site selection.
Linear Programming Problem. Introduction Linear Programming was developed by George B Dantzing in 1947 for solving military logistic operations.
Planning with Linear Programming
Linear Programming Problem
Linear Programming Models & Case Studies
Session II – Introduction to Linear Programming
1 Inventory Control for Systems with Multiple Echelons.
Operations Management Linear Programming Module B - Part 2
NetWORKS Strategy Manugistics NetWORKS Strategy 6.2.
Linear Programming Using the Excel Solver
Managerial Decision Modeling with Spreadsheets
McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Integer Programming.
Basic LP Problem McCarl and Spreen Chapter 2 LP problem is linear form of Mathematical Program This formulation may also be expressed in matrix notation.
1 Lecture 2 MGMT 650 Linear Programming Applications Chapter 4.
Environmentally Conscious Design & Manufacturing (ME592) Date: May 3, 2000 Slide:1 Environmentally Conscious Design & Manufacturing Class 24: Optimization.
DSC Slides 2b: How to create an Influence Diagram: start with a performance measure variable. Further decompose each of the intermediate variables.
Session 1b. Decision Models -- Prof. Juran2 Overview Spreadsheet Conventions Copying, Pasting, Reporting Introduction to Solver.
McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. 1.
1© 2003 by Prentice Hall, Inc. Upper Saddle River, NJ The Wyndor Glass Company Problem (Hillier and Liberman) The Wyndor Glass Company is planning.
Introduction to Mathematical Programming OR/MA 504 Chapter 5 Integer Linear Programming.
A GAMS TUTORIAL. WHAT IS GAMS ? General Algebraic Modeling System Modeling linear, nonlinear and mixed integer optimization problems Useful with large,
Spreadsheet Modeling of Linear Programming (LP). Spreadsheet Modeling There is no exact one way to develop an LP spreadsheet model. We will work through.
Decision Making via Linear Programming: A simple introduction Fred Phillips
Optimization Models Mathematical optimization models usually contain an objective (what to do) constraints (the rules that must be followed). Also referred.
Linear Programming Topics General optimization model LP model and assumptions Manufacturing example Characteristics of solutions Sensitivity analysis Excel.
Spreadsheet Modeling & Decision Analysis:
Strategic Production Planning Now showing at your local university.
Spreadsheet Modeling and Decision Analysis, 3e, by Cliff Ragsdale. © 2001 South-Western/Thomson Learning. 6-1 Integer Linear Programming Chapter 6.
Process Optimization By Dr : Mona Ossman.
In The Name Of Allah Lab 07 ins. Tahani Aldweesh.
Linear Programming last topic of the semester What is linear programming (LP)? Not about computer programming “Programming” means “planning” “Linear” refers.
Introduction. MS / OR Definition: Management Science (MS) or Operations Research (OR) is the scientific discipline devoted to the analysis and solution.
Modeling Issues for Data Warehouses CMPT 455/826 - Week 7, Day 1 (based on Trujollo) Sept-Dec 2009 – w7d11.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 1 Introduction n Introduction: Problem Solving and Decision Making n Quantitative Analysis and Decision Making n Quantitative Analysis n Model.
RESEARCH ASSISTANTS Mazyar Ghadirinejad & Farhood Rismanchian.
HW # Due:
LINEAR PROGRAMMING.
OPSM 301 Operations Management Class 11: Linear Programming using Excel Koç University Zeynep Aksin
Linear Programming (LP) Problems MAX (or MIN): c 1 X 1 + c 2 X 2 + … + c n X n Subject to:a 11 X 1 + a 12 X 2 + … + a 1n X n
USING SETS IN LINGO What Are Sets? Sets are simply groups of related objects. A set might be a list of products, trucks, or employees. Each member in the.
Linear Programming. George Dantzig 1947 NarendraKarmarkar Pioneers of LP.
LINGO Part III (IE 311 – Lab) Spring ‘07. Variables Domain Function  Variables in a LINGO model default to being nonnegative and continuous.  LINGO.
Chapter 6 Integer, Goal, and Nonlinear Programming Models © 2007 Pearson Education.
Chapter 3 Introduction to Linear Programming to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c)
Linear Programing Problem
Example 15: A manufacturer has 4 warehouses and 5 vendors all in different cities. In the first warehouse there are 50 products, in the second warehouse.
Bonus Problem 1. Decision Models -- Prof. Juran2 Optimization Example: Malcolm’s Glass Shop.
Appendix A with Woodruff Edits Linear Programming Using the Excel Solver Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
Class 10: Introduction to Linear Programming
Linear Programming.
Engineering Economics (2+0)
MID-TERM EXAM/REVISION
ENGM 742: Engineering Management and Labor Relations
Using Variable Domain Functions
Linear Programming – Introduction
McCarl and Spreen Chapter 2
USING SETS IN LINGO What Are Sets?
Linear Programming Dr. T. T. Kachwala.
MBA 651 Quantitative Methods for Decision Making
Presentation by Team 2.
LINGO TUTORIAL 2.
Session 1b Decision Models -- Prof. Juran.
Chapter 4 The Simplex Algorithm
Network Flow Problems – Maximal Flow Problems
Case 2:( Model Construction):
Linear Programming.
Presentation transcript:

IENG 431_LAB2 27/03/09 Friday

Example 1- Brute Production Process (@GIN): Rylon Corporation manufactures Brute and Chanelle perfumes. The raw material needed to manufacture each type of perfume can be purchased for 3$ per pound. Processing 1 lb of raw material requires 1 hour of laboratory time. Each pound of processed raw material yiels 3 oz of Regular Brute Perfume and 4 oz of Regular Chanelle Perfume. Regular Brute can be sold for 7$/oz and Regular Chanelle for $6/oz. Rylon also has the option of further processing Regular Brute and Regular Chanelle to produce Luxury Brute, sold at 18$/oz, and Luxury Chanelle,sold at $14/oz. Each ounce of Regular Brute processed further requires an additional 3 hours of laboratory time and 4$ processing cost and yields 1 oz of Luxury Brute. Each ounce of Regular Chanelle processed further requires an additional 2 hours of laboratory time and $4 processing cost and yields 1 oz of Luxury Chanelle. Each year, Rylon has 6,000 hours of laboratory time available and can purchase upto 4,000 lb of raw material. Formulate an LP that can be used to determine how Rylon can maximize profits. Assume that the cost of laboratory hours is a fixed cost.

Solution to Example 1: Determine how much raw material to purchase and mow much of each type of perfume to produce X1=number of ounces of Regular Brute sold annually X2=number of ounces of Luxury Brute sold annuallly X3=number of ounces of Regular Chanelle sold annually X4=number of ounces of Luxury Chanelle sold annually X5=number of pounds of raw material purchased annually Profit=revenues from perfume sales-processing costs-costs of purchasing raw material =7X1+18X2+6X3+14X4-(4X2+4X4)-3X5

Max z =7X1+14X2+6X3+10X4-3X5 Subject to X5<=4,000 Solution to Example 1: Max z =7X1+14X2+6X3+10X4-3X5 Subject to X5<=4,000 3X2+2X4+X5<=6,000 X1+X2-3X5=0 X3+X4-4X5=0 Xi>=0 (i=1,2,3,4,5)

Example 2-Production Process (@BIN): In a factory, 5 different types of products are produced by two machines.The following table includes the related information for the product types: Product type Production Quantity/month MC-1 MC-2 Product A 1,500 1,000 Product B 1,000 800 Product C 3,000 3,200 Product D 1,900 1,500 Product E 4,500 4,500

Formulate a binary LP where there is no need to produce all product types in a month.

Solution to Example 2: We have 5 types of products: X1,X2,X3,X4 and X5.(i=1,2,3,4,5) Our decision variables are: Ni and Bi (i=1…5). Ni=1 ;if machine 1 produces the ith product Ni=0 ;otherwise Bi=1 ;if machine 2 produces the ith product Bi=0 ;Otherwise

Using Sets in LINGO When and Why? Whenever you are modeling situations in real life there will be one or more groups of related objects. Such as customers, products, trucks, machines or workers. LINGO allows you to group these related objects together in to sets. So, sets are groups of related objects. Using sets, you can write a series of similar constraints in a single statement. Each member in the set may have one or more characteristics associated with it, which are called attributes (They can be known in advance or unknown that LINGO solves for).

Types of Sets in LINGO Some simple examples: Types of Sets: Product: Price Truck: Hauling capacity Warehouse: Storage Capacity Types of Sets: 1) Primitive Set 2) Derived Set Primitive Set: Compose only of objects, which can not be further reduced (e.g.: A set composed of 8 trucks). Derived set: It made from one or more other sets, or it is a subset of other sets or it is a combination of elements from the other sets.

How to use Sets? Defining Primitive Sets: Sets are defied in sets section. A sets section may appear anywhere in a model. It’s necessary to define sets before using them in a model. The sets section begins with “SETS:” and ends with “ENDSETS”. Defining Primitive Sets: Set name / member list / :attribute list ; Example: machines / m1, m2, m3, m4 / :working hours; Note: member list may be either explicitly or implicitly.

Defining Primitive Sets Explicitly: When the list of members is explicit (cleared and separated) by entering a unique name for each member. Example: Trucks / Truck1 Truck2/ Hauling capacity ; Implicitly: When there is no list of each member’s name. In fact it is not necessary to list a name for each set member. Set Name / Member1 .. Member N / :attribute list ; Where member1 is the name of the fist member in the set and member N is the name if the last member. LINGO automatically generates all the intermediate member names between member1 and member N.

Defining Primitive Sets Implicit member list format: 1- 1..n e.g. 1..5 members: 1, 2, 3, 4, 5 2- day M .. day N e.g. MON..FRI members: MON, TUE, WED, THU, FRI 3- String M.. String N e.g. Mach1 .. Mach4 members: Mach1, Mach2, Mach3, Mach4 4- Month M .. Month N e.g. OCT .. JAN members: OCT, NOV, DEC, JAN 5- MonthYearM ... MonthYearN e.g. OCT2001 ..JAN2002 members:Oct2001, Nov2001, Dec2001, Jan2002

Defining Primitive Sets Set members may have one or more attributes. Each attribute displays one property of each member. Example: students / 1..30 / name, surname, ID ; Example: Suppose that The XYZ company has 5 warehouses supplying 8 vendors with their products. There is limitation for capacity and demand for warehouses and vendors, respectively. Define the appropriate sets for warehouses and vendors. SETS: Warehouse /1..5/ :capacity; Vendor / 1..8 / demand; ENDSETS

Defining Derived Sets A derived set definition had the following syntax: Set name (parent-set-list) / member list / :attribute list; The parent-set-list is a list of previously defined sets, separated by commas. Without specifying a member list element, LINGO constructs (builds) all combinations of members from each parent set to create the members of the new derived set. Note: For variable having more than one indices (e.g.: Xij) they should be represented in a derived set.

Defining Derived Sets Example1: SETS: Product / A B / ; Machine / M N / ; Week / 1..2 / ; Allowed (Product, Machine, Week) ; ENDSETS Member Member (A, M, 1) (A, M, 2) (A, N, 1) (A, N, 2) (B, M, 1) (B, M, 2) (B, N, 1) (B, N, 2) Allowed set members:

Defining Derived Sets Example2 (Explicit member): SETS: Product / A B / ; Machine / M N / ; Week / 1..2 / ; Allowed (Product, Machine, Week) / A M 1, B N 2 / ; ENDSETS Member Member (A, M, 1) (B, N, 2) Allowed set members:

End of today’s lab.