Lesson 4 Opreation Reseach
Lesson 4 Opreation Reseach
𝑥1 ≤4 𝑥1 + 𝑥3 =4 , 𝑥3 ≥0
Table 1. Initial system of equations for the Wyndor Glass Co. problem
Example 1 (cont..)
4. Optimality Test Step:
• The current BF solution is optimal if and only if every
coefficient in row 0 is nonnegative (≥ 0). If it is, stop; otherwise,
go to an iteration to obtain the next BF solution, which involves
changing one nonbasic variable to a basic variable (step 1 below)
and vice versa (step 2 below) and then solving for the new
solution (step 3 below).
Table 3. The minimum ratio test to determine the first leaving basic variable
for the Wyndor Glass Co. problem
Example 1 (cont..)
6. Iteration 1 Step 2: Determine the leaving basic
variable
1. Divide the pivot row by the pivot number. Use this new pivot
row in steps 2 and 3 below (see Table 5).
2. For each other row (including row 0) that has a negative
coefficient in the pivot column, add to this row the product of
the absolute value of this coefficient and the new pivot row.
3. For each other row that has a positive coefficient in the pivot
column, subtract from this row the product of this coefficient
and the new pivot row (see Table 6).
Example 1 (cont..)
7. Iteration 1 Step 3: Solving for the New BF Solution
by using elementary row operations
Table 5. Simplex tableaux for the Wyndor Glass Co. problem after the first
pivot row is divided by the first pivot number
Example 1 (cont..)
7. Iteration 1 Step 3: Solving for the New BF Solution
by using elementary row operations
Table 6 First two simplex tableaux for the Wyndor Glass Co. problem
Example 1 (cont..)
8. Optimality test:
• Since the new row 0 still has a negative coefficient (-3 for 𝑥1 ),
the solution is not optimal, and so at least one more iteration is
needed.
Example 1 (cont..)
9. Iteration 2
The second iteration starts anew from the second tableau of Table 6
to find the next BF solution. Following the instructions for steps 1
and 2, we find 𝑥1 as the entering basic variable and 𝑥5 as the
leaving basic variable, as shown in Table 7
Example 1 (cont..)
9. Iteration 2
Table 7 Steps 1 and 2 of iteration 2 for the Wyndor Glass Co. problem
Table 8 Complete set of simplex tableaux for the Wyndor Glass Co. problem
Example 1 (cont..)
Augmented Form
BV Z X1 X2 X3 X4 RHS
Z 1 -10 -15 0 0 0
X3 0 2 4 1 0 100
X4 0 3 2 0 1 90
Here the BV are X3 and X4 and the NBV are X1 and X2 (NBV=0),
thus, the initial BF solution is (0,0,100,90).
Example 2 (cont..)
BV Z X1 X2 X3 X4 RHS ratio
Z 1 -10 -15 0 0 0
X3 0 2 4 1 0 100 𝟏𝟎𝟎
=25
𝟒
X4 0 3 2 0 1 90 𝟗𝟎
=45
𝟐
Example 2 (cont..)
Q4: Apply the minimum ratio test and determine the leaving
basic variable.
Entering BV
BV Z X1 X2 X3 X4 RHS ratio
Z 1 -10 -15 0 0 0 leaving
X3 0 2 4 1 0 100 𝟏𝟎𝟎
=25
𝟒
X4 0 3 2 0 1 90 𝟗𝟎
=45
𝟐
Example 2 (cont..)
Q5: Determine the pivot column, pivot row, and pivot number
pivot Entering
BV Z X1 X2 X3 X4 RHS ratio
Z 1 -10 -15 0 0 0 leaving
X3 0 2 4 1 0 100 𝟏𝟎𝟎
=25
𝟒
X4 0 3 2 0 1 90 𝟗𝟎
=45
𝟐
Iteration 1: Solving for the New BF Solution by using elementary
row operations
Entering
pivot
BV Z X1 X2 X3 X4 RHS ratio
Z 1 -10 -15 0 0 0 leaving
X3 0 2 4 1 0 100 𝟏𝟎𝟎
=25
𝟒
X4 0 3 2 0 1 90 𝟗𝟎
=45
𝟐
old X3 0 2 4 1 0 100
𝑶𝒍𝒅
new X2 0 1/2 1 1/4 0 25 𝒑𝒊𝒗𝒐𝒕
=new
BV Z X1 X2 X3 X4 RHS
X2 0 1/2 1 1/4 0 25
New Table
Iteration 1: Solving for the New BF Solution by using elementary
row operations
BV Z X1 X2 X3 X4 RHS ratio
Z 1 -10 -15 0 0 0
X3 0 2 4 1 0 100 𝟏𝟎𝟎
=25
𝟒
X4 0 3 2 0 1 90 𝟗𝟎
=45
𝟐
BV Z X1 X2 X3 X4 RHS
Z 1 -2.5 0 15/4 0 375
X2 0 1/2 1 1/4 0 25
New Table
Iteration 1: Solving for the New BF Solution by using elementary
row operations
BV Z X1 X2 X3 X4 RHS ratio
Z 1 -10 -15 0 0 0
X3 0 2 4 1 0 100 𝟏𝟎𝟎
=25
𝟒
X4 0 3 2 0 1 90 𝟗𝟎
=45
𝟐
old X4 0 3 2 0 1 90 old-(new*-15)
-
new X2 0 1/2 1 1/4 0 25 * 2 =
BV Z X1 X2 X3 X4 RHS
First
Z 1 -2.5 0 15/4 0 375 Iteration
Done
X2 0 1/2 1 1/4 0 25
New Table
X4 0 2 0 -1/2 1 40
Example 2 (cont..)
BV Z X1 X2 X3 X4 RHS ratio
Z 1 -2.5 0 15/4 0 375
X2 0 1/2 1 1/4 0 25 𝟐𝟓
=50
𝟎.𝟓
leaving
X4 0 2 0 -1/2 1 40 𝟒𝟎
=20
𝟐
Iteration 2: Solving for the New BF Solution by using elementary
row operations
pivot Entering
BV Z X1 X2 X3 X4 RHS ratio
Z 1 -2.5 0 15/4 0 375
X2 0 1/2 1 1/4 0 25 𝟏𝟎𝟎
=25
𝟒 leaving
X4 0 2 0 -1/2 1 40 𝟗𝟎
=45
𝟐
old X4 0 2 0 -1/2 1 40
𝑶𝒍𝒅
new X1 0 1 0 -1/4 1/2 20 𝒑𝒊𝒗𝒐𝒕
=new
BV Z X1 X2 X3 X4 RHS
X1 0 1 0 -1/4 1/2 20
Iteration 2: Solving for the New BF Solution by using elementary
row operations
BV Z X1 X2 X3 X4 RHS ratio
Z 1 -2.5 0 15/4 0 375
X2 0 1/2 1 1/4 0 25 𝟏𝟎𝟎
=25
𝟒
X4 0 2 0 -1/2 1 40 𝟗𝟎
=45
𝟐
BV Z X1 X2 X3 X4 RHS
Z 1 0 0 4.375 1.25 425
New Table
X1 0 1 0 -1/4 1/2 20
Iteration 2: Solving for the New BF Solution by using elementary
row operations
BV Z X1 X2 X3 X4 RHS ratio
Z 1 -2.5 0 15/4 0 375
X2 0 1/2 1 1/4 0 25 𝟏𝟎𝟎
=25
𝟒
X4 0 2 0 -1/2 1 40 𝟗𝟎
=45
𝟐
BV Z X1 X2 X3 X4 RHS second
Z 1 0 0 4.375 1.25 425 Iteration
Done
X2 0 0 1 3/8 -1/4 15
New Table
X1 0 1 0 -1/4 1/2 20
Before the next lecture