List

Math Tools

Login

Simplex Algorithm

Input

pivot search: most negative
algorithm: default
max f(x) = 5 x1 + 8 x2
R1: 3 x1 + 2 x2 ≥ 3
R2: 1 x1 + 4 x2 ≥ 4
R3: 1 x1 + 1 x2 ≤ 5
x1, x2 ∈ ℚ

Initial Table (phase one)

x1x2x3x4x5y1y2b
z~-4-611000-7
z-5-8000000
x5110010055
y132-1001033/2
y2140-100141

Rx5 + (-1/4) · Ry2 → Rx5
Ry1 + (-1/2) · Ry2 → Ry1
Ry2 / 4 → Rx2

Iteration 1

x1x2x3x4x5y1y2b
z~-5/201-1/2003/2-1
z-300-20028
x53/4001/410-1/4416/3
y15/20-11/201-1/212/5
x21/410-1/4001/414

Rx5 + (-3/10) · Ry1 → Rx5
Ry1 / 5/2 → Rx1
Rx2 + (-1/10) · Ry1 → Rx2

Iteration 2

x1x2x3x4x5y1y2b
z~00000110
z00-6/5-7/506/57/546/5
x5003/101/101-3/10-1/1037/1037
x110-2/51/502/5-1/52/52
x2011/10-3/100-1/103/109/10inf

Rx5 + (-1/2) · Rx1 → Rx5
Rx1 / 1/5 → Rx4
Rx2 + 3/2 · Rx1 → Rx2

Iteration 1 (phase two)

x1x2x3x4x5b
z70-40012
x5-1/201/2017/27
x450-2102inf
x23/21-1/2003/2inf

Rx5 / 1/2 → Rx3
Rx4 + 4 · Rx5 → Rx4
Rx2 + 1 · Rx5 → Rx2

Iteration 2

x1x2x3x4x5b
z3000840
x3-101027
x43001416
x2110015

Solution

f(x*)40
x*10
x*25
x*37
x*416
x*50

Maximum

CapΔf(x)Δx1Δx2
R10000
R20000
R38801

Minimum

FloorΔf(x)Δx1Δx2
x1331-1
x20000

Economic Interpretation

0 item x1, and 5 item x2 should be produced and sold to achieve a value of 40.00 monetary units.

No additional units of x3 should be provided.

No additional units of x4 should be provided.

For an additional unit of x5, a maximum of 8.00 monetary units should be spent. This increases the amount of x1 items produced by 0 units, and x2 items produced by 1 units.

An additional unit of x1 should be sold for at least 3.00 monetary units. This increases the quantity of x1 items sold by 1 units, x2 items sold by -1 units, and .

No additional units of x2 should be produced and sold.