Скачать презентацию Chapter 7 LINEAR PROGRAMMING 7 1 GRAPHING Скачать презентацию Chapter 7 LINEAR PROGRAMMING 7 1 GRAPHING

9fb0b8ab6b007eb38f38995b0b8c4589.ppt

  • Количество слайдов: 40

Chapter 7 LINEAR PROGRAMMING Chapter 7 LINEAR PROGRAMMING

7. 1 GRAPHING LINEAR INEQUALITIES IN 2 VARIABLES Terms: – Boundary – Half-plane – 7. 1 GRAPHING LINEAR INEQUALITIES IN 2 VARIABLES Terms: – Boundary – Half-plane – Feasible region 1. Example 1: 3 x – 2 y 6 2. Example 2: y < – 3 x + 12 x < 2 y

7. 1 GRAPHING LINEAR INEQUALITIES IN 2 VARIABLES 1. Graph the boundary line. Decide 7. 1 GRAPHING LINEAR INEQUALITIES IN 2 VARIABLES 1. Graph the boundary line. Decide whether the line is part of the solution (use solid line for and , dashed line for > and <) 2. Solve the inequality for y: shade the region above the line if y > mx + b; shade the region below the line if y < mx + b.

7. 1 GRAPHING LINEAR INEQUALITIES IN 2 VARIABLES Applications: A company makes platic plate 7. 1 GRAPHING LINEAR INEQUALITIES IN 2 VARIABLES Applications: A company makes platic plate and cups, both of which require time on 2 machines. Producing a unit of plates requires 1 h on machine A and 2 h on machine B, while producing a unit of cups requires 3 h on machine A and 1 h on machine B. Each machine is operated for at most 15 h per day. Write a system of inequalities expressing these conditions, and graph the feasible region.

7. 2 LINEAR PROGRAMMING: THE GRAPHICAL METHOD • Terms: Linear programming, objective function, constraints 7. 2 LINEAR PROGRAMMING: THE GRAPHICAL METHOD • Terms: Linear programming, objective function, constraints • EXAMPLE 1: Find the maximum and minimum values of the objective function z = 2 x + 5 y, with the following constraints: 3 x + 2 y 6 – 2 x + 4 y 8 x + y 1, x 0, y 0

CORNER POINT THEOREM • If the feasible region is bounded, then the objective function CORNER POINT THEOREM • If the feasible region is bounded, then the objective function has both a maximum and a minimum value, and each occurs at one or more corner points. • If the feasible region is unbounded, then the objective function may not have a maximum or minimum. But if a maximum or minimum value exists, it will occur at one or more corner points.

SOLVING LINEAR PROGRAMMING PROBLEM 1. Write the objective function and all necessary constraints. 2. SOLVING LINEAR PROGRAMMING PROBLEM 1. Write the objective function and all necessary constraints. 2. Graph the feasible region. 3. Determine the cordinates of each corner points. 4. If the feasible region is bounded, the solution is given by the corner point producing the optimum value of the objective function.

SOLVING LINEAR PROGRAMMING PROBLEM 5. If the feasible region is unbounded in the first SOLVING LINEAR PROGRAMMING PROBLEM 5. If the feasible region is unbounded in the first quadrant and both coefficients of the objective function are positive, then the minimum value of the objective function occurs at a corner point and there is no maximum value. Example: find max and min of z = 5 x + 2 y with the following constraints:

SOLVING LINEAR PROGRAMMING PROBLEM Example 3 (p. 380): Minimize z = x + 2 SOLVING LINEAR PROGRAMMING PROBLEM Example 3 (p. 380): Minimize z = x + 2 y with the following constraints:

SOLVING LINEAR PROGRAMMING PROBLEM Example 4 (p. 381): Minimize z = 2 x + SOLVING LINEAR PROGRAMMING PROBLEM Example 4 (p. 381): Minimize z = 2 x + 4 y with the following constraints:

7. 3 APPLICATIONS OF LINEAR PROGRAMMING EXAMPLE 1 (p. 384): Raising geese and pigs 7. 3 APPLICATIONS OF LINEAR PROGRAMMING EXAMPLE 1 (p. 384): Raising geese and pigs A club member raises geese and pigs. She wants to raise no more than 16 animals, including no more than 10 geese. She spends $25 to raise a goose and $75 to raise a pig, and she has $900 available for the project. Find the maximum profit she can make if each goose produces a profit of $14 and each pig a profit of $40.

7. 3 APPLICATIONS OF LINEAR PROGRAMMING EXAMPLE 2 (P. 385) Purchasing filing cabinets An 7. 3 APPLICATIONS OF LINEAR PROGRAMMING EXAMPLE 2 (P. 385) Purchasing filing cabinets An office manager needs to purchase new filling cabinets. He knows that Ace cabinet cost $40 each, require 6 ft 2 of floor space, and hold 8 ft 3 of files. Each Excello cabinet costs $80, requires 8 ft 2 of floor space and holds 12 ft 3. His budget permits him to spend no more than $560 on files, while the office has room for no more than 72 ft 2 of cabinets. The manager desires the greatest storage capacity within the limitations imposed by funds and space. How many of each type of cabinet should he buy?

7. 3 APPLICATIONS OF LINEAR PROGRAMMING EXAMPLE 3 (P. 386) Buying food for animals 7. 3 APPLICATIONS OF LINEAR PROGRAMMING EXAMPLE 3 (P. 386) Buying food for animals Certain laboratory animals must have at least 30 g of protein and at least 20 g of fat per feeding period. These nutrients come from food A, which costs 18¢ per unit and supplies 2 g of protein and 4 g of fat, and food B, with 6 g of protein and 2 g of fat, costing 12¢ per unit. Food B is bought under a long -term contract that at least 2 units of B be used per serving. How much of each food must be bought to produce the minimum cost per serving?

7. 4 THE SIMPLEX METHOD: MAXIMIZATION STANDARD MAXIMUM FORM A Linear Programming Problem Is 7. 4 THE SIMPLEX METHOD: MAXIMIZATION STANDARD MAXIMUM FORM A Linear Programming Problem Is In Standard Maximum Form If: 1. The Objective Function Is To Be Maximized; 2. All Variables Are Nonnegative. 3. All Constraints Involve . 4. The Constants On The Right Side In The Constraints Are All Nonnegative (b 0). Example 1 (p. 392).

TERMS • • Slack Variable Initial Simplex Tableau Indicators Pivot, Pivot Column, Pivot Row TERMS • • Slack Variable Initial Simplex Tableau Indicators Pivot, Pivot Column, Pivot Row Pivoting Basic Variable Non-basic Variable

SIMPLEX METHOD 1. Determine The Objective Function. 2. Write All Necessary Constraints. 3. Convert SIMPLEX METHOD 1. Determine The Objective Function. 2. Write All Necessary Constraints. 3. Convert Each Constraint Into An Equation By Adding Slack Variables. 4. Set Up The Initial Simplex Tableau. 5. Locate The Most Negative Indicator. If There Are Two Such Indicators, Choose One. This Indicator Determines The Pivot Column.

SIMPLEX METHOD (cont. ) 6. Use The Positive Entries In The Pivot Column To SIMPLEX METHOD (cont. ) 6. Use The Positive Entries In The Pivot Column To Form The Quotients Necessary For Determining The Pivot. If There Are No Positive Entries In The Pivot Column, No Maximum Solution Exists. If 2 Quotients Are Equally The Smallest, Let Either Determines The Pivot.

SIMPLEX METHOD (cont. ) 7. Multiply every entry in the pivot row by the SIMPLEX METHOD (cont. ) 7. Multiply every entry in the pivot row by the reciprocal of the pivot to change the pivot to 1. The use row operations to change all other entries in the pivot column to 0 by adding suitable multiplies of the pivot to the other rows.

SIMPLEX METHOD (cont. ) 8. If the indicators are all positive or 0, this SIMPLEX METHOD (cont. ) 8. If the indicators are all positive or 0, this is the final tableau. If not, go back to step 5 above and repeat the process until a tableau with no negative indicators is obtained. 9. Determine the basic and non-basic variables and read the solution from the final tableau. The maximum value of the objective function is the number in the lower right corner of the final tableau.

7. 5 MAXIMIZATION APPLICATIONS EXAMPLE 1 (P. 405): A farmer has 110 acres of 7. 5 MAXIMIZATION APPLICATIONS EXAMPLE 1 (P. 405): A farmer has 110 acres of available land he wishes to plant with a mixture of potatoes, corn and cabbage. It costs him $400 to produce an acre of potatoes, $160 to produce an acre of corn and $280 to produce an acre of cabbage. He has a maximum of $20000 to spend. He makes a profit of $120 per acre of potatoes, $40 per acre of corn, and $60 per acre of cabbage. How many acres of each crop should he plant to maximize his profit?

7. 5 MAXIMIZATION APPLICATIONS EXAMPLE 2 (P. 407) Ana has $96000 to buy TV 7. 5 MAXIMIZATION APPLICATIONS EXAMPLE 2 (P. 407) Ana has $96000 to buy TV advertising time. Ads cost $400 per minute on a local cable channel, $4000 per minute on a regional channel, and $12000 per minute on a national channel. The TV stations can provide at most 30 minutes of advertising time, with a maximum of 6 minutes on the national channel. At any given time during the evening, approx. 100000 people watch the local channel, 200000 the regional channel, and 600000 the national channel. To get maximum exposure, how much time should Ana buy from each station?

7. 5 MAXIMIZATION APPLICATIONS EXAMPLE 3 (P. 408) A chemical plant makes 3 products 7. 5 MAXIMIZATION APPLICATIONS EXAMPLE 3 (P. 408) A chemical plant makes 3 products – glaze, solvent and clay – each of which brings in different revenue per truckload. Production is limited, first by the number of air pollution units the plant is allowed to produce each day and second by the time available in the evaporation tank. The plant manager wants to maximize the daily revenue. Using information not given here, he sets up an initial simplex tableau and uses the simplex method to produce the following final simplex tableau:

7. 5 MAXIMIZATION APPLICATIONS EXAMPLE 3 (P. 408) The 3 variables represent the number 7. 5 MAXIMIZATION APPLICATIONS EXAMPLE 3 (P. 408) The 3 variables represent the number of truckloads of glaze, solvent and clay. The 1 st slack variable comes from the air pollution constraint and the 2 nd slack variable from the time constraint on the evaporation tank. The revenue function is given in hundreds of dollars. a) What is the optimal solution? b) Interpret the solution.

7. 6 THE SIMPLEX METHOD: DUALITY AND MINIMIZATION Minimization problem: 1. The objective function 7. 6 THE SIMPLEX METHOD: DUALITY AND MINIMIZATION Minimization problem: 1. The objective function is to be minimized. 2. All variables are nonnegative. 3. All constraints involve . 4. All the coefficients of the objective function are nonnegative. Note: In minimization problem: • • Variables are denoted y 1, y 2… Objective function is denoted w.

TRANSPOSE OF A MATRIX • Is the matrix obtained from the initial matrix by TRANSPOSE OF A MATRIX • Is the matrix obtained from the initial matrix by exchanging its rows and columns. • Example: transpose of matrix is matrix

Example of minimization problem: Minimize w = 8 y 1 + 16 y 2 Example of minimization problem: Minimize w = 8 y 1 + 16 y 2 Constraints: y 1 + 5 y 2 9 2 y 1 + 2 y 2 10 y 1 0, y 2 0. Dual problem: Maximize z = 9 x 1 + 10 x 2 Constraints x 1 + 2 x 2 8 5 x 1 + 2 x 2 16 x 1 0, x 2 0

SUMMARY Minimization problem M variables N constraints Coefficients of objective function Constants Dual problem SUMMARY Minimization problem M variables N constraints Coefficients of objective function Constants Dual problem N variables M constraints Constants Coefficients of objective function THE SOLUTION OF MAXIMIZING PROBLEM PRODUCES THE SOLUTION OF ASSOCIATED MINIMIZING PROBLEM, AND VICE-VERSA.

THEOREM OF DUALITY The objective function w of a minimizing linear programming problem takes THEOREM OF DUALITY The objective function w of a minimizing linear programming problem takes on a minimum value if and only if the objective function z of the corresponding dual maximizing problem takes on a maximum value. The maximum value of z equals the minimum value of w. • Example 5 (p. 415, 416)

THEOREM OF DUALITY Example 5 (p. 415, 416) Solve the following minimization problem: Minimize THEOREM OF DUALITY Example 5 (p. 415, 416) Solve the following minimization problem: Minimize w = 8 y 1 + 16 y 2 Constraints: y 1 + 5 y 2 9 2 y 1 + 2 y 2 10 y 1 0, y 2 0.

SOLVING MINIMUM PROBLEMS WITH DUALS 1. Find the dual standard maximum problem. 2. Solve SOLVING MINIMUM PROBLEMS WITH DUALS 1. Find the dual standard maximum problem. 2. Solve the maximum problem using the simplex method. 3. The minimum value of the objective function w is the maximum value of the objective function z. 4. The optimal solution is given by the entries in the bottom row of the columns corresponding to the slack variables. • Example 6 (p. 417) • Example 7 (p. 418) • FURTHER USES OF THE DUAL (p. 418)

SOLVING MINIMUM PROBLEMS WITH DUALS Example 6 (p. 417) Minimize w = 3 y SOLVING MINIMUM PROBLEMS WITH DUALS Example 6 (p. 417) Minimize w = 3 y 1 + 2 y 2 Constraints: y 1 + 3 y 2 6 2 y 1 + y 2 3 y 1 0, y 2 0.

SOLVING MINIMUM PROBLEMS WITH DUALS Example 7 (p. 418) A minimization problem in 3 SOLVING MINIMUM PROBLEMS WITH DUALS Example 7 (p. 418) A minimization problem in 3 variables was solved by the use of duals. The final simplex tableau for the dual maximization problem is: x 1 x 2 x 3 s 1 s 2 s 3 a) What is the optimal solution of the minimization problem? b) What is the optimal solution of the maximization problem?

SOLVING MINIMUM PROBLEMS WITH DUALS FURTHER USES OF THE DUAL (p. 418) Example: An SOLVING MINIMUM PROBLEMS WITH DUALS FURTHER USES OF THE DUAL (p. 418) Example: An animal breeder needs at least 6 units per day of nutrient A and at least 3 units of nutrient B and that the breeder can choose between 2 different feeds: feed 1 and feed 2. Find the minimum cost for the breeder if each bag of feed 1 costs $3 and provides 1 unit of nutrient A and 2 units of nutrient B, while each bag of feed 2 costs $2 and provides 3 units of nutrient A and 1 of B.

7. 7 THE SIMPLEX METHOD: NONSTANDARD PROBLEMS • Surplus variable • Example: 2 x 7. 7 THE SIMPLEX METHOD: NONSTANDARD PROBLEMS • Surplus variable • Example: 2 x 1 – x 2 + 5 x 3 12 2 x 1 – x 2 + 5 x 3 – x 4 = 12 • Basic variable Variable whose column has one entry 1 and the rest 0 s. • Basic solution Solution obtained by setting all nonbasic variables equal to 0 and solving for the basic variables. • Basic feasible solution: all basic solution are nonnegative • Examples 1, 2 (p. 423, 424)

7. 7 THE SIMPLEX METHOD: NONSTANDARD PROBLEMS Examples 1 (p. 423) Restate the following 7. 7 THE SIMPLEX METHOD: NONSTANDARD PROBLEMS Examples 1 (p. 423) Restate the following problem in terms of equations, and write the initial simplex tableau: Maximize: z = 4 x 1 + 10 x 2 + 6 x 3 subject to: x 1 + 4 x 2 + 4 x 3 8 x 1 + 3 x 2 + 2 x 3 6 3 x 1 + 4 x 2 + 8 x 3 22 x 1 0, x 2 0, x 3 0 Determine the basic solution. Examples 2 (p. 424) Find the basic feasible solution for problem in Example 1. Example 3 (p. 426): Solve the linear programming problem in Example 1.

Stage 1: FINDING A BASIC FEASIBLE SOLUTION 1. If any basic variable has a Stage 1: FINDING A BASIC FEASIBLE SOLUTION 1. If any basic variable has a negative value, locate the – 1 in that variable’s column and note the row it is in. 2. In the row determined in Step 1, choose a positive entry (other than the one at the far right) and note the column it is in. This is the pivot column. 3. Use the positive entries in the pivot column (except in the objective row) to form quotients and select the pivot. 4. Pivot as usual, which results in the pivot column’s having one entry 1 and the rest 0 s. 5. Repeat Steps 1 -4 until every basic variable is nonnegative, so that the basic solution given by the tableau is feasible. If it ever becomes impossible to continue, the problem has no feasible solution. Stage 2: Use simplex method

Minimization Problem Example 4 (p. 426) Minimize: subject to: w = 2 y 1 Minimization Problem Example 4 (p. 426) Minimize: subject to: w = 2 y 1 + y 2 – y 3 – y 1 – y 2 + y 3 – 4 y 1 + 3 y 2 + 3 y 3 6 y 1 0, y 2 0, y 3 0

Minimization Problem Example 5 (p. 428) Minimize: subject to: w = 2 y 1 Minimization Problem Example 5 (p. 428) Minimize: subject to: w = 2 y 1 + y 2 – y 3 – y 1 – y 2 + y 3 – 4 y 1 + 3 y 2 + 3 y 3 = 6 y 1 0, y 2 0, y 3 0

Application Example 6 (p. 430) A publisher has received orders from two colleges: C Application Example 6 (p. 430) A publisher has received orders from two colleges: C 1 and C 2. C 1 needs 500 books and C 2 needs 1000. The publisher can supply the books from either of two warehouses. Warehouse W 1 has 900 books available and warehouse W 2 has 700. The cost to ship a book from each warehouse to each college are as follow: To C 1 From C 2 W 1 $1. 2 $1. 8 W 2 $2. 1 $1. 5 How many books should be sent from each warehouse to each college to minimize the shipping cost?

SOLVING NONSTANDARD PROBLEMS 1. Replace each equation constraint by an equivalent pair of inequality SOLVING NONSTANDARD PROBLEMS 1. Replace each equation constraint by an equivalent pair of inequality constraints. 2. If necessary, write each constraints with a positive constant 3. Convert the problem to a maximum problem by letting z = – w. 4. Add slack variables and subtract surplus variables as needed to convert the constraints into equations. 5. Write the initial simplex tableau. 6. Find a basic feasible solution for the problem, if one exists (Stage I). 7. When a basic feasible solution is found, use the simplex method to solve the problem (Stage II).