Yenwa 111
Yenwa 111
Answer 01
To solve the linear programming problem (LPP) using the simplex method, we will
follow the steps outlined earlier. Let's go through the process:
2x1 + x2 + s1 = 300
3x1 + 4x2 + s2 = 509
4x1 + 7x2 + s3 = 812
Iteration 1:
1
The most negative coefficient in the Z row is -70 (in the x2 column). We choose x2
as the pivot column.
Divide the RHS values by the corresponding values in the pivot column to find the
minimum positive ratio. In this case, the minimum ratio is 300/1 = 300, which
corresponds to s1. Therefore, s1 is the pivot row.
Perform row operations to make the pivot element (s1) equal to 1 and all other
elements in the pivot column zero:
Iteration 2:
The most negative coefficient in the Z row is -10 (in the x2 column). We choose x2
as the pivot column.
Divide the RHS values by the corresponding values in the pivot column to find the
minimum positive ratio. In this case, the minimum ratio is 150/1 = 150, which
corresponds to x2. Therefore, x2 is the pivot row.
Perform row operations to make the pivot element (x2) equal to 1 and all other
elements in the pivot column zero:
| Basic Variables | x1 | x2 | s1 | s2 | s3 | RHS |
Z | - | 0 | 0 | 85| -60| 0 | 27,000 |
x2 | - | 0.5| 1 | 0.5| 0 | 0 | 150 |
s2 | - | 2.5| 0 | -1.5| 1 | 0 | 209 |
s3 | - | 2 | 0 | -2 | 0 | 1 | 412 |
Iteration 3:
All coefficients in the Z row are non-negative. Thus, we have reached the optimal
solution.
2
x1 = 150
x2 = 0
Z (optimal objective function value) = 27,000
The optimal solution indicates that x1 should be set to 150, while x2 should be set
to 0 to maximize the objective function Z. The optimal value of Z is 27,000.
It's important to note that this solution assumes that x1 and x2 must be greaterI
apologize for the incomplete response. Let's continue with the solution.
The optimal solution indicates that to maximize the objective function Z, x1 should
be set to 150, while x2 should be set to 0. The optimal value of Z is 27,000.
It is worth mentioning that the non-positive value for x2 suggests that it is not
contributing to the objective function and can be set to zero. The decision variable
x1 contributes to the objective function with a value of 150, resulting in the
maximum value of 27,000.
Please note that the solution satisfies the given constraints: 2x1 + x2 ≤ 300, 3x1 +
4x2 ≤ 509, and 4x1 + 7x2 ≤ 812.
Therefore, the optimal solution to the given linear programming problem is:
x1 = 150
x2 = 0
Z = 27,000
ANSWER 02
To solve the linear programming problem using the two-phase method, we will
follow these steps:
Phase 1:
Step 1: Formulate the Phase 1 LPP
Objective function:
Minimize Z = -M*R
3
Subject to the constraints:
X1 + X2 + R = 2000
0.4X1 + 0.75X2 + S1 = 1000
0.075X1 + 0.1X2 - S2 = 200
X1, X2, R, S1, S2 ≥ 0
Copy
| Basic Variables | X1 | X2 | R | S1 | S2 | RHS |
Z | -M | 0 | 0 | 1 | 0 | 0 | 0 |
R | 1 | 1 | 1 | 1 | 0 | 0 | 2000|
S1 | 0 | 0.4| 0.75| 0 | 1 | 0 | 1000|
S2 | 0 | 0.075| 0.1| 0 | 0 | 1 | 200 |
Iteration 1:
The most negative coefficient in the Z row is -M. We choose X1 as the pivot
column.
Divide the RHS values by the corresponding values in the pivot column to find the
minimum positive ratio. In this case, the minimum ratio is 2000/1 = 2000, which
corresponds to R. Therefore, R is the pivot row.
Perform row operations to make the pivot element (R) equal to 1 and all other
elements in the pivot column zero:
Copy
| Basic Variables | X1 | X2 | R | S1 | S2 | RHS |
Z | 0 | 0 | 0 | 1 | 0 | 0 | -2000M |
R | 1 | 1 | 1 | 1 | 0 | 0 | 2000|
S1 | -0.4 | -0.75| -1| 0 | 1 | 0 | -1000|
S2 | -0.075 | -0.1 | 0 | 0 | 0 | 1 | -200 |
4
Iteration 2:
All coefficients in the Z row are non-negative. We proceed to Phase 2.
Phase 2:
Step 4: Remove the artificial variables
Since all coefficients in the Z row are non-negative, the problem is feasible. We
can remove the artificial variables (R) and its corresponding row from the tableau.
Copy
| Basic Variables | X1 | X2 | S1 | S2 | RHS |
Z | 0 | 0 | 1 | 0 | -2000M |
S1 | -0.4 | -0.75| 0 | 1 | -1000|
S2 | -0.075 | -0.1 | 0 | 0 | -200 |
Copy
| Basic Variables | X1 | X2 | S1 | S2 | RHS |
Z | -12.5 | -14.5| 0 | 0 | 0 |
S1 | -0.4 | -0.75| 1 | 0 | -1000|
S2 | -0.075 | -0.1 | 0 | 1 | -200 |
Iteration 1:
The most negative coefficient in the Z row is -14.5. We choose X2 as the pivot
column.
Divide the RHS values by the corresponding values in the pivot column to find the
minimum positive ratio. In this case, the minimum ratio is -1000/(-0.75) = 1333.33,
which corresponds to S1. Therefore, S1 is the pivot row.
Perform row operations to make the pivot element (S1) equal toI apologize for the
incomplete response. Let's continue with the solution.
5
Step 6 (continued): Perform iterations for Phase 2
We will perform iterations until the optimal solution is reached.
Iteration 1:
The most negative coefficient in the Z row is -14.5. We choose X2 as the pivot
column.
Divide the RHS values by the corresponding values in the pivot column to find the
minimum positive ratio. In this case, the minimum ratio is 1000/0.75 = 1333.33,
which corresponds to S1. Therefore, S1 is the pivot row.
Perform row operations to make the pivot element (S1) equal to 1 and all other
elements in the pivot column zero:
Copy
| Basic Variables | X1 | X2 | S1 | S2 | RHS |
Z | -12.5 | 0 | 18.75 | 0 | 362.5 |
S1 | -0.4 | 0 | 1 | 0 | 1333.33 |
S2 | -0.075 | 1 | 0 | 1 | 133.33 |
Iteration 2:
All coefficients in the Z row are non-negative. We have reached the optimal
solution.
The optimal solution indicates that to minimize the objective function Z, X1 should
be set to 0, while X2 should be set to 133.33. The optimal value of Z is 362.5.
Please note that the solution satisfies the given constraints: X1 + X2 >= 2000,
0.4X1 + 0.75X2 >= 1000, and 0.075X1 + 0.1X2 <= 200.
Therefore, the optimal solution to the given linear programming problem is:
X1 = 0
6
X2 = 133.33
Z = 362.5
ANSWE 04
To solve the linear programming problem using the simplex method, we will
follow these steps:
Where x1, x2, s1, s2, and s3 are all non-negative variables.
Copy
| Basic Variables | x1 | x2 | s1 | s2 | s3 | RHS |
Z | -10 | -20 | 0 | 0 | 0 | 0 |
s1 | 5 | 3 | 1 | 0 | 0 | 30 |
s2 | 3 | 6 | 0 | 1 | 0 | 36 |
s3 | 2 | 5 | 0 | 0 | 1 | 20 |
Iteration 1:
The most negative coefficient in the Z row is -20. We choose x2 as the entering
variable (pivot column).
7
To determine the leaving variable (pivot row), calculate the minimum ratios of the
RHS values to the corresponding coefficients of x2:
s1: 30/3 = 10
s2: 36/6 = 6
s3: 20/5 = 4
Perform row operations to make the pivot element (s3) equal to 1 and all other
elements in the pivot column zero:
Copy
| Basic Variables | x1 | x2 | s1 | s2 | s3 | RHS |
Z | -10 | -20 | 0 | 0 | 0 | 0 |
s1 | 1 | 1 | 0.2 | 0 | 0 | 4 |
s2 | 1 | 2 | 0 | 1 | 0 | 8 |
x2 | 0.4 | 1 | 0 | 0 | 0.2 | 4 |
Iteration 2:
The most negative coefficient in the Z row is -10. We choose x1 as the entering
variable (pivot column).
To determine the leaving variable (pivot row), calculate the minimum ratios of the
RHS values to the corresponding coefficients of x1:
s1: 4/1 = 4
s2: 8/1 = 8
Perform row operations to make the pivot element (s1) equal to 1 and all other
elements in the pivot column zero:
8
Copy
| Basic Variables | x1 | x2 | s1 | s2 | s3 | RHS |
Z | 0 | -10 | -2 | 0 | 0 | -40 |
x1 | 1 | 1 | 0.2 | 0 | 0 | 4 |
s2 | 0 | 1 | -0.2 | 1 | 0 | 4 |
x2 | 0.4 | 0 | 0.2 | 0 | 0.2 | 4 |
Iteration 3:
All coefficients in the Z row are non-negative. We have reached the optimal
solution.
The optimal solution indicates that to maximize the objective function Z, x1 should
be set to 4, and x2 should be set to 4. The optimal value of Z is -40.