TBF General Mathematics - II Lecture – 9 : Linear Programming

Slides:



Advertisements
Similar presentations
LIAL HORNSBY SCHNEIDER
Advertisements

Chapter 6 Linear Programming: The Simplex Method
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Chapter 6 Linear Programming: The Simplex Method
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Chapter 6 Linear Programming: The Simplex Method
Water Resources Development and Management Optimization (Linear Programming) CVEN 5393 Feb 18, 2013.
Chapter 5 Linear Inequalities and Linear Programming
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.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
The Simplex Method: Standard Maximization Problems
Operation Research Chapter 3 Simplex Method.
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 54 Chapter 3 Linear Programming,
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
LINEAR PROGRAMMING SIMPLEX METHOD.
Chapter 19 Linear Programming McGraw-Hill/Irwin
Learning Objectives for Section 6.2
Chapter 6 Linear Programming: The Simplex Method Section 2 The Simplex Method: Maximization with Problem Constraints of the Form ≤
 A concert promoter wants to book a rock group for a stadium concert. A ticket for admission to the stadium playing field will cost $125, and a ticket.
Opener. Notes: 3.4 Linear Programming Optimization  Many real-life problems involve a process called optimization.  This means finding a maximum or.
Linear Programming: A Geometric Approach3 Graphing Systems of Linear Inequalities in Two Variables Linear Programming Problems Graphical Solution of Linear.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Linear Programming Problem. Definition A linear programming problem is the problem of optimizing (maximizing or minimizing) a linear function (a function.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
1 Optimization Techniques Constrained Optimization by Linear Programming updated NTU SY-521-N SMU EMIS 5300/7300 Systems Analysis Methods Dr.
Linear Programming Department of Business Administration FALL by Asst. Prof. Sami Fethi.
Linear Programming. George Dantzig 1947 NarendraKarmarkar Pioneers of LP.
Linear Programming: A Geometric Approach3 Graphing Systems of Linear Inequalities in Two Variables Linear Programming Problems Graphical Solution of Linear.
Business Mathematics MTH-367 Lecture 14. Last Lecture Summary: Finished Sec and Sec.10.3 Alternative Optimal Solutions No Feasible Solution and.
Chapter 3: Sensitivity Analysis and the Dual Problem & Shadow Prices
7. Linear Programming (Simplex Method)
Linear Programming.
Linear Programming Many problems take the form of maximizing or minimizing an objective, given limited resources and competing constraints. specify the.
Solving Linear Program by Simplex Method The Concept
Engineering Economics (2+0)
LINEAR PROGRAMMING.
Chapter 5 Linear Inequalities and Linear Programming
Systems of Equations and Inequalities
Lecture 3.
Linear Programming Dr. T. T. Kachwala.
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear programming Simplex method.
Chapter 6 Linear Programming: The Simplex Method
Linear Programming Prof. Sweta Shah.
Linear Programming.
Chapter 3 The Simplex Method and Sensitivity Analysis
Linear Programming Objectives: Set up a Linear Programming Problem
Lial/Hungerford/Holcomb/Mullins: Mathematics with Applications 11e Finite Mathematics with Applications 11e Copyright ©2015 Pearson Education, Inc. All.
Do Now! Solve the system of equations Do all work on the notecard.
Copyright © Cengage Learning. All rights reserved.
Duality Theory and Sensitivity Analysis
Linear Programming SIMPLEX METHOD.
Linear Programming.
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Linear Programming I: Simplex method
Linear programming Simplex method.
Chapter 5. The Duality Theorem
Chapter 7: Systems of Equations and Inequalities; Matrices
Copyright © 2014, 2010, 2007 Pearson Education, Inc.
Copyright © 2019 Pearson Education, Inc.
Chapter 4 The Simplex Algorithm
TBF General Mathematics - II
TBF Generall Mathematics - II Lecture – 8 : Linear Inequalities
Simplex method (algebraic interpretation)
Problem Constraints of the Form 
Linear Programming.
Presentation transcript:

TBF 122 - General Mathematics - II Lecture – 9 : Linear Programming Prof. Dr. Halil İbrahim Karakaş Başkent University

Linear programming is a mathematical process that has been developed to help managers and administrators in decision making. We will explain this topic by several examples. The idea of linear programming has begun by Russian mathematician L. W. Kantarovich in 1939 when he solved a manufacturing problem. In his article “The best use of economic resources”, Kantarovich discusses several “optimization” techniques. That article was written in 1942 and published in 1959. Wassily Leontief also developed some linear programming techniques that have applications in economics. In 1947, Dantzig also invented the simplex method that for the first time efficiently tackled the linear programming problem in most cases. In the present lecture, we will discuss very simple (two variables) linear programming problems and their solutions using an intuitive geometric approach. In the forthcoming lectures we will consider linear programming problems in several variables using algebraic approach (simplex method). We will see that insight gained from geometric approach will help us understand the algebraic approach.

Maximum labor-hours available Linear Programming in two variables. Let us construct the mathematical model of the following problem. Problem(Production Scheduling). A manufacturer of leather garments makes jackets and vests. Each leather jacket requires 2 labor-hours from the cutting department and 4 labor-hours from sewing department. Each leather vest requires 1 labor-hour from the cutting department and 3 labor-hours from sewing department. The maximum labor-hours available per day in the cutting department and the sewing department are 16 and 36, respectively. If the manufacturer makes a profit of 120 TL on each jacket and 70 TL on each vest, assuming that all jackets and vests produced will be sold, how many jackets and how many vests should be manufactured each day to maximize the total daily profit? It will be useful to summarize the data of the problem in a table: Labor-hours needed Jacket Vest Maximum labor-hours available Cutting Department 2 1 16 Sewing Department 4 3 36 Profit per product 120 TL 70 TL

Maximum labor-hours available Labor-hours needed Jacket Vest Maximum labor-hours available Cutting Department 2 1 16 Sewing Department 4 3 36 Profit per product 120 TL 70 TL Let us assume that the number of jackets produced per day is x and the number of vests produced per day is y (assigning variables). Profit: Cutting: Sewing: Taking into consideration the fact that x and y can’t be negative, the following system of inequalities should be satisfied. The problem is to find the solution of the above system of linear inequalities at which the linear function P(x,y)=120x+70y attains its maximum value and also to find that maximum value. This kind of problems are called linear programming problems.

Nonnegative Constraints Every linear programming problem has the following components(constituents). A function to be maximized (or minimized) Objective function Desicion Variables A system of linear inequalities Problem Constraints Nonnegative Constraints

The mathematical model of a linear programming problem is expressed mostly in the following format: Maximize subject to The aim in solving a linear programming problem is to determine the maximum (or the minimum) value of the objective function subject to the problem const-raints and nonnegative constraints. That value is called the optimal value. In our sample problem, the optimal value is the maximum value of the objective function. Therefore, the expression begins with “Maximize..”. In problems requiring the minimum value of the objective function, the mathematical model begins with “Minimize..”. We will have examples of minimization problems, too.

As for our sample problem, a linear programming problem in two variables is solved by investigating the maximum (or minimum) value of the objective function on the solution region of the system of linear inequalities given by the constraints of the problem. That solution region is also called the feasible region of the problem. The method of solving a problem by using the feasible region is called the geometric method. Geometric Solution. By our discussions in the previous lecture about the maxi-mum and minimum values of linear functions on solution regions of systems of linear inequalities, we have Teorem. If the optimal value of the objective function of a linear programming problem exists, then that value must occur at one (or more) corner points of the feasible region of the problem. Teorem. a) If the feasible region of a linear programming problem is bounded, then both the maximum value and the minimum value of the objective function always exist.   b) If the feasible region of a linear programming problem is unbounded and the coefficients of the objective function are all positive, the minimum value of the objective function exists, but the maximum value does not.

Optimal value Feasible Region Corner P(x,y) (0,0) (0,12) 840 (6,4) (0,12) 840 (6,4) 1000 (8,0) 960 Optimal value Since the feasible region is bounded, optimal solution exists and occurs at a corner point. Thus the manufacturer should produce 6 jackets and 4 vests each day for maximum profit. Maximum daily profit is 1000 TL .

To solve a linear programming problem in two variables by geometric method one can follow the steps below: Step 1 . Make a table of data (this step may be omitted if the problem is clear). Step 2 . Construct the mathematical model: a) Assign the decision variables and express the objective function. b) Express the problem constraints as inequalities or equalities. c) Express the nonnegative constraints Step 3 . Graph the feasible region and decide whether an optimal solution exists or not (use the above theorems). If an optimal solution exists, find the coordinates of the corner points of the feasible region. Step 4 . Find the value of the objective function at each corner point and make a table listing them. Step 5 . Determine the optimal solution(s) from the table in Step 4. Step 6 . For an applied problem, interpret the optimal solution and answer the questions in the original problem.

An example of a minimization problem. Problem. 36 tons of potatoes will be transported to a trade center from three different producers. Transportation of 1 ton of potato costs 40 TL from the first producer, 30 TL from the second and 10 TL from the third. The transporter has each day at most 120 minutes to load 36 tons of potatoes to the vheicles. Loading a ton of potatoes takes 1 minute for the first producer, 4 minutes for the second and 3 minutes for the third. The first producer can give at most 30 tons, the second producer can give at most 24 tons and the third producer can give at most 18 tons of potatoes. How much potatoes should be taken from each producer so that the daily transportation cost will be minimum? What is the minimum daily cost? Solution. Data table First Second Third Total Time 1 4 3 120 capacity 30 24 18 36 Cost 40 TL 30 TL 10 Although there seems to be thre variables at the first sight, the problem can be modeled as linear programming problem in two variables. Let x tons of potatoes be loded each day from the first producer and y tons from the second producer. Then 36 – (x + y) tons of potatoes will be loaded from the third producer. Thus the daily transportation cost is

Solution. Data table First Second Third Total Time 1 4 3 120 capacity 30 24 18 36 Cost 40 TL 30 TL 10 Although there seems to be three variables at the first sight, the problem can be modeled as a linear programming problem in two variables. Let x tons of potatoes be loded each day from the first producer and y tons from the second producer. Then 36 – (x + y) tons of potatoes will be loaded from the third producer. Thus the daily transportation cost is As for the problem constraints, we have and .

Taking into consideration the nonnegative constraints and The mathematical model of the problem is obtained as: Minimize subject to Next slide

Corner C(x,y) (18,0) 900 (30,0) 1260 (30,6) 1380 (12,24) 1200 (6,24) (0,0) x y (6,24) (12,24) (2,16) Corner C(x,y) (30,6) (18,0) 900 (30,0) 1260 (30,6) 1380 (18,0) (30,0) (12,24) 1200 (6,24) 1020 (2,16) 740 We see from the table that the objective function takes its minimum value at (2,16). The minimum value is 740. Thus the minimum daily transportation cost is minimum if the amount of potoes taken from the first, second and the third producer are 2, 16 and18 tons, respectively. The minimum cost is 740 TL .

Problem(Production Scheduling) Problem(Production Scheduling). An electronics company manufactures desk-top and lap-top computers. The production of a desk-top computer requires a capital expenditure of 300 TL and 30 hours of labor; a lap-top computer requires a capital expenditure of 600 TL and 40 hours of labor. The company has 48000 TL capital and 4200 hours of labor available for production of desk-top and lap-top computers. The company expects that all computers it produces will have customers; each desk-top computer contributes a profit of 150 TL and each lap-top computer contributes a profit of 250 TL. How many computers of each type should the company produce to maximize its profit? What is the maximum profit? . Data table Desk-top Lap-top Source available Capital 300 600 48000 Labor 30 40 4200 Profit 150 TL 250 TL

Desk-top Lap-top Source available Capital 300 600 48000 Labor 30 40 4200 Profit 150 TL 250 TL Let x be the number of desk-top computers produced, y the number of lap-tops (assigning variables). Profit: Capital: Labor: With the nonnegative constraints, the mathematical model is obtained as follows: Maximize P(x,y) = 150x + 250y subject to

Optimal solution Feasible Region Corner P(x,y) (0,0) (0,80) 20000 (0,80) 20000 (100,30) 22500 (140,0) 21000 Optimal solution Since the feasible region is bounded, optimal solution exists and it occurs at corner points. To maximize its profit, the company should produce 100 desk-top and ve 30 lap-top com-puters. Maximum profit is 22500 TL .

Problem. A plant has two benches and two types of product, called A and B, are produced there. Both benches are used for the production of both products. If the first bench is run only for the production of A, in one day it can do the work necessary for 40 units of A ; if that bench is run only for the production of B, in one day it can do the work necessary for 60 units of B. Similarly, if the second bench is run only for A, in one day it can do the work necessary for 50 units of A; if it is run only for B, in one day it can do the work necessary for 50 units of B. Each unit of A contributes a profit of 20 TL and each unit of B contributes a profit of 40 TL. Assuming that all the products will be sold, how many units of A and B should be produced to maximize the profit? Let x1 units of A and x2 units of B be produced. Then the mathematical model of the problem can be obtained as follows: To get the problem constraints, note for instance that if the first bench is run only for A the whole day, the work of 40 units of A is done, therefore the time needed for the work of x1 units of A is (1/40)x1 day. The same bench needs (1/60) x2 day to do the work of x2 units of B. Thus Maximize subject to

x2 x1 (20,30) (0,60 (0,50) (0,0) (40,0) (50,0) FEASIBLE REGION CORNER P (0,0) (40,0) 800 (20,30) 1600 (0,50) 2000 (0,0) (40,0) (50,0) x1 We see from the table above that maximum profit occurs when x1=0 and x2 = 50. Therefore, to maximize the profit, only 50 units of B should be produced. Maximum profit isr 2000 TL.

Example. Maximize and minimize subject to 2x1+x2 = 20 x1+x2 = 12 Corner C(x1,x2) (0,0) (0,10) 300 (3,9) 330 (8,4) 280 (10,0) 200

Example. Maximize and minimize subject to

Preparaion for Simplex Method. Let us consider the mathematical model of the problem of “production scheduling” in the beginning by substituting x1 for x, x2 for y : Maximize subject to By adding new variables to the left hand side of the problem constraints, we obtain the following system of linear equations: Decision variables

Decision variables Slack variables If 3 jackets (x1 = 3), and 4 vests (x2 = 4) are produced a day, in cutting department, 2.3+ 4. 1=10 hours of labor is used, 6 hours of labor is not used (s1 = 6). Similarly, in sewing department, 4.3+3. 4 = 24 labor hour is used, 12 labor hour is not used (s2 = 12). If the decision variables x1 and x2 satisfy the problem constraints and nonnegative constraints, then the slack variables can not be negative. It follows that the optimal solution of the linear programming problem is among the solutions of the system of linear equations obtained by adding slack variables to the problem constraints such that x1, x2, s1, s2 ≥ 0. Given a system of linear equations with the number of equations less than the number of variables, we choose variables as many as the number of equations in the system and call them the basic variables, and call the remaining variables the nonbasic variables In a system of linear equations as above, the solutions obtained by substituting zero for nonbasic variables and solving for the basic variables are called basic solutions.

Example. For the system choose x1 and x2 as basic variables. Then s1 and s2 are nonbasic. Setting s1 = 0 and s2 = 0, we obtain which leads to the basic solution below All basic solutions obtained in this way will be shown on a table.

Basic variables basic solution x1 x2 s1 s2 x1 , x2 6 4 0 0 x1 , s1 9 0 -2 0 x1 , s2 8 0 0 4 x2 , s1 0 12 4 0 x2 , s2 0 16 0 -12 s1 , s2 0 0 16 36 For each basic solution we see that the pair (x1 , x2 ) gives the coordinates of the point of intersection of two of the lines corresponding to two of the constraints of the problem. This will be demonstrated in the next slide:

x1 x2 s1 s2 (x1 , x2) (6,4) (9,0) (8,0) (0,12) (0,16) (0,0) 8 0 0 4 Basic variables basic solution x1 x2 s1 s2 (x1 , x2) Intersecting lines (6,4) (9,0) (8,0) (0,12) (0,16) (0,0) 8 0 0 4 0 12 4 0 6 4 0 0 x1 , x2 x1 , s1 9 0 -2 0 x1 , s2 x2 , s1 x2 , s2 0 16 0 -12 s1 , s2 0 0 16 36

When we consider the basic solutions and the corresponding pairs (x1,x2) together with the feasible region of the problem (you see below, the table of basic solutions and the feasible region of the problem of production scheduling side by side), we notice that if all components of a basic solution are nonnegative, then (x1,x2 ) gives coordinates of a corner point of the feasible region. Conversely, each corner point of the feasible region corresponds to a basic solution all components of which are nonnegative. This correspondence is one to one. If a basic solution has negative components, then (x1,x2) is formed by the coordinates of a point outside the feasible region. Basic Solutions x1 x2 s1 s2 (x1 , x2) 6 4 (6,4) 9 -2 (9,0) 8 (8,0) 12 (0,12) 16 -12 (0,16) 36 (0,0)

Basic Solutions x1 x2 s1 s2 (x1 , x2) 6 4 (6,4) 8 (8,0) 9 -2 (9,0) 16 -12 (0,16) 12 (0,12) 36 (0,0) A basic solution is called a feasible basic solution if it contains no negative component. If a basic solution has negative components, then it is called a nonfeasible basic solution. Feasible basic solutions correspond to the corner points of the feasible region. The theorem about the solutions of linear programming problems (Corner Point Theorem) can be stated now as: Theorem. If a linear programming problem has an optimal solution, it occurs among the basic feasible solutions.

Example. Maximize subject to x1+3x2 = 30 2x1+x2 = 20 x1+x2 = 12 Basic variables x1 x2 s1 s2 s3 x1, x2, s1 3 9 5 x1, x2, s2 6 8 -2 x1, x2, s3 4 10 x1, s1, s2 30 -40 -18 x1, s1, s3 12 -4 18 x1, s2, s3 2 20 x2, s1, s2 x2, s1 , s3 -6 x2, s2 ,s3 -8 -30 s1, s2, s3