1 INTRODUCTION TO LINEAR PROGRAMMING CONTENTS Introduction to Linear Programming Applications of Linear Programming Reference: Chapter 1 in BJS book.

Slides:



Advertisements
Similar presentations
Computational Methods for Management and Economics Carla Gomes Module 2 (addendum) Revisiting the Divisibility Assumption (Textbook – Hillier and Lieberman)
Advertisements

Thank you and welcome Linear Programming (LP) Modeling Application in manufacturing And marketing By M. Dadfar, PhD.
1 Material to Cover  relationship between different types of models  incorrect to round real to integer variables  logical relationship: site selection.
Introduction to Mathematical Programming
Introduction to Mathematical Programming Matthew J. Liberatore John F. Connelly Chair in Management Professor, Decision and Information Technologies.
Linear Programming Problem. Introduction Linear Programming was developed by George B Dantzing in 1947 for solving military logistic operations.
Lesson 08 Linear Programming
Linear Programming. Introduction: Linear Programming deals with the optimization (max. or min.) of a function of variables, known as ‘objective function’,
Linear Programming.
Linear Programming Problem
Linear Programming Models & Case Studies
Session II – Introduction to Linear Programming
Chapter 2: Modeling with Linear Programming & sensitivity analysis
CCMIII U2D4 Warmup This graph of a linear programming model consists of polygon ABCD and its interior. Under these constraints, at which point does the.
Linear Inequalities and Linear Programming Chapter 5 Dr.Hayk Melikyan/ Department of Mathematics and CS/ Linear Programming in two dimensions:
Learning Objectives for Section 5.3
Chapter 5 Linear Inequalities and Linear Programming Section 3 Linear Programming in Two Dimensions: A Geometric Approach.
Managerial Decision Modeling with Spreadsheets
Chapter 6 Linear Programming: The Simplex Method
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 6 LP Assumptions.
1 Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 3 Introduction to Linear Programming to accompany Introduction to Mathematical.
SE 303 Lab Multi-Period Financial Models Production planning problem.
Operations Management
1 Lecture 2 & 3 Linear Programming and Transportation Problem.
INTRODUCTION TO LINEAR PROGRAMMING
Operations Management - 5 th Edition Chapter 13 Supplement Roberta Russell & Bernard W. Taylor, III Linear Programming.
Linear-Programming Applications
Solving Linear Programming Problems Using Excel Ken S. Li Southeastern Louisiana University.
Chapter 10. Resource Allocation
FORMULATION AND GRAPHIC METHOD
McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. 1.
1-1 Introduction to Optimization and Linear Programming Chapter 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.
Product Mix Problem Monet company makes four types of frames.
Linear Programming Topics General optimization model LP model and assumptions Manufacturing example Characteristics of solutions Sensitivity analysis Excel.
1 DSCI 3023 Linear Programming Developed by Dantzig in the late 1940’s A mathematical method of allocating scarce resources to achieve a single objective.
Route Planning Texas Transfer Corp (TTC) Case 1. Linear programming Example: Woodcarving, Inc. Manufactures two types of wooden toys  Soldiers sell for.
Lecture 6 – Integer Programming Models Topics General model Logic constraint Defining decision variables Continuous vs. integral solution Applications:
LINEAR PROGRAMMING APPLICATIONS IN MARKETING, FINANCE, AND OPERATIONS MANAGEMENT (2/3) Chapter 4 MANGT 521 (B): Quantitative Management.
1 Linear Programming (LP) 線性規劃 - George Dantzig, 1947.
ENGM 631 Optimization Ch. 3: Introduction to Linear Programming.
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
3 Components for a Spreadsheet Optimization Problem  There is one cell which can be identified as the Target or Set Cell, the single objective of the.
8/14/04 J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 6 – Integer Programming Models Topics.
Integer Programming Definition of Integer Programming If requiring integer values is the only way in which a problem deviates from.
LINEAR PROGRAMMING.
OPSM 301 Operations Management Class 11: Linear Programming using Excel Koç University Zeynep Aksin
Lecture 6 – Integer Programming Models Topics General model Logic constraint Defining decision variables Continuous vs. integral solution Applications:
Introduction to Integer Programming Integer programming models Thursday, April 4 Handouts: Lecture Notes.
© 2009 Prentice-Hall, Inc. 7 – 1 Decision Science Chapter 3 Linear Programming: Maximization and Minimization.
LINEAR PROGRAMMING. Linear Programming Linear programming is a mathematical technique. This technique is applied for choosing the best alternative from.
Topics in Computational Sustainability Optimization: Intro to Linear programming.
Chapter 3 Introduction to Linear Programming to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c)
Linear Programming Models: Graphical and Computer Methods 7 To accompany Quantitative Analysis for Management, Twelfth Edition, by Render, Stair, Hanna.
Class 10: Introduction to Linear Programming
Linear Programming Topics General optimization model
Linear Programming – Introduction
Chapter 1. Introduction Ex : Diet Problem
Chapter 5 Linear Inequalities and Linear Programming
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
Exam 1 Review/Instructions
Linear Programming Topics General optimization model
Linear Programming Topics General optimization model
Linear Programming Topics General optimization model
The application of mathematics and the scientific
Spreadsheet Modeling & Decision Analysis
Operations Research Models
INTRODUCTION TO LINEAR PROGRAMMING
Lecture 6 – Integer Programming Models
Presentation transcript:

1 INTRODUCTION TO LINEAR PROGRAMMING CONTENTS Introduction to Linear Programming Applications of Linear Programming Reference: Chapter 1 in BJS book.

2 Linear Programming Problem Features of Linear programming problem:  Decision Variables  We maximize (or minimize) a linear function of decision variables, called objective function.  The decision variables must satisfy a set of constraints.  Decision variables have sign restrictions. Example: Maximize z = 3x 1 + 2x 2 subject to 2x 1 +x 2  100 x 1 +x 2  80 x 1  40 x 1, x 2  0

3 A Typical Linear Programming Problem Linear Programming Formulation: Minimize c 1 x 1 + c 2 x 2 + c 3 x 3 + …. + c n x n subject to a 11 x 1 + a 12 x 2 + a 13 x 3 + …. + a 1n x n  b 1 a 21 x 1 + a 22 x 2 + a 23 x 3 + …. + a 2n x n  b 2 : a m1 x 1 + a m2 x 2 + a m3 x 3 + …. + a mn x n  b m x 1, x 2, x 3, …., x n  0 or, Minimize  j=1, n c j x j subject to  j=1, n a ij x j - x n+i = b i for all i = 1, …, m x j  0 for all j =1, …, n+m Linear Objective Linear Constraints; - Technology - Uncontrolable variables/factors Decision (controlable) variables - Can take any real value - Restricted or unrestrited in sign Standard form representation

4 Matrix Notation Minimize cx subject to Ax = b x  0 where

5 Linear Programming Modeling and Examples Stages of an application:  Problem formulation  Mathematical model  Deriving a solution  Model testing and analysis  Implementation

6 An Example of a LP Giapetto’s woodcarving manufactures two types of wooden toys: soldiers and trains. How many of each type to produce? Constraints:  100 finishing hour per week available  80 carpentry hours per week available  produce no more than 40 soldiers per week Objective: maximize profit? Minimize cost?

7 An Example of a LP (cont.) Linear Programming formulation: Maximize z = 3x 1 + 2x 2 (Obj. Func.) subject to 2x 1 +x 2  100 (Finishing constraint) x 1 +x 2  80 (Carpentry constraint) x 1  40 (Bound on soldiers) x 1  0 (Sign restriction) x 2  0 (Sign restriction)

8 Assumptions of Linear Programming Proportionality Assumption  Contribution of a variable is proportional to its value. Additivity Assumptions  Contributions of variables are independent. Divisibility Assumption  Decision variables can take fractional values. Certainty Assumption  Each parameter is known with certainty.

9 Capital Budgeting Problem Five different investment opportunities are available for investment. Fraction of investments can be bought. Money available for investment: Time 0: $40 million Time 1: $20 million Maximize the Net Present Value of all investments.

10 Transportation Problem The Brazilian coffee company processes coffee beans into coffee at m plants. The production capacity at plant i is a i. The coffee is shipped every week to n warehouses in major cities for retail, distribution, and exporting. The demand at warehouse j is b j. The unit shipping cost from plant i to warehouse j is c ij. It is desired to find the production-shipping pattern x ij from plant i to warehouse j, i = 1,.., m, j = 1, …, n, that minimizes the overall shipping cost. What is Xij? Produced? Shipped? Why not consider production and shipping together? Why not maximize profit?

11 Static Workforce Scheduling Number of full time employees on different days of the week are given below. Each employee must work five consecutive days and then receive two days off. The schedule must meet the requirements by minimizing the total number of full time employees. Decision variable?

12 Multi-Period Financial Models Determine investment strategy for the next three years Money available for investment at time 0 = $100,000 Investment opportunities available : A, B, C, D & E No more than $75,000 in one invest Uninvested cash earns 8% interest Cash flow of these investments: Decision variables?

13 Cutting Stock Problem A manufacturer of metal sheets produces rolls of standard fixed width w and of standard length l. A large order is placed by a customer who needs sheets of width w and varying lengths. He needs b i sheets of length l i, i = 1, …, m. The manufacturer would like to cut standard rolls in such a way as to satisfy the order and to minimize the waste. Since scrap pieces are useless to the manufacturer, the objective is to minimize the number of rolls needed to satisfy the order.

14 Multi-Period Workforce Scheduling Requirement of skilled repair time (in hours) is given below. At the beginning of the period, 50 skilled technicians are available. Each technician is paid $2,000 and works up to 160 hrs per month. Each month 5% of the technicians leave. A new technician needs one month of training, is paid $1,000 per month, and requires 50 hours of supervision of a trained technician. Meet the service requirement at minimum cost.

15 Solution: Capital Budgeting Problem Decision Variables: x i : fraction of investment i purchased Formulation: Maximize z = 17x x x x x 5 subject to 11x x 2 + 5x 3 + 5x x 5  40 3x 1 + 6x 2 + 5x 3 + x x 5  20 x 1  1 x 2  1 x 3  1 x 4  1 x 5  1 x 1, x 2, x 3, x 4, x 5  0

16 Solution: Transportation Problem Decision Variables: x ij : amount shipped from plant i to warehouse j Formulation: Minimize z = subject to = a i, i = 1, …, m  b j, j = 1, …, n x ij  0, i = 1, …, m, j = 1, …, n

17 Solution: Static Workforce Scheduling LP Formulation: Min. z = x 1 + x 2 + x 3 + x 4 + x 5 + x 6 + x 7 subject to x 1 + x 4 + x 5 + x 6 + x 7  17 x 1 + x 2 + x 5 + x 6 + x 7  13 x 1 + x 2 + x 3 + x 6 + x 7  15 x 1 + x 2 + x 3 + x 4 + x 7  19 x 1 + x 2 + x 3 + x 4 + x 5  14 x 2 + x 3 + x 4 + x 5 + x 6  16 x 3 + x 4 + x 5 + x 6 + x 7  11 x 1, x 2, x 3, x 4, x 5, x 6, x 7  0

18 Solution: Multi period Financial Model Decision Variables: A, B, C, D, E : Dollars invested in the investments A, B, C, D, and E S t : Dollars invested in money market fund at time t (t = 0, 1, 2) Formulation: Maximize z = B + 1.9D + 1.5E S 2 subject to A + C + D + S 0 = 100, A + 1.2C S 0 = B + S 1 A + 0.5B S 1 = E + S 2 A  75,000 B  75,000 C  75,000 D  75,000 E  75,000 A, B, C, D, E, S 0, S 1, S 2  0

19 Solution: Multiperiod Workforce Scheduling Decision Variables: x t : number of technicians trained in period t y t : number of experienced technicians in period t Formulation: Minimize z = 1000(x 1 + x 2 + x 3 + x 4 + x 5 ) (y 1 + y 2 + y 3 + y 4 + y 5 ) subject to 160y x 1  6000 y 1 = y x 2  y 1 + x 1 = y 2 160y x 3  y 2 + x 2 = y 3 160y x 4  y 3 + x 3 = y 4 160y x 5  y 4 + x 4 = y 5 x t, y t  0, t = 1, 2, 3, …, 5

20 Cutting Stock Problem (contd.) Given a standard sheet of length l, there are many ways of cutting it. Each such way is called a cutting pattern. The jth cutting pattern is characterized by the column vector a j, where the i th component, namely, a ij, is a nonnegative integer denoting the number of sheets of length l i in the j th pattern. Note that the vector a j represents a cutting pattern if and only if  i=1,n a ij l i  l and each a ij is a nonnegative number.

21 Cutting Stock Problem (contd.) Formulation: x i : Number of sheets cut using patter j Minimize  i=1,n x i subject to  i=1,n a ij x i  b i i = 1, …, m x i  0 j = 1, …, n x i integer j = 1, …, n

22 Cutting Stock Problem (contd.) Formulation: Let l = 7, and type 1, type 2 and type 3 sizes demanded are 2, 3, and 5 with b1=10, b2=4, b4=3. possible patterns: j 3201 i Min. z = x 1 + x 2 + x 3 + x 4 subject to 3x 1 +2 x 2 + x 4  10 x 2 + 2x 3  4 x 4  3 x j integer j = 1, …, 4

23 Modeling issues Mini- max objective (scenario based modeling): Minimizing the maximum regret in decision making under uncertain outcomes fi(x) is the cost of the outcome under scenario i (equally likely scenarios) fi(x)=return of best decision under scenario i – return of the decision as a solution of the model above =>

24 Modeling issues Max-Min objective: =>

25 Modeling issues Mini-max:  Example: Farmer problem; How to allocate land to different crops? There are 6 weather scenarios (cold, dry) (cold, rainy) (hot, dry) (hot, rainy) (warm, dry) (warm, rainy) Three different crops with different per m2 harvest values under different scenarios. Different per kilo market value for each crop. For each fixed scenario, there is an optimal allocation –What is the optimal solution for a given scenario? Criterion: Minimize the maximum revenue lost (regret) Maxi-min  Example: Farmer problem: Criterion: Maximize the minimum revenue to be obtained fi(x): Revenue obtained for a given solution under scenario i Which one is the right model?

26 Modeling issues Minimize/Maximize absolute value => For maximimization problems multiply objective with -1 and turn them into minimization problem

27 Modeling issues

Is the absolute value a linear function?  A function is a linear function if it satisfies the following two conditons; f(a+b)=f(a)+f(b) f(ax)= af(x) (for any real “a” value) For the absolute function, we can find a counter example easily;  Let f(x)=|x|  f(-1+3) = |-1+3|=2 but f(-1)+f(3) = 1+3 = 4 first condition is violated. Therefore absolute value is not a linear function (proof by contradiction) 28

29 Modeling issues Fixed charge problem: Cost function with a fixed part

30 Modeling issues Either-or constraints: 1 out of k type constraints

31 Modeling issues If-then constraints

32 Modeling issues Piecewise linear functions x f(x) b1 b2 b3 b4 x= z(i)*bi+z(i+1)*b(i+1) where z(i)+z(i+1) = 1 i=0..3 f(x) = z(i)*f(bi)+z(i+1)*f(b(i+1)) where z(i)+z(i+1) = 1 i=0..3 Let y(i) = 1 if b(i) <= x <= b(i+1) y(i) = 0 otherwise 4 binary variables and 4+1 convex-combination variables (z).

33 Modeling issues Piecewise linear functions

34 Modeling issues Piecewise linear functions; Alternative formulation This model is not correct

Examples for some modelling constructs Consider the transportation model  Either or; Either we transfer from facility 3 to 4 or from 3 to 5, not both simultaneously.  If then; If we transfer from facility 3 to 4, we must not transfer from facility 3 to 5 (If X 34 >0 then X 35 =0)) 35

Steps of the geometric solution  Determine and draw the feasible region  Draw the c vector  Draw the iso cost lines (perpendicular to c vector)  Find the last point(s) that iso-cost lines touch the feasible region, when we move towards direction of –c (in minimization). This point (or points) is the optimal solution. 36 Geometric Solution

37 Geometric Solution 1.Draw the feasible region 3. Draw the iso-cost lines minimization; move towards –c maximization move towards c as long as (x1,x2) is in feasible region 2. Draw vector c 4. Find the optimal point(s)

Geometric Solution 38

39 Unique finite optimal solution

40 Alternative finite optimal solution

41 Unbounded optimal solution It is always the case that a corner point is among the optimal solution, if there is a finite optimal solution.

42 Empty feasible region