Beruflich Dokumente
Kultur Dokumente
Variable LP Problems
5x1 + 7x2
x1
Objective
Function
Regular
Constraints
2x1 + 3x2
< 19
x1 + x2
< 8
x1 > 0 and x2
>0
A.K.Singh, IMI, Delhi
Non-negativity
Constraints
x2
8
x1 = 6
7
6
5
4
3
Shaded region
contains all
feasible points
for this constraint
(6, 0)
1
1
x1
10
x2
(0, 6.3)
7
6
2x1 + 3x2 =
19
5
4
3
2
1
1
Shaded
region contains
all feasible points
for this constraint
2
(9.5, 0)
x1
10
6
5
4
3
2
1
1
Shaded
region contains
all feasible points
for this constraint
2
(8, 0)
x1
10
x2
x1 + x2 = 8
8
7
x1 = 6
6
5
4
3
2x1 + 3x2 = 19
Feasible
Region
2
1
1
x1
10
Example 1: Graphical
Solution
x2
8
7
(0, 5)
Objective Function
5x1 + 7x2 = 35
5
4
3
2
(7, 0)
1
1
x1
10
5x1 + 7x2 = 35
5x1 + 7x2 = 39
5
4
5x1 + 7x2 = 42
3
2
1
1
x1
10
8
7
Optimal Solution
(x1 = 5, x2 = 3)
6
5
4
3
2
1
1
x1
10
X + 2Y 6
2X + Y 8
X 7
Maximize profit
= $3X + $5Y
subject to:
X 5
Y 10
X + 2Y 10
X, Y 0
A.K.Singh, IMI, New Delhi
Home Exercise
Solve the following LP problem using
Graphical method
Maximize
Z = 3X1+ 5X2
Subject to
X1
4
2 X2 12
3X1 +2X2 18
X1 , X2 0
A.K.Singh, IMI, New Delhi
SLACK VARIABLES
Standard form requires that all constraints
be in the form of equations.
A slack variable is added to a constraint
to convert it to an equation (=).
A slack variable represents unused
resources.
A slack variable contributes nothing to the
objective function value.
SURPLUS VARIABLES
A surplus variable is subtracted from a
constraint to convert it to an equation (=).
A surplus variable represents an excess
above a constraint requirement level.
Surplus variables contribute nothing to the
calculated value of the objective function.
Simplex Method
The simplex technique involves generating a
series of solutions in tabular form, called
tableaus.
By inspecting the bottom row of each tableau,
one can immediately tell if it represents the
optimal solution.
Each tableau corresponds to a corner point of
the feasible solution space.
The first tableau corresponds to the origin.
Subsequent tableaus are developed by shifting
to an adjacent corner point in the direction that
yields the highest (smallest) rate of profit (cost).
This process continues as long as a positive
(negative) rate of profit
(cost) exists.
A.K.Singh, IMI, Delhi
Simplex algorithm
Variable to be added
+ slack (s)
+ Artificial (A)
Basic X1
variable
Xn S1
... Sn A1 . An
RHS
b1
bm
Objective function coefficient
In different signs
Z
value
Simplex method
Solve the following problem using the
simplex method
Maximize
Z = 3X1+ 5X2
Subject to
X1
4
2 X2 12
3X1 +2X2 18
X1 , X2 0
A.K.Singh, IMI, Delhi
Simplex method
Initialization
Standard form
Maximize Z,
Subject to
Z - 3X1- 5X2
= 0 Sometimes it is
called the
augmented form of
X1
+ S1
= the
4 problem because
the12
original form has
2 X2
+ S2
=
been augmented by
3X1 +2X2
+ S3 =some
18 supplementary
X1 , X2, S1, S2, S3 0
variables needed to
apply the simplex
A.K.Singh, IMI, Delhi
method
Initial tableau
Entering
variable
2. Initial tableau
Basic
variable
X1
X2
S1
S2
S3
RHS
S1
S2
12
S3
18
-3
-5
Leavin
g
variabl
e
Pivot column
Pivot row
Pivot
numbe
r
Iteration 1
Determine the entering variable by
selecting the variable with the most
negative in the last row.
From the initial tableau, in the last row (Z
row), the coefficient of X1 is -3 and the
coefficient of X2 is -5; therefore, the most
negative is -5. consequently, X2 is the
entering variable.
X2 is surrounded by a box and it is called
the pivot column
A.K.Singh, IMI, Delhi
Iteration 1
Determining the leaving variable by using the
minimum ratio test as following:
Basic
variable
Entering
variable X2
(1)
RHS
Ratio
(2)
(2)(1)
S1
None
S2
Leaving
S3
12
6
Smallest ratio
18
Iteration 1
Solving for the new solution by using the eliminatory
row operations as following:
New pivot row = old pivot row pivot number
Basic
variable
S1
X1
X2
S1
S2
S3
RHS
X2
1/2
S3
Z
Note that X2 becomes in the
basic variables list instead of S2
Basic
variable
S1
X1
X2
S1
S2
S3
RHS
X2
1/2
S3
-1
-3
5/2
30
Iteration
Apply the same rules we will obtain this
solution:
Basic
X1
X2
S1
S2
S3
RHS
variable
S1
0
0
1
1/3
-1/3
2
X2
1/2
X1
-1/3
1/3
3/2
36
Class Problem
Max Z = 5x1+4x2
Subject to
6x1+4x2 <= 24
x1+ 2x2 <=6
-x1+x2 <= 1
x2<= 2
x1,x2 >= 0
x1 = 3, x2 =
3/2
A.K.Singh, IMI, Delhi
Special cases
In the final tableau, if one or more artificial
variables (A1, A2, ) still basic and has a nonzero
value, then the problem has an infeasible solution
If there is a zero under one or more nonbasic
variables in the last tableau (optimal solution
tableau), then there is a multiple optimal solution.
When determining the leaving variable of any
tableau, if there is no positive ratio (all the entries
in the pivot column are negative and zeroes),
then the solution is unbounded.