r/OperationsResearch • • 6h ago

Simplex table

Simplex Table (Simplex Method)

The Simplex Table is a tabular method used to solve Linear Programming Problems (LPPs), especially when there are more than two variables or when the graphical method is difficult.

It helps us find the maximum or minimum value of an objective function step by step.

1. Example of a problem

Maximize:

We convert the inequalities into equations by adding slack variables \(S_1,S_2,S_3\).

2. Initial Simplex Table

Cj32000
BasisxyS₁S₂S₃RHS
S₁111004
S₂100102
S₃010013
Zj000000
Cj−Zj32000

Step 1: Find the entering variable

  • Look at the Cj − Zj row.
  • The largest positive number is 3.
  • Therefore, x enters the basis (pivot column).

Step 2: Find the leaving variable

Divide RHS by the positive entries of the pivot column:

RowCalculationRatio
S₁4 ÷ 14
S₂2 ÷ 12
S₃Not applicable (0)—

S₂ leaves the basis because 2 is the smallest positive ratio.

The pivot element is 1 (in the S₂ row and x column).

3. Second Simplex Table

After performing the pivot operations:

Cj32000
BasisxyS₁S₂S₃RHS
S₁011−102
x100102
S₃010013
Zj300306
Cj−Zj020−30

Step 3: Find the entering variable

The largest positive value in Cj − Zj is 2.

Therefore, y enters the basis.

Step 4: Find the leaving variable

RowCalculationRatio
S₁2 ÷ 12
xNot applicable (0)—
S₃3 ÷ 13

Therefore, S₁ leaves the basis. The pivot element is 1.

4. Final Simplex Table

After the second pivot operation:

Cj32000
BasisxyS₁S₂S₃RHS
y011−102
x10−1100
S₃00−1111
Zj3231010
Cj−Zj00−3−10

1 Upvotes

0 comments sorted by