Chap 2 (Linear Programing by Simplex)
Chap 2 (Linear Programing by Simplex)
Chap 2 (Linear Programing by Simplex)
01/17/2023
10. Pivot row: the row corresponding to the variable
that will leave the basis in order to make room for the
entering variable.
Outgoing Variable
To determine the outgoing variable, compute the ratio
of the Quantity to the coefficient of the incoming
variable for each basis row.
For both the maximization and minimization
problems, the outgoing variable is the basic variable
with the smallest ratio.
The coefficient of the incoming variable in the
outgoing row is called the pivot element/number.
11. Pivot number: the element at the
intersection of the pivot row and pivot column
01/17/2023
The procedures of Simplex Method
S1 0 0 0 1 6 -16/3 24
X1 60 1 0 0 1 -1/3 9
X2 50 0 1 0 -1 2/3 4
Zj 60 50 0 10 40/3 740
Cj-Zj 0 0 0 -10 -40/3
All elements in the Cj-Zj row are ≥0. So, the optimal solution is found.
Cont
…
• Allthe values in the Cj-Zj row are zero and
negative
indicating that there can no be additional improvement.
• This makes the third tableau to contain the
optimal solution with the following basic variables:
S1 = 24,
X1 = 9, and
X2 = 4, producing a maximum profit of $740.
Interpretation: In order to achieve the maximum profit of
$740, the company should produce 9 units of Model-I and 4
units of Model-II micro computers leaving 24 hours of
unused resource of the assembly time constraint.
Example 2: Simplex Method for the Maximization
Problem
Example1: Max z= 40x1 +30x2
S.T x1 + 2x2 ≤ 40 hour of labour
4x1 + 3x2 ≤ 120 Ib of clay
X1, x2 ≥ 0
Required:
Standardize the model
Generate an initial solution and the initial simplex
tableau
Determine the value of x1 and x2 at the optimal
simplex tableau
What is the z-value at the optimal solution?
Does the problem have a multiple solution? Why?
01/17/2023
Solution:
A.
Convert the model into standard form by adding slack
variables to each constraint as follows.
N.B: slack variables are added to ≤ constraints and represent
unused resources.
Max Z = Max z= 40x1 +30x2+0s1 + 0s2
S.T x1 + 2x2 +s1 +0s2 = 40
4x1 + 3x2 + 0s1+ s2 =120
X1, x2,s1, s2 ≥ 0
01/17/2023
Cont…
B.
At the origin where nothing is being produced, the values of all
the decision variables are zero which implies the value of the
slack variable equals to the RHS value.
1(0) + 2(0) +s1+ 0S2 = 40
S1= 40 -------------------------------------------------- 1
4(0) + 3(0) + 0S1 + s2 = 120
S2 = 120------------------------------------------------ 2
N.B: at the origin all decision variables are non-basic whereas all
slack are basic.
01/17/2023
Cont… Pivot Pivot
column number
Pivot Row
01/17/2023
The objective is to maximize profit with a
Cont…
•
01/17/2023
Cont…
•
01/17/2023
Cont …
01/17/2023
Cont…
01/17/2023
Cont…
The optimal solution has been reached because all
values of Cj-zj row are less than and equal to zero.
01/17/2023
E.
Con t…
Multiple optimal solutions on a simplex tableau can be
determined from Cj- Zj or Zi-Cj row value. An alternative
optimal solutions have the same z value but different
variable values.
The answer for the question is yes because optimal simplex
tableau is said to be multiple if at least one non-basic
variable has zero value in the Cj-Zi or Zj-Cj row.
Now you can see the above table, x2 is non-basic variable
but its value corresponds to Cj-zj row is zero.
Alternative optimal solution is determined by selecting the
non-basic variable with Cj-zj = 0 as entering or incoming
variable.
01/17/2023
Cont…
01/17/2023
Example 3:
A farmer owns a 100-hectare farm and plans to
plant at most three crops. The seed for crops A,
B, and C costs $40, $20, and $30 per hectare,
respectively. A maximum of $3,200 can be
spent on seed. Crops A, B, and C require 1, 2,
and 1 work days per hectare, respectively, and
there is a maximum of 160 work days available.
If the farmer can make a profit of $100 per
hectare on crop A, $300 per hectare on crop B,
and $200 per hectare on crop C, how many
hectare of each crop should be planted to
maximize profit? What is the maximum profit?
40
solution
• Number of hectare of crop A = 0
• Number of hectares of crop B = 60
• Number of hectares of crop C = 40
• Maximum profit = $26,000
The Big M-method
/Charnes Penalty Method/
• The Big-M Method is a method which is used in removing artificial
variables from the basis .In this method; we assign coefficients to
artificial variables, undesirable from the objective function point of
view.
• If objective function Z is to be minimized, then a very large positive
price (called penalty) is assigned to each artificial variable.
• Similarly, if Z is to be maximized, then a very large negative price
(also called penalty) is assigned to each of these variables.
• Following are the characteristics of Big-M Method:
• High penalty cost (or profit) is assumed as M
• M is assigned to artificial variable A in the objective function Z.
• Big-M method can be applied to minimization as well as
maximization problems with the following distinctions:
1.
• - Minimization problems
• : Assign +M as coefficient of artificial variable A in the objective function Z
• Maximization problems:
• -Here –M is assigned as coefficient of artificial variable A in the objective
function Z
• Coefficient of S (slack/surplus) takes zero values in the objective function Z
• For minimization problem, the incoming variable corresponds to the highest
negative value of Cj-Zj.
• Solution is optimal when there is no negative value of Cj-Zj.(For minimization
case)
• Example:
• 1. Minimize Z=25x1 +30x2
• Subject to:
• 20x1+15x2 > 100
• 2x1+ 3x2 > 15
• x1, x2 >0
• Solution
• Step 1
• Standardize the problem
• Minimize Z=25x1 +30x2 +0s1+0s2 +MA1+MA2
• Subject to:
• 20x1+15x2- s1+A1 = 100
• 2x1+ 3x2 –s2+A2 = 15
• x1, x2 , s1, s2 ,A1 ,A2 > 0
• Step 2
• Initial simplex tableau
• The initial basic feasible solution is obtained by setting x 1= x2= s1= s2=0
• No production, x1= x2= s1=0==>20(0) +15(0) - 0+A1 = 100 ==> A1 = 100
• x1= x2= s2=0==>0(0)+3(0) - 0+A2 =15==> A2 = 15
Contd…..
Contd…..
Contd….
Special Issues in the Simplex Method
1. Non-feasible Solution/ Infeasibility
– Whenever the optimality criteria is satisfied but still
there exist an artificial variable in the basis or solution
mix, this is the indication of infeasibility.
2. Unbounded Solution
– It is detected when trying to decide which variable to
leave [while computing replacement ratio for all
variables]
– If the entire ratios turn out to be negative or undefined,
it indicates that the problem is unbounded.
3. Degeneracy
– Tie for leaving basic variable (key row)
– If there is a tie for the smallest ratio, this is a signal that
degeneracy exists.
– Such problems can be overcome by trial and
error method.
5. Multiple Optimum Solutions
– A situation when there can be infinite number of
solutions possible for a given problem.
– This can be recognized when one of the non-basic
variables in the Cj-Zj, row have a value of zero.
– To obtain the other solution, we will make a non-
basic variable with a zero Cj-Zj value to enter in to the
basis and solve.
Transportation
Chapter Three and
Assignment