Lecture Slides On Simplex Computations
Lecture Slides On Simplex Computations
ADU SAKYI
1
Graphical Analysis of linear
programming
UNBOUNDED SOLUTION
Unbounded Solution
Unbounded solutions occur when there is a feasible region
which is not bounded.
2
UNBOUNDED SOLUTION
Unbounded Solution
Unbounded solutions occur when there is a feasible region
which is not bounded.
3
UNBOUNDED SOLUTION
4
INFEASIBLE SOLUTION
Infeasible Solution
A linear programming problem is said to be infeasible if
no feasible solution of the problem exists.
5
INFEASIBLE SOLUTION
Infeasible Solution
A linear programming problem is said to be infeasible if
no feasible solution of the problem exists.
5
INFEASIBLE SOLUTION
6
INFEASIBLE SOLUTION
7
ASSIGNMENT 1 CONT..
8
ASSIGNMENT 1 CONT..
(2) Maximize
1170x1 + 1110x2
subject to:
9x1 + 5x2 ≥ 500
7x1 + 9x2 ≥ 300
5x1 + 3x2 ≤ 1500
7x1 + 9x2 ≤ 1900
2x1 + 4x2 ≤ 1000
x1 ≥ 0, x2 ≥ 0
Find graphically the feasible region and the optimal
solution.
9
Linear programming: Simplex
Method
INTRODUCTION
Introduction
The graphical method of solving linear programming
problem is of limited application in the business problems
as the number of variables is substantially large.
INTRODUCTION
Introduction
The graphical method of solving linear programming
problem is of limited application in the business problems
as the number of variables is substantially large.
If the linear programming problem has larger number
of variables, the suitable method for solving is Simplex
Method.
INTRODUCTION
Introduction
The graphical method of solving linear programming
problem is of limited application in the business problems
as the number of variables is substantially large.
If the linear programming problem has larger number
of variables, the suitable method for solving is Simplex
Method.
The simplex method is an iterative process, through
which it reaches ultimately to the minimum or maximum
value of the objective function
10
INTRODUCTION
Introduction
The simplex method also helps the decision
maker/manager to identify the following:
• Redundant Constraints
• Multiple Solutions
• Unbounded Solution
• Infeasible Problem
11
BASICS OF SIMPLEX METHOD
2x1 + x2 ≤ 300
3x1 + 4x2 ≤ 509
4x1 + 7x2 ≤ 812
x1 ≥, x2 ≥ 0
12
BASICS OF SIMPLEX METHOD
Solution
First we introduce the variables
s 3 , s4 , s5 ≥ 0
2x1 + x2 + s3 = 300
3x1 + 4x2 + s4 = 509
4x1 + 7x2 + s5 = 812
s3 , s4 , s5 are called SLACK VARIABLES
13
BASICS OF SIMPLEX METHOD
There are two types of solutions they are basic and basic
feasible, which are discussed as follows:
14
BASICS OF SIMPLEX METHOD
There are two types of solutions they are basic and basic
feasible, which are discussed as follows:
Basic Solution
We may equate any two variables to zero in the above
system of equations, and then the system will have three
variables. Thus, if this system of three equations with
three variables is solvable such a solution is called as basic
solution.
14
BASICS OF SIMPLEX METHOD
There are two types of solutions they are basic and basic
feasible, which are discussed as follows:
Basic Solution
We may equate any two variables to zero in the above
system of equations, and then the system will have three
variables. Thus, if this system of three equations with
three variables is solvable such a solution is called as basic
solution.
15
BASICS OF SIMPLEX METHOD
15
BASICS OF SIMPLEX METHOD
Basic Feasible Solution
If the basic variables satisfy the nonnegativity constraints,
the basic solution is a Basic Feasible Solution.
16
BASICS OF SIMPLEX METHOD
Basic Feasible Solution
If the basic variables satisfy the nonnegativity constraints,
the basic solution is a Basic Feasible Solution.
• The solution
16
BASICS OF SIMPLEX METHOD
Basic Feasible Solution
If the basic variables satisfy the nonnegativity constraints,
the basic solution is a Basic Feasible Solution.
• The solution
17
BASICS OF SIMPLEX METHOD
17
BASICS OF SIMPLEX METHOD
17
Simplex Method Computation
SIMPLEX METHOD COMPUTATION
Z = 60x1 + 70x2
subject to :
2x1 + x2 + s3 = 300
3x1 + 4x2 + s4 = 509
4x1 + 7x2 + s5 = 812
x1 , x2 , s3 , s 4 , s5 ≥ 0
18
SIMPLEX METHOD COMPUTATION
Z = 60x1 + 70x2
subject to :
2x1 + x2 + s3 = 300
3x1 + 4x2 + s4 = 509
4x1 + 7x2 + s5 = 812
x1 , x2 , s3 , s 4 , s5 ≥ 0
The slack variables provide a basic feasible solution from which
the simplex Computation starts. That is s3 = 300, s4 = 509
and s5 = 812 with the corresponding profit z = 0.
18
SIMPLEX METHOD COMPUTATION
19
SIMPLEX METHOD COMPUTATION
CB Basic Cj 60 70 0 0 0
Variables XB x1 x2 s3 s4 s5
0 s3 300 2 1 1 0 0
0 s4 509 3 4 0 1 0
0 s5 812 4 7 0 0 1
z -60 -70 0 0 0
19
SIMPLEX METHOD COMPUTATION
20
SIMPLEX METHOD COMPUTATION
20
SIMPLEX METHOD COMPUTATION
Next choose
509 812
x2 = min(x2 ≤ 300, x2 ≤ , x2 ≤ ) = 116
4 7
22
SIMPLEX METHOD COMPUTATION
Next choose
509 812
x2 = min(x2 ≤ 300, x2 ≤ , x2 ≤ ) = 116
4 7
If x2 = 116, we note from the
first constraint that s3 = 184
second constraint that s4 = 45
third constraint that s5 = 0
22
SIMPLEX METHOD COMPUTATION
Next choose
509 812
x2 = min(x2 ≤ 300, x2 ≤ , x2 ≤ ) = 116
4 7
If x2 = 116, we note from the
first constraint that s3 = 184
second constraint that s4 = 45
third constraint that s5 = 0
22
SIMPLEX METHOD COMPUTATION
23
SIMPLEX METHOD COMPUTATION
23
SIMPLEX METHOD COMPUTATION
23
SIMPLEX METHOD COMPUTATION
CB Basic Cj 60 70 0 0 0
Variables XB x1 x2 s3 s4 s5
0 s3 184 10/7 0 1 0 -1/7
0 s4 45 5/7 0 0 1 -4/7
70 x2 116 4/7 1 0 0 1/7
zj − cj -20 0 0 0 70/7
24
SIMPLEX METHOD COMPUTATION
CB Basic Cj 60 70 0 0 0
Variables XB x1 x2 s3 s4 s5
0 s3 184 10/7 0 1 0 -1/7
0 s4 45 5/7 0 0 1 -4/7
70 x2 116 4/7 1 0 0 1/7
zj − cj -20 0 0 0 70/7
24
SIMPLEX METHOD COMPUTATION
25
SIMPLEX METHOD COMPUTATION
25
SIMPLEX METHOD COMPUTATION
CB Basic Cj 60 70 0 0 0
Variables XB x1 x2 s3 s4 s5
0 s3 94 0 0 1 -2 1
60 x1 63 1 0 0 7/5 -4/5
70 x2 80 0 1 0 -4/5 3/5
zj − cj 0 0 0 28 -6
26
SIMPLEX METHOD COMPUTATION
CB Basic Cj 60 70 0 0 0
Variables XB x1 x2 s3 s4 s5
0 s3 94 0 0 1 -2 1
60 x1 63 1 0 0 7/5 -4/5
70 x2 80 0 1 0 -4/5 3/5
zj − cj 0 0 0 28 -6
27
SIMPLEX METHOD COMPUTATION
CB Basic Cj 60 70 0 0 0
Variables XB x1 x2 s3 s4 s5
0 s5 94 0 0 1 -2 1
60 x1 691/5 1 0 4/5 -1/5 0
70 x2 118/5 0 1 -3/5 2/5 0
zj − cj 0 0 6 16 0
27
SIMPLEX METHOD COMPUTATION
CB Basic Cj 60 70 0 0 0
Variables XB x1 x2 s3 s4 s5
0 s5 94 0 0 1 -2 1
60 x1 691/5 1 0 4/5 -1/5 0
70 x2 118/5 0 1 -3/5 2/5 0
zj − cj 0 0 6 16 0
28
END OF LECTURE
29