chapter 1 linear programming

5
Chapter 1: Linear Programming Two methods commonly used to solve a linear programming problem: (a) The graphical method (b) The simplex method Steps for solving a linear programming problem: (a) The graphical method (1) Form a mathematical model for the problem - Introduce decision variables to each of the unknown quantities which are to solve, and write an expression for the linear objective function in terms of the decision variables. - Determine all the constraints or limited resources in terms of the decision variables and in form of linear inequalities. Write nonnegative constraints. (2) Graph the system of inequalities and shade the feasible region. Example: A factory that manufactures tools and gadgets has recorded the following production information. To produce a tool requires 4 hours of working time on machine A and 3 hours on machine B. To produce a gadget requires 3 hours on machine A and 1 hour on machine B. Machine A is available for no more than 120 hours per week and machine B is available for at most than 60 hours per week. Tools can be sold at a profit of RM4.50 each and a profit of RM3.20 can be realized on a gadget. Find the number of tools and gadgets that the factory should produce each week in order to maximize The constraints for the problem are as follows: 4x + 3y 120

Upload: masyati

Post on 24-Dec-2015

13 views

Category:

Documents


3 download

DESCRIPTION

MATH M

TRANSCRIPT

Page 1: Chapter 1 Linear Programming

Chapter 1: Linear Programming

Two methods commonly used to solve a linear programming problem:(a) The graphical method(b) The simplex method

Steps for solving a linear programming problem:(a) The graphical method

(1) Form a mathematical model for the problem- Introduce decision variables to each of the unknown quantities which are to solve, and

write an expression for the linear objective function in terms of the decision variables.

- Determine all the constraints or limited resources in terms of the decision variables and in form of linear inequalities. Write nonnegative constraints.

(2) Graph the system of inequalities and shade the feasible region.

Example: A factory that manufactures tools and gadgets has recorded the following production information. To produce a tool requires 4 hours of working time on machine A and 3 hours on machine B. To produce a gadget requires 3 hours on machine A and 1 hour on machine B. Machine A is available for no more than 120 hours per week and machine B is available for at most than 60 hours per week. Tools can be sold at a profit of RM4.50 each and a profit of RM3.20 can be realized on a gadget. Find the number of tools and gadgets that the factory should produce each week in order to maximize its profit.

Let x represents the number of tools and y represents the number of gadgets.

Then, the profit function is F = 4.5x + 3.2y

The constraints for the problem are as follows:4x + 3y 1203x + y 60x 0 nonnegative contraintsy 0

Page 2: Chapter 1 Linear Programming

(3) Find the coordinates of all corner points, that is, find the vertices of the feasible set.

(4) Find the value of the objective function at each vertex to determine the optimal solution.

(5) Select the optimal solution, that is, the greatest or smallest of those values are maximum or minimum of the objective function. If two vertices have the same optimal value, then optimum occurs at every point on the line segment joining the respective vertices.

(b) The simplex method(1) Set up the initial simplex tableau of a standard form of maximum or minimum linear

programming problem. Rewrite the objective function in the form. Transform the system of linear inequalities into a system of

linear equations by introducing slack variables. Construct a table associated with this system of linear equation which is known as the initial simplex tableau with slacks as the basic variables in the first volume.

(2) Select the column that contains the most negative entry in the objective row, which is known as the pivot column.

(3) Conduct the ratio test by dividing each entry in the solution column by the corresponding entry in the pivot column. The row that contains the smallest ratio is pivot row. Locate the pivot element, which is the element common to both the pivot column and the pivot row.

(4) Divide all the elements in the pivot row by the pivot element.

Vertices:O (0, 0)L (0, 40)M (12, 24)N (20, 0)

Vertices Value of F = 4.5x + 3.2yO (0, 0) 4.5 (0) + 3.2 (0) = 0L (0, 40) 4.5 (0) + 3.2 (40) = 128

M (12, 24) 4.5 (12) + 3.2 (24) = 130.8 (max)N (20, 0) 4.5 (20) + 3.2 (0) = 90

Thus, a maximum profit of RM130.80 is realized by producing 12 tools and 24 gadgets.

Example:Solve the following linear programming problem by using simplex method.Maximize:Subject to:

Thus,

Tableau 1:X Y S1 S2 Solution Row

F -1 -2 0 0 0 (1)S1 3 1 1 0 15 (2)S2 3 4 0 1 24 (3)

Tableau 1:X Y S1 S2 Solution Row

F -1 -2 0 0 0 (1)S1 3 1 1 0 15 (2)S2 3 4 0 1 24 (3)

The ratio test: and (smaller)

Tableau 1:X Y S1 S2 Solution Row

F -1 -2 0 0 0 (1)S1 3 1 1 0 15 (2)S2 3 4 0 1 24 (3)

Tableau 2:X Y S1 S2 Solution Row

F -1 -2 0 0 0 (1)S1 3 1 1 0 15 (2)

Y4

31 0

4

16

Page 3: Chapter 1 Linear Programming

(5) Row operations.Add or subtract multiples of the pivot row to or from the other rows, so that the pivot element is 1 and all other elements in the pivot column are zeros.

(6) Optimal solution.The operation stops here as there are no more negative entries in the objective row. If there are one or more negative entries, the optimal solution has not reached. Repeat the process from step (2).

Exercise 1:Solve the following linear programming problems by using simplex method.

(a) Maximize:Subject to:

[ans: ]

(b) Maximize:Subject to:

[ans: ]

(c) Minimize:Subject to:

[ans:

Exercise 2:Rose owns a jewels shop. She makes bracelets and necklaces from crystals and pearls. She has 9 grosses of crystals and 15 grosses of pearls available. Each bracelet requires 1 gross of crystal and 2 grosses of pearls.

Tableau 2:X Y S1 S2 Solution Row

F 0 0 12

S1 0 1 9 (6) = (2) – 1(4)

Y4

31 0

4

16

Thus, the solution is and .The objective F is maximized at (0, 6) where .

Page 4: Chapter 1 Linear Programming

Each necklace requires 2 grosses of crystals and 3 grosses of pearls. A maximum of 6 bracelets can be sold. The sale of a bracelet makes RM60 profit and the sale of a necklace makes RM100 profit. Rose whishes to determine the number of bracelets and necklaces to make in order to maximize her profits. It may be assumed that all she makes can be sold.

(i) Formulate this as a linear programming problem.(ii) Solve the linear programming problem graphically.

[ans: (i) x + 2y ≤ 9, 2x + 3y ≤ 15, x ≤ 6, x ≥ 0, y ≥ 0; P = 60x + 100y (ii) Maximum profit RM480 with 3 bracelets and 3 necklaces.]