Professional Documents
Culture Documents
Minimize: z = 51 2 83
subject to: 2x1 + 5x2 3 1
-2x1 - 122 + 3 9
-3x1 - 82 + 23 4
xi 0, i = 1 , ... , 3.
Starting with
Basic Feasible Solution
Introduce slack variables as basic variables and the actual variables
as non-basic (set to 0), then the right-hand side of each constraint
represents the basic solution..
Canonical Form
2x1 + 5x2 - x3 + x4
=1
x4 = 1, x5 = 9, x6 = 4
Non-basic:
x1 = x2 = x3 = 0
Basic
x1
x2
x3
x4
x5
x6
x4
x5
x6
-1
-2
-3
5
-12
-8
-4
3
2
-8
0
0
0
1
0
0
Obj.
RHS
(bi)
0
1
0
0
0
-1
9
4
0
Basic
x1
x2
x3
x4
x5
x6
x4
x5
2
-2
5
-12
-1
3
1
0
0
1
x6
-3
5
-8
-4
2
-8
0
0
0
0
Obj.
Basic
x1
x2
x3
x4
x5
x6
x4
x5
1/2
5/2
1
0
0
0
1
0
0
1
x6
-3/2 -4
-7 -35
1
0
0
0
0
0
Obj.
RHS
(bi)
0
0
0
0
1
9
1
0
0
-1
4
0
RHS
(bi)
0
0
3
3
-3/2
1/2 0
4
-1
2
16
R1+1/2R3
R2-3/2R3
Basic
x1
x2
x3
x4
x5
x6
x4
x5
1/2
5/2
1
0
0
0
1
0
0
1
x6
-3/2
-7
-4
-35
1
0
0
0
0
0
Obj.
Basic
x1
x2
x3
x4
x5
x6
x4
x5
1/2
5/2
1
0
0
0
1
0
0
1
x6
Obj.
21/2
0
0
1
0
4
35
0
0
-3/2
3/2
43/2
-3/2
1/2
4
RHS
(bi)
0
0
3
3
0
-1
2
16
RHS
(bi)
0
0
3
3
Already 1
Already 0
0
-1
14
121
R3+4R1
Matrix form
Input A B and CT
a
i 1 j 1
x bj
ji i
a
i 1 j 1
x 1.xn j b j
ji i
But then another limitation arises when the coefficient of slack variables becomes
negative. To take care of such situation, Artificial Variables are added to the
system. The LPP Transforms to minimizing
Minimize
z ' yi
i 1
Subject to
a
i 1 j 1
x yi b j
xi , yi 0
ji i
If there are several candidates for departing variables (tie among many) by criteria.
Then the value of basic variable not selected turns out to be zero.
A basic feasible solution in which some basic variables are zero is called
degenerate.
Example
z = 5x1 + 3x3
x1 - x2 2
2x1 + x2 4
-3x1 + 2x2 6
x1 0 x2 0
Examples
DUALITY
Maximize
z = cT x
Ax b
x0
Minimize
z' = bT w
(13)
AT x c
w0
(13)
Primal
Dual
z = 2x1 + 3x2
3x1 + 2x2 2
3w1 - w2 4w3 2
-x1 + 2x2 5
4x1 + x2 1
x1 0 x2 0
2w1 + 2w2 w3 3
w1 0, w2 0, w3 0
x1=x
x2 =y
x3
x4
Obj.R
-120
-100
x3=u x4 =v
z =f
bj
0 15
Basic
x1=x x2 =y
x3=u
x4 =v
z =f
bj
x3
4/5
-1/5
x1
3/5
1/5
Obj.R
-28
24
360
Basic
x1=x x2 =y
x3=u
x4 =v z =f
Xb
x2
5/4 -1/2
5/2
x1
-3/4 1/2
3/2
Obj.R
430
35
10