OR Ch-2
OR Ch-2
CHAPTER TWO
2. LINEAR PROGRAMMING(LP): MODEL FORMULATION
AND SOLVING LP MODELS:
Chapter Objectives:
Up on completion of this unit, the learner is expected to:
Introduction LP and Formulate an LP model
Mathematical formulation of Linear Programming
Graphical Approach
Simplex Method
Duality in LPP
Sensitivity Analysis.
2.1. Introduction LP and Formulate an LP model:
In 1947, George Danzig developed the use of algebra for determining solutions to problems
that involved the optimal allocation of scarce resources. In spite of numerous potential
applications in business, response to this new technique was low due to substantial
computational burden, which is now removed with subsequent advances in computer
technology and related software during the last three decades.
The term linear implies that all the mathematical relations used in the problem are linear or
straight-line relations, while the term programming refers to the method of determining a
particular program or plan of action, i.e., the use of algorithms that is a well-defined sequence
of steps that will lead to an optimal solution. Taken as a whole, the term linear programming
refers to a family of mathematical techniques for determining the optimum allocation of
resources and obtaining a particular objective when there are alternative uses of the limited
or constrained resources.
The technique of linear programming is applicable to problems in which the total
effectiveness can be expressed as linear function of individual allocations and the limitations
on resources give rise to linear equation or inequalities of the individual allocations.
Diagrammatically,
Scares To be allocated to:
Resource
Resource
Non-negativity
Optimization Constraints
Maximization Minimization
In LP model, the restrictions are referred to as constraints. Only solutions that satisfy all
constraints in a model are acceptable and are referred to as feasible solutions. The optimal
solution will be the one that provides the best value for the objective function.
Generally speaking, a constraint has four elements:
A right hand side (RHS): quantity that specifies the limit for that constraint. It must
be a constant, not a variable.
An algebraic sign: that indicates whether the limit is an upper bound that cannot be
exceeded, a lower bound that is the lowest acceptable amount, or an equality that
must be met exactly.
The decision variables to which the constraint applies.
The impact that one unit of each decision variable will have on the right-hand side
quantity of the constraint.
Constraints can be arranged into three groups:
System constraints: involve more than one decision variable,
Individual constraints: involve only one variable, and
Non-negativity constraints: specify that no variable will be allowed to take on a
negative value. The non-negativity constraints typically apply in an LP model,
whether they are explicitly stated or not.
iv. Parameters:
The objective function and the constraints consist of symbols that represent the decision
variables (e.g., X1, X2, etc.) and numerical values called parameters. The parameters are fixed
values that specify the impact that one unit of each decision variable will have on the
objective and on any constraint it pertains to as well as the numerical value of each
constraint.
The following simple example illustrates the components of LP models:
function or equation is linear when the variables included are all to the power 1 (not
squared, cubed, square root, etc.) and no products (e.g., x1x2) appear. On the other hand, the
amount of each resource used (supplied) and its contribution to the profit (or cost) in the
objective function must be proportional to the value of each decision variable. For example,
if production of one unit requires 5 hours of a particular resource, then making 3 units of that
product requires 15 hours (3x5) of that resource.
ii. Divisibility/ Continuity/non-integer values are acceptable:
The divisibility requirement pertains to potential values of decision variables. It is assumed
that non-integer values are acceptable. However, if the problem concerns, for example, the
optimal number of houses to construct, 3.5 do not appear to be acceptable. Instead, that type
of problem would seem to require strictly integer solutions. In such cases, integer-
programming methods should be used. It should be noted, however, that some obvious
integer type situations could be handled under the assumption of divisibility. For instance,
suppose 3.5 to be the optimal number of television sets to produce per hour, which is
unacceptable, but it would result in 7 sets per two hours, which would then be acceptable.
iii. Certainty/known and constant parameters values:
This requirement involves two aspects of LP models. One aspect relates to the model
parameters, i.e., the numerical values. It is assumed that these values are known and
constant. In practice, production times and other parameters may not be truly constant.
Therefore, the model builder must make an assessment as to the degree to which the certainty
requirement is met. Large departures almost surely will have a significant effect on the
model. The other aspect is the assumption that all relevant constraints have been identified
and represented in the model.
iv. Additivity:
The value of the objective function and the total amount of each resource used (or supplied),
must be equal to the sum of the respective individual contributions (profit or cost) by decision
variables. For example, the total profit earned from the sale of two products A and B must be
equal to the sum of the profits earned separately from A and B. Similarly, the amount of a
resource consumed for producing A and B must be equal to the sum of resources used for A
and B respectively.
v. Non-negativity:
It assumes that negative values of variables are unrealistic and, therefore, will not be
considered in any potential solutions. Only positive values and zero will be allowed and the
non-negativity assumption is inherent in LP models.
2.1.2.3. Formulating LP Models
Just as it is to define a problem, careful formulation of the model that will be used to solve
the problem is important. Linear programming algorithms (solution techniques) are widely
used and understood and computer packages are readily available for solving LP problems.
Consequently, obtaining solutions is not the real issue, what is very important to note is
failure to check that all constraints have been accounted for and have been correctly
formulated results in ill-structuring of the model that can easily lead to poor decisions.
Steps in formulating LP models:
Identify the decision variables.
Determine the objective function.
Required:
Formulate the mathematical model of the problem
Using the graphic method, determine how many of each TV the company should
manufacture each tent the company should manufacture each week so as to maximize
its profit?
What is this maximum profit assuming that all the TV manufactured in each week are
sold in that week?
Solution 1:
1st: Formulation of mathematical modeling of LPP
Max Z=300X1 +250X2
St:
2X1 +X2< 40
X1 +3X2< 45 LPP Model
X1 < 12
X1, X2 > 0
nd
2 . Convert constraints inequalities into equalities:
2X1 +X2 = 40
X1 +3X2 = 45
X1 = 12
rd
3 . Draw the graph by intercepts:
2X1 +X2 = 40 ==> (0, 40) and (20, 0)
X1 +3X2= 45==> (0, 15) and (45, 0)
X1 = 12==> (12, 0)
X1, X2 = 0
X2
2X1 +X2 = 40
X1=0
40 X1=12
15 B
X1 +X2 = 45
4th. Identify the feasible area of the solution which satisfies all constrains.
5th. Identify the corner points in the feasible region:
- A (0, 0), B (0, 15), C (12, 11) and D (12, 0)
th
6 . Identify the optimal point
Required:
a. Formulate the mathematical model of the problem
b. Using the graphic method, determine how many of each tent the company should
manufacture each tent the company should manufacture each week so as to maximize
its profit?
c. What is this maximum profit assuming that all the tents manufactured in each week are
sold in that week?
II. Minimization Problem
Minimize Z with inequalities of constraints in > form
Example 1:
Suppose that a machine shop has two different types of machines; machine 1 and machine 2,
which can be used to make a single product .These machines vary in the amount of product
produced per hr., in the amount of labor used and in the cost of operation.
Assume that at least a certain amount of product must be produced and that we would like to
utilize at least the regular labor force. How much should we utilize each machine in order to
utilize total costs and still meets the requirement?
__________________________________________________________________________
Resource used
Machine I (X1) Machine II (X2) Minimum required hours
__________________________________________________________________________
Product produced/hr 20 15 100
Labor/hr 2 3 15_____________
Operation Cost $25 $30_______________________________
Required:
Formulate the mathematical model of the problem
Using the graphic method, determine how many of each tent the company should
manufacture each tent the company should manufacture each week so as to maximize
its profit?
What is this maximum profit assuming that all the tents manufactured in each week are
sold in that week?
Solution
1st: Formulation of mathematical modeling of LPP
Min.Z 25 X 130 X 2
St :
20 X 115 X 2 100 LPP Model
2 X 13 X 2 15
X1, X 2 0
2nd. Convert constraints inequalities into equalities:
20X1 +15X2=100 ==> (0, 20/3) and (5, 0)
2X1+3X2=15 ==> (0, 5) and (7.5, 0)
X1 X2> 0
3rd. Draw the graph by intercepts:
20X1 +15X2=100 ==> (0, 20/3) and (5, 0)
2X1+3X2=15 ==> (0, 5) and (7.5, 0)
X1 X2> 0
X2
X1
A (0, 20/3) =0
Feasible
Region
B (2.5,
3.33) X2
=0
X1
5 C (7.5, 0)
4th. Identify the feasible area of the solution which satisfies all constrains.
5th. Identify the corner points in the feasible region:
______________________________________________________________________________________________
Corners Coordinates Min Z=25 X1 + 30X2
A (0, 20/3) 200
C (7.5, 0) 187.5
_____________________________________________________________________
X1 =2.5
X2=3.33 and
Min Z = 162.5
7th. Interpret the result 2.5 units of Machine I and 3.33 units of Machine II should be
produced so that the total profit will be $162.5.
Exercise 1:
A company owns two flour mills (A and B) which have different production capacities for HIGH,
MEDIUM and LOW grade flour. This company has entered contract supply flour to a firm every
week with 12, 8, and 24 quintals of HIGH, MEDIUM and LOW grade respectively. It costs the Co.
$1000 and $800 per day to run mill A and mill B respectively. On a day, mill A produces 6, 2, and 4
quintals of HIGH, MEDIUM and LOW grade flour respectively.
Mill B produces 2, 2 and 12 quintals of HIGH, MEDIUM and LOW grade flour respectively. How
many days per week should each mill be operated in order to meet the contract order most
economically standardize? Solve graphically.
Solution:
No of days per week of Minimum flour in
Mil A (X1) Mill B(X2) quintals
Required:
Formulate the mathematical model of the problem
Using the graphic method, determine how many of each tent the company should
manufacture each tent the company should manufacture each week so as to maximize
its profit?
What is this maximum profit assuming that all the tents manufactured in each week are
sold in that week?
2.2.3. Special Cases in Graphics Methods
i. Redundant Constraint
If a constraint when plotted on a graph doesn’t form part of the boundary making the feasible
region of the problem that constraint is said to be redundant.
Example:
A firm is engaged in producing two products A and B .Each unit of product A requires 2Kg
of raw material and 4 labor-hrs for processing, whereas each unit of product B requires 3Kg
of raw materials and 3hrs of labor. Every unit of product a needs 4hrs to packaging and every
unit of product B needs 3.5hrs for packaging. Every week the firm has availability of 60Kg of
raw material, 96 labor-hours and 105 hrs I the packaging department. 1 unit of product A sold
yields $40 profit and 1 unit of B sod yields $35 profit.
Required:
a. Formulate this problem as a LPP
b. Find the optimal solution
Solution
_____________________________________________________________________
Products Resource available
Resources: A B per week
_____________________________________________________________________________
Raw materials (Kg) 2 3 60
Labor (hr) 4 3 96
Packaging (hr) 4 3.5 105
Profit per unit $40 $35
Let X1 =The No of units of product A produced per week
X2 =The No of units of product B produced per week
a. LPP Model
Max.Z 40 X 135 X 2
St :
2 X 13 X 2 60
4 X 13 X 2 96
4 X 1 3.5 X 2 105
X1, X 2 0
X2
(0, 32)
Required:
a. Formulate the LPP of this problem
b. Find the optimal solution
Solution:
Let X1 =The No of units f product A produced per week
X2 =The No of units f product B produced per week
a. The LPP Model of the problem is:
Max.Z 8 X 116 X 2
St :
3 X 16 X 2 900
X 1 X 2 200
X 2 125
X1, X 2 0
X2 X1=0
(0, 200)
FR X2=0
X1
A (0, 0) E (200, 0) (300,0)
Example:
Max Z=20X1+30X2
St:
2X1+X2< 40
4X1+X2< 60
X1 > 30
X1, X2 > 0
Solution:
X2 X1=0
(0, 60) X1=30
4X1+X2= 60
(0, 40)
2X1+X2= 40
X2=0
X1
(15, 0) (20, 0) (30, 0)
Note:
- In the above graph, there is no common point in the shaded area.
-All constraints cannot be satisfied simultaneously and there is no feasible solution to
the problem.
iv. Mix of constraints
Example:
ABC Gasoline Company has two refineries with different production capacities. Refinery A
can produce 4,000gallons per day of SUPER UNLEADD GASOLINE, 2000 gallons per day
of REGULAR UNLEADED GASOLINE and 1000 gallons per day of LEADED GASOLINE.
On the other hand, refinery B can produce 1000 gallons per day of SUPER UNLEADED,
3000 gallons per day of REGULAR UNLEADED and 4,000 gallons per day of LEADED.
The company has made a contract with an automobile manufacturer to provide 24000
Gasoline of SUPER UNLEADED, 42000 gallons of REGULAR UNLEADED and 36000
gallons of LEADED .The automobile manufacturer wants delivery in not more than 14 days.
The cost of running refinery A is $1500 per day and refinery B is $2400 per day.
Required:
a. Formulate this problem as a LPP
b. Determine the number of days the gasoline company should operate each refinery in
order to meet the terms of the above contract most economical.(i.e. At a minimum
running cost)
c. Which grade of gasoline would be over produced?
Solution:
_____________________________________________________________________________
Production per day (in gallons) Contract with an automobile manufacturer
Grade of gasoline A B
_____________________________________________________________________
SUPER UNLEADED 4000 1000 24,000
REGULAR UNLEADED 2000 3000 42,000
LEADED 1000 4000 36,000
Running cost per day $1,500 $2,400
_____________________________________________________________________
The automobile manufacturer wants delivery in not more than 14 days.
Let X1 =The No of day’s refinery A should work.
X2 =The No of days refinery B should work.
a. LPP of the problem
Min Z=1500X1+2400X2
St:
4000X1+1000X2>24000
2000X1+3000X2>42000
1000X1+2000X2> 36000
X1 < 14
X2< 14
X1, X2 > 0
b. To simplify the problem divide by 1000 the constraints
Min Z=1500X1+2400X2
St:
4X1+1X2>24
2X1+3X2>42
X1+4X2 > 36
X1 < 14
X2< 14
X1, X2 > 0
X1+X2 =0
1 Unbounded
Feasible Region
X1
Complied By: Fitsum B. 16
OPERATION RESEARCH
A (0, 3) Unbounded
Feasible Region
X1-X2=1
B (2, 1)
X1+X2=3
X1
Note here that the two corners of the region are A(0,3) and .B(2,1).The value of Max Z(A)=6
and Max Z(B)=8. But there exist number of points in the shaded region for which the value
of the objective function is more than 8.For example, the point (10, 12) lies in the region and
the function value at this point is 70 which is more than 8.
2.2.2. The Simplex Algorithm Methods for Solving LPP:
In our previous section we tried to thoroughly discuss about graphic approach of LP
problems, where the LP consists of only two decision variables. But, the real world problems
may consist of even very large number of decision variables which cannot be solved using
graphic approach. Therefore, in this section we will try to see about simplex method, which is
more comprehensive as compared to graphic approach.
The graphical method of solving linear programming problems is a simple way to find a
solution since the optimum solution is searched among the corner points of the solution
space. However, the graphical method is restricted to problems with two decision variables.
When the number of variables and the number of constraints increase, it becomes difficult to
visualize the solution space. As a result, the graphical method cannot be employed
successfully in such cases. In order to avoid this limitation, the simplex method, or iterative
or step by step method is efficient method for solving linear programming problems, which
was developed by George B. Datzing in 1947.
The simplex method is an algebraic procedure that starts with a feasible solution that is not
optimal and systematically moves from one feasible solution to another until an optimal
solution is found. In case of the graphical approach, optimal solution occurs at the extreme
points where the constraints intersect. Solutions where constraints intersect are called basic
solutions, and those satisfying all of the constraints together with non-negativity constraints
are called basic feasible solutions.
Constraints are generally expressed using inequalities either in ‘less than’ or ‘greater than’ or
in mixed form. Thus, constraints are not in standard form, meaning they should be converted
into equalities. To convert the inequality constraint into equality, we introduce slack or
surplus variables. In economic terminology, slack variables represent unused capacity and
surplus variables represent excess amount. The contribution (cost or profit) associated with
the slack and surplus variables is zero. An inequality of the ‘less than or equal to’ type is
transformed into equality by introducing a non-negative slack variable, as follows: -
I. Maximization case:
The solution steps of the simplex method can be outlined as follows:
Step1. Formulate the linear programming model of the real world problem, i.e., obtain a
mathematical representation of the problem's objective function and constraints.
Step2. Express the mathematical model of L.P. problem in the standard form by adding slack
variables in the left-hand side of the constraints and assign a zero coefficient to these in the
objective function.
Thus we can restate the problem in terms of equations:
Maximize Z = C1X1+ C2X2 + ... +CnXn + OS1 + OS2 +... +0Sm
Subject to a11X1+a12X2+... + a1nxn+s1i =b1
a2lX1+al22X2+... + a2nXn+S2 = b2
amlXl + am2 X2 +... + amNxn + Sm = bm
Where X1, X2... Xn and S1, S2 ... Sm are non-negative.
Note: that the slack variables have been assigned zero coefficients in the objective function.
The reason is that these variables typically contribute nothing to the value of the objective
function.
Step 3. Design the initial feasible solution. An initial basic feasible solution is obtained by
setting the decision variables to zero.
X1= X2 = ... = Xn = 0. Thus, we get S1 = b1, S2 = b2 ... Sm = bm.
Step 4. Set up the initial simplex tableau. For computational efficiency and simplicity, the
initial basic feasible solution, the constraints of the standard LPP as well as the objective
function can be displayed in a tabular form, called the simplex tableau as shown below.
Initial Simplex Tableau
Cj C1 C2 ... Cn,, 0 0 ... 0 Quantity Column Ratio
(Contribution Per XB/amn
Unit)
Basic CB X1, X2, ... Xn S1 S2 ... Sm b(=Xj)
variables
S1 CB1 a11 a12 ... a1n 1 0 ... 0 b1=Xb1
S2 CB2 a21 a22 ... a2n 0 1 ... 0 b2=Xb2
Sm CBm am1 am2…amn 0 0 ... 1 bm=Xbm
Zj=∑CBiXj 0 0 ... 0 0 0 ... 0 ∑CBiXj
Cj-Zj C1-Z1 C2-Z2 ... Cn-Zn
(Net contribution
per unit)
The interpretation of the data in the above tableau is given as under. Other simplex tableau
will have similar interpretations.
In the first row labeled "Cj", we write the coefficients of the variables in the objective
function. These values will remain the same in subsequent tableaus.
row is called the key or pivot column. The non-basic variable at the top of the key
column is the entering variable that will replace a basic variable.
Next, we determine the departing variable to be replaced in the basis solution. This is
accomplished by dividing each number in the quantity column by the corresponding
number in the key column selected in identifying the entering variable. We compute the
ratio b1/a1j, b2/a2j... bm/amn. This is called replacement ratio.
Required:
a. Formulate this problem as a LPP
b. How many bottles of Punch A and Punch B the company should produce in order to
maximize profit? (Using the simplex method)
c. What is this maximum profit?
Solution:
Step 1: Formulate LPP Model
Step 2: Standardize the problem: i.e Convert constraint inequality into equality form by
introducing a variable called Slack variable.
Slack Variables: A slack variable(s) is added to the left hand side of a < constraint to covert
the constraint inequality in to equality. The value of the slack variable shows unused
resource.
- A slake variable emerges when the LPP is a maximization problem.
- Slack variables represent unused resource or idle capacity. Thus, they don’t produce
any product and their contribution to profit is zero.
- Slack variables are added to the objective function with zero coefficients.
Let that s1, s2, and s3 are unused labor, machine and marketing hrs respectively.
Max. Z=300x1 +250x2 + 0 s1 +0 s2+ 0 s3
St:
02 x1+x2 + s1 +0 s2+ 0 s3= 40
Standard form
x1+3x2 +0s1 + s2+ 0 s3= 45
x1 + 0s1 + 0s2+ s3= 12
x1 , x2 , s1 , s2, s3 > 0
Step 3: Obtain the initial simplex tableau: To represent the data, the simplex method uses a
table called the simplex table or the simplex matrix.
In constructing the initial simplex tableau, the search for of the optimal solution begins at the
origin. Indicating that nothing can be produced;
Thus, first assumption, No production implies that x1 =0 and x2=0
2 x1+x2 + s1 +0 s2+ 0 s3= 40 x1+3x2 +0 s1 + s2+ 0 s3= 45
2(0) +0 + s1 +0 s2+ 0 s3= 40 0 +3(0) + 0s1 + s2+ 0 s3= 45
s1= 40 – Unused labor hrs. s2= 45 – Unused machine hrs.
x1+0s1 +0s2+ s3= 12
0 +0s1 +0 s2+ s3= 12
s3= 12 – Unused Marketing hrs.
Therefore, Max .Z=300x1 +250x2 + 0 s1 +0 s2+ 0 s3
=300(0) +250(0) + 0(40) +0(45) + 0(12)
=0
Note: In general, whenever there are n variables and m constraints (excluding the non-
negativity), where m is less than n (m<n), n-m variables must be set equal to zero before the
solution can be solved algebraically.
a. Basic variables are variables with non-zero solution values.
Or: basic variables are variables that are in the basic solution. Basic variables have
0 values in the Cj-Zj row.
b. Non-basic variables are variables with zero solution values.
Or: non-basic variables are variables that are out of the solution.
n=5 variables (x1 , x2, s1, s2, and s3) and m=3 constraints (Labor, machine and marketing
constraints), excluding non-negativity.
Therefore, n-m=5-3=2 variables(x1 and x2) are set equal to zero in the 1st simplex tableau.
These are non-basic variables. 3 Variables (s1, s2, and s3) are basic variables (in the 1st
simplex tableau) because they have non-zero solution values.
Step 4: Construct the initial simplex tableau
Initial simplex tableau
Slack variables
variables column
Solution quantity
Basic or Solution
Real or decision
columns
variable column
Profit per unit
column
column
Cj 300 250 0 0 0
Profit per unit
X1 X2 S1 S2 S3 row
SV Q
0 S1 2 1 1 0 0 40 R1
0 S2 1 3 0 1 0 45 Constraint R2
equation rows
0 S3 1 0 0 0 1 12 R3
Zj 0 0 0 0 0 0
Gross Profit row
Cj - Zj 300 250 0 0 0
Net Profit row
/Indicator row/
Step 5: Choose the “incoming” or “entering” variables
Note: The entering variable: is the variable that has the most positive value in the Cj - Zj row
also called as indicator row. Or the entering variable is the variable that has the highest
contribution to profit per unit.
a. X1 in our case is the entering variable
b. The column associated with the entering variable is called key or pivot column ( X1
column in our case )
Step 6: Choose the “leaving “or “outgoing” variable
In this step, we determine the variable that will leave the solution for X1 (or entering variable)
Note: The row with the minimum or lowest positive (non-negative) replacement ratio shows
the variable to leave the solution.
Replacement Ratio (RR) = Solution Quantity (Q)
Corresponding values in pivot column
Note: RR>0
- The variable leaving the solution is called leaving variable or outgoing variable.
- The row associated with the leaving variable is called key or pivot row (s3 column in
our case)
- The element that lies at the intersection of the pivot column and pivot row is called
pivot element(No 1 in our case)
Step 7: Repeat step 3-5 till optimum basic feasible solution is obtained.
Or: repeat step 3-5 till no positive value occurs in the Cj - Zj row.
Note:
- Divide each element of the pivot row by the pivot element to find new values in the
key or pivot row.
- Perform row operations to make all other entries for the pivot column equal to zero.
SV X1 X2 S1 S2 S3 Q
0 S1 0 1 1 0 -2 16 R’1=R1-2R’3
0 S2 0 3 0 1 -1 33 R’2=R2-R3
300 X1 1 0 0 0 1 12 R’3=R3
Zj 300 0 0 0 300 3600 1
Cj - Zj 0 250 0 0 -300
Cj 300 250 0 0 0
SV X1 X2 S1 S2 S3 Q
R’’1=R1-R’2
0 S1 0 0 1 -1/3 -5/3 5
R’’2=R2/3
250 X2 0 1 0 1/3 -1/3 11
R’’3=R’3
300 X1 1 0 0 0 1 12
Zj 300 250 0 250/3 650/3 6350
Cj - Zj 0 0 0 -250/3 - 650/3
From each of bottle of Punch A a profit of $4 is made and from each bottle of Punch B a
profit of $3 is made .Suppose that the company has 230 liters of Orange Juice and 120 liters
of Grape Juice available
Cj
25 30 0 0 M M
SV X1 X2 S1 S2 A1 A2 Q RR
M A1 20 15 -1 0 1 0 100 100/20=5
M A2 2 3 0 -1 0 1 15 15/2=7.5
Note: Once an artificial variable has left the basis, it has served its purpose and can therefore
be removed from the simplex tableau. An artificial variable is never considered for re-entry
into the basis.
2nd Simplex Tableau
Cj
25 30 0 0 M
SV X1 X2 S1 S2 A2 Q
R’1=R1/20
25 X1 1 3/4 -1/20 0 0 5
R’2=R2-2 R’
M A2 0 3/2 1/10 -1 1 5
Standard form
Max. Z=6x1 +8x2 + 0 s1 +0 s2+ 0 s3-M A2- M A3
St:
x2 + s1 =4
x1+ x2 + A2 =9
6x1+2x2 - s3 + A3 =24 Standard form
All Variables >0
Cj 6 8 0 0 -M -M
SV X1 X2 S1 S3 A2 A3 Q
0 S1 0 1 1 0 0 0 4
-M A2 1 1 0 0 1 0 9
-M A3 6 2 0 -1 0 1 4
Zj -7M -3M 0 +M -M -M 24
Cj - Zj 7M +6 3M+8 0 -M 0 0
Ans: At the 4th tableau: X1 =5 ,X2 =4 ,S3 =14 and Max Z=62
Note:
For the initial basis, use artificial variables for constraints that have them. Otherwise, use a
constraint slack variable. Hence, surplus variables will not appear in an initial solution.
ii. Two incoming variables / Or Tie for entering variables/
In order to break this tie, the selection for the key column (entering variable) can be made
arbitrary. However; the number of solution can be minimized by adopting the following
rules:
1. If there is a tie between two decision variables, then the selection can be made arbitrary.
2. If there is a tie between a decision variable and a slack (or surplus) variable, then select
the decision variable to enter into basis first.
3. If there is a tie between slack or surplus variable, then selection can be made arbitrary.
Example:: If the equation is max Z:
Cj
SV X1 X2 S1 S3 Q
Zj
5 2 5
Cj - Zj
0
Cj 5 8 0 0 M
SV X1 X2 S1 S2 A2 Q
5 X1 1 1 -2 3 0 200
8 X2 0 1 1 2 0 100
M A2 0 0 0 -1 1 20
Zj 5 8 -2 31-M M 1,800+200M
Cj - Zj 0 0 2 M-31 0
Even though all Cj - Zj are positive or 0(i.e the criterion for an optimal solution in a
minimization case), no feasible solution is possible because an artificial variable (A2)
remains in the solution mix.
iv. Unbounded Solutions
No finite solution may exist in problems that are not bounded .This means that a variable can
be infinitely large without violating a constraint.
In the simplex method, the condition of unboundedness will be discovered prior to reaching
the final tableau. We will note the problem when trying to decide which variable to remove
from the solution mix.
The procedure in unbounded solution is to divide each quantity column number by the
corresponding pivot column number. The row with the smallest positive ratio is replaced. But
if the entire ratios turn out to be negative or undefined, it indicates that the problem is
unbounded.
Example: Maximization case
Cj 6 9 0 0
SV X1 X2 S1 S2 Q
RR
9 X2 -1 1 2 0 30 30/-1=-30
Unacceptable RRs
0 S2 -2 0 -1 1 10
10/-2=-5
Zj -9 9 18 0 270
Cj - Zj 15 0 -18 0
Pivot Column
The solution in the above case is not optimal because not all Cj - Zj entries are 0 or negative,
as required in a maximization problem. The next variable to enter the solution should be
X1.To determine which variable will leave the solution, we examine the ratios of the quantity
column numbers to their corresponding numbers in the X1 or pivot column. Since both pivot
column numbers are negative, an unbounded solution is indicated.
- No unbounded solutions, no outgoing variable will exist
v. Degeneracy
/Tie for leaving basic variable (key row)/
If there is a tie for the smallest ratio, this is a signal tat degeneracy exists. Degeneracy can
occur right in the first (initial tableau).This normally happens when the number of constraints
is less than the number of variables in the objective function. Problem can be overcome by
trial and error method.
5 8 2 0 0 0
Cj
SV X1 X2 X3 S1 S2 S3 Q
RR
8 X2 1/4 1 1 -2 0 0 10 10/1/4=40
0 S2 4 0 1/3 -1 1 0 20 20/4=5 Ti
0 S3 2 0 2 2/5 0 1 10
Zj 2 8 8 16 0 0 80
Cj - Zj 3 0 -6 -16 0 0
Degeneracy could lead to a situation known as cycling, in which the simplex algorithm
e for the smallest
alternatives back and forth between the same non-optimal solutions, i.e, it puts a new
ratio variable
in, then takes it out in the next tableau, puts it back in ,and so on. indicates
One simple way of dealing with the issue is to select either row (S2 or S3 in degeneracy.
this case)
10/2=5
arbitrary. If we are unlucky and cycling does occur, we simply go back and select the other
row.
Remark: When there is a tie between a slack and artificial variable to leave the basis, the
preference shall be given to artificial variable to leave the basis and there is no need to apply
the procedure for resolving such cases
vi. Multiple Optimal Solutions
Multiple optimal solutions exist when non-basic variable contains zero on its Cj - Zj row
Example: Maximization problem
Cj 3 2 0 0
SV X1 X2 S1 S2 Q
2 X2 3/2 1 1 0 6
0 S2 1 0 1/2 1 3
Zj 3 2 2 0 12
Cj - Zj 0 0 -2 0
MaxZ=3X1+2X2
X1=0, X2=6, S2=3 and MaxZ=12 or: X1=3, X2=3/2 and MaxZ=12
The Cj - Zj value of the Non-basic variable (X1) is 0.Thus, there is alternative optimal
solution.
Summary
- The term linear programming refers to a family of mathematical techniques for
determining the optimum allocation of resources and obtaining a particular objective when
there are alternative uses of the limited or constrained resources.
- The linear programming models exhibit certain common characteristics: An objective
function to be maximized or minimized, a set of constraints, decision variables for
measuring the level of activity, and linearity among all constraint relationships and the
objective function.
- The graphic approach to the solution LP problems is not efficient means of solving
problems. For one thing, drawing accurate graphs is tedious. More over the graphic
approach is limited to models with only two decision variables.
- Special cases that one face solving a problem graphically include: Mix of constraints,
unbounded solution, infeasibility, redundancy, multiple solution
- The simplex method is an algebraic procedure that starts with a feasible solution that is
not optimal and systematically moves from one feasible solution to another until an
optimal solution is found
- The variations described in general simplex approach include; maximization and
minimization problems, mixed constraint problems, problems with multiple optimal
solution, problems with no feasible solution, unbounded problems, tied pivot columns and
rows.
- Multiple optimal solution are identified by Cj-Zj(or Zj- Cj) =0 for a non basic variable.
To determine the alternate solution(s), enter the non basic variable(s) with a Cj-Zj value
equal to zero.
- An infeasible problem is identified in the simplex procedure when an optimal solution is
achieved and one or more of the basic variables are artificial.
- The unbounded problems are identified in the simplex procedure when it is not possible to
select a pivot row- that is, when the replacement ratio is negative or undefined.
- Degeneracy occurs when there is a tie for pivot row.