Professional Documents
Culture Documents
Sample:
Write the following LP model in the standard from
Solution:
1.multiply the second inequalities by (-1). and subtract a surplus variable s 2
2x1 3x2 s2 = 5
Ax = b where A is m x n
m = rows
n = columns
3 possibilities
1. square system m=n unique solution
2. tall system m>n many representation
3. long system m<n infinite or many solutions
Def: An m x n system is in canonical form if the columns to the identity matrix Im maybe found
among its n column (not necessarily appearing in the proper order)
Ex. 2x1 + x3 = 10
3x1 + x2 + 5x4 = 20
x1 + x4 + x5 = 30
3 x 5 system
is it in canonical form?
Tableau:
x1 x2 x3 x4 x5 RHS
2 0 1 0 0 10
3 1 0 5 0 20
1 0 0 1 1 30
x3 x2 x5
1 0 0
0 1 0 = I3
0 0 1
the m variable associated to these special columns are called BASIC VARIABLES, the
remaining n-m are called non basic variables.
From the given example
x3,x2,x5 are basic variables
x1 and x4 are the non basic variables
TABLEAU:
x1 x2 x3 x4 x5 RHS
a b c d e B1
f g h i j B2
k l m n o B3
0
convert x4 to: 1
0
Short cut:
TABLEAU:
x1 x2 x3 x4 x5 RHS
a b c d e B1
f g h i j B2
k l m n o B3
X1 X2 S1 S2 S3 RHS
S1 1 0 1 0 0 50
PIVOT ROW
S2 0 2 0 1 0 120
S3 3 2 0 0 1 180
.-Y 30 50 0 0 0 0
X1 X2 S1 S2 S3 RHS
PIVOT
S1 1 0 1 0 0 50
COLUMN
X2 0 1 0 1/2 0 60
S3 3 0 0 -1 1 60
.-Y 30 0 0 -25 0 -3000
X1 X2 S1 S2 S3 RHS
S1 0 0 1 - 1/3 1/3 30
X2 0 1 0 1/2 0 60
X1 1 0 0 - 1/3 1/3 20
.-Y 0 0 0 -15 -10 -3600
therefore:
X1 = 20
X2 = 60
S1 = 30
S2 = 0
S3 = 0
Y = 3,600
Remarks:
1. If the objective is to minimize y, choose the variable with a negative coefficient (or
the most negative). Exit rule and pivoting routines remain the same.
2. If there are ties for the entering variable. Simply pick any one of the tied variable.
3. if there is a tie for a leaving variable, this is dangerous since it will give a
degenerated solution which might cause the non-termination or cycling the
algorithm
4. if there is no positive component in the PIVOT column, STOP. This means LP
problem is unbounded.
5. If at the objective function row of the optimal tableau, all the coefficient of the non
basic variables are negative (positive) the Basic feasible solution is the unique
maximizing (minimizing) solution. If there is a non-basic variable with zero
coefficient in the objective function row of the optimal tableau, there may or may
not be an alternative optimal solution.