Escolar Documentos
Profissional Documentos
Cultura Documentos
2
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
INTRODUCTION
Most real-life LP problems have more than two variables and are thus too large for simple graphical solution procedure. How does the simplex method work? In LP problems containing several variables, we may not be able to graph the feasible region, but the optimal solution will still lie at a corner point of the many-sided, many-dimensional figure (n-dimensional polyhedron) that represents the area of feasible solutions. The simplex method examines the corner points in an iterative manner (repeating the same set of procedures time after time until an optimal solution is reached). Each iteration brings a higher value for the objective function so that we are always moving closer to the optimal solution. Why should we study the simplex method? The simplex approach yields not only the optimal solution to the Xi variables and the maximum profit (or minimum cost), but valuable economic information as well.
3
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
4
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
5
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
6
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
7
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
S2
240
Basic variables variables in the solution mix. Nonbasic variables those not in the solution mix.
8
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
Zj Cj - Zj
9
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
Cj (row) = The profit or cost coefficients of the objective function; c1, c2, c3, c4. Cj (column) = The profit or cost coefficients of the objective function for solution variables in the basis. Basis = The variables currently in the solution set, i.e., the variables that have values at the present solution point being analyzed (basic feasible solution). Quantity = Initially, these are the values on the right-hand side of the problem constraints; as the simplex method iterates toward a solution, these values are the solution values for corresponding variables in the solution basis. Zj = Total contribution (gross profit) of the given solution. Cj Zj = The net profit from introducing one unit of each variable into the solution. Note: The initial solution is always the solution at the origin. The number of basic variables corresponds to the number of constraint equations in the problem (excluding the nonnegativity constraints). An optimal solution is reached in the simplex method when the Cj Zj row contains no positive numbers.
10
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
Example
Objective: Maximize profit, Z = $7T + $5C +$0S1 + $0S2 Subject to: Painting hours constraint: 2T + 1C + 1S1 + 0S2 = 100 Carpentry hours constraint: 4T + 3C + 0S1 + 1S2 = 240 Nonnegativity constraint: T, C, S1, S2 0
11
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
12
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
SIMPLEX SOLUTION PROCEDURES - Five Steps of the Simplex Method for Maximization Problems
1. Determine which variable to enter the solution mix next. Variable entering the solution has the largest positive Cj - Zj. The column for the variable identified is called the pivot column.
Example: The column with the largest positive number (7) in the Cj - Zj row is the column for the variable T. So, this is the pivot column.
13
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
Step 2
2. Determine which variable to replace. Divide each amount in the Quantity column by the corresponding number in the column selected in step 1. The row with the smallest nonnegative number calculated this way will be replaced in the next tableau. This is the pivot row. The number at the intersection of the pivot row and pivot column is called the pivot number. Example: For the S1 row: For the S2 row: 100/2 = 50 tables 240/4 = 60 tables
Since 50 is less than 60, S1 will be replaced in the next tableau by T. So, S1 row will be the pivot row. (50 indicates the maximum number of units of T that can be produced without violating either of the original constraints. When T = 50, S1 = 0). The pivot number is 2.
14
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
Step 3
3. Compute new values for the pivot row. Divide every number in the pivot row by the pivot number. Example: 2/2 = 1 = =
Cj 7 Basis T T 1 C 1/2
0/2 = 0 100/2 = 50
S1 1/2 S2 0 Quantity 50
15
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
Step 4
4. Compute the new values for each remaining row. (optional) (new row numbers) = (number in old row) (number above or below pivot number) x (corresponding number in the new row, i.e., the row replaced in step 3). Example: Number in New S2 Row = Number in Old S2 Row (Number Below Pivot Number ) X (Corresponding Number in the New T Row)
Number in New S2 Row 0 = Number in Old S2 Row 4 (Number Below X (Corres. No. in Pivot Number ) New T Row) 4 1
16
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
Step 5
5. Compute the Zj and Cj Zj rows. If all numbers in the Cj Zj row are 0 or negative, an optimal solution has been reached. If not, return to step 1.
17
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
It means that, given the current solution, the net profit of one more unit of C is RM1.50. Pivot column : C Pivot row: S2 Pivot number: 1
18
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
7 5
Basis T C Zj Cj - Zj
7 T 1 0 7 0
5 C 0 1 5 0
Quantity 30 40 410
Since every number in the Cj Zj row is 0 or negative, an optimal solution has been reached. Thus the solution is: T = 30 tables C = 40 chairs S1 = 0 slack hours in the painting dept. S2 = 0 slack hours in the carpentry dept. Profit = $410 for the optimal solution.
19
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
20
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
21
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
22
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
0 S2
3 2 -1
M A1
-1 -2 -1
M A2
0 0 1 0
Qty
200 100 20
5 8 M
M 1800+20M
23
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
24
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014
EXERCISE
25
LP: SIMPLEX NORSHAIEDA ABDULLAH Jumaat, 14 Februari 2014