OR ppt CH 2 (2)
OR ppt CH 2 (2)
OR ppt CH 2 (2)
1
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.
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.
2
2.1. LINEAR PROGRAMMING
MODELS
• LP models are mathematical representations
of LP problems.
2.1.1. COMPONENTS OF LP MODELS
• There are four major components of LP
models including:
i. Objective function
ii. Decision variables
iii. Constraints and
iv. Parameters.
3
i. Objective and Objective Function
• It is the criterion by which all decisions are
evaluated.
• It provides the focus for problem solving.
• In linear programming models, It focuses
on decision-making based on constraints.
It is a real-valued function that is either to
be maximized or minimized depending
upon the constraints. Hence, every LP
problem will be either maximization or a
minimization problem.
4
ii. Decision variables
• They represent unknown quantities to be solved for.
• The decision maker can control the value of the objective, which is
achieved through choices in the levels of decision variables.
• The variables whose values are to be found out.
• For example, how much of each product should be produced in order to
obtain the greatest profit?
iii. Constraints
• They are basically the conditional equations that govern the Linear
function.
• The restrictions may reflect:
availabilities of resources (e.g., raw materials, labor time, etc.),
legal or contractual requirements (e.g., product standards, work
standards, etc.),
technological requirements (e.g., necessary compressive strength or
tensile strength)
other limits based on forecasts, customer orders, company policies, etc.
5
• 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 a negative value. 6
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.
7
• The following simple example illustrates the
components of LP models:
8
2.1.2. ASSUMPTIONS OF LP MODELS
a)Linearity (proportionality)
• The linearity requirement is that each decision
variable has a linear impact on the objective function
and in each constraint in which it appears.
• The basic assumption underlying the linear
programming is that any change in the constraint
inequalities will have the proportional change in the
objective function.
• This means, if product contributes Rs 20 towards the
profit, then the total contribution would be equal to
20x , where x is the number of units of the product.
1 1
9
b) Certainty
• Another underlying assumption of linear
programming is a certainty, i.e. the
parameters of objective function coefficients
and the coefficients of constraint inequalities
is known with certainty.
• Such as profit per unit of product, availability
of material and labor per unit, requirement of
material and labor per unit are known and is
given in the linear programming problem.
10
c) Additivity
• This asserts that the total profit of the objective
function is determined by the sum of profit
contributed by each product separately.
• Similarly, the total amount of resources used is
determined by the sum of resources used by each
product separately.
• This implies, there is no interaction between the
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.
11
d) Non-negativity
• It assumes that negative values of decision
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.
12
2.1.3. Advantages of Linear Programming
1. Optimization of resources – Linear
programming helps us make the most of our
resources, such as time, money, and materials, by
finding the most efficient solutions to problems.
2. Predictive power – Linear programming allows
us to forecast the potential outcomes of different
decisions, helping us plan for the future and make
informed choices.
3. Streamlined decision-making – By breaking
complex problems down into manageable parts
and finding the optimal solution, linear
programming can make it easier to make difficult
decisions. 13
4. Improved resource allocation – Linear
programming can help us allocate our resources in
the most effective way, ensuring that they are used
to their full potential.
5. Enhanced competitiveness – By using linear
programming to optimize our operations, we can
become more competitive in the market,
outshining our competitors and achieving success.
6. Highlighting of bottlenecks in the production
process. For example, when a bottleneck occurs,
some machines cannot meet demand while others
remain idle for some of the time.
14
2.1.4. Limitations of Linear Programming
1. Limited scope – Linear programming is only
effective for solving certain types of problems and
may not be suitable for more complex or non-linear
situations.
16
2.1.5. FORMULATING LP MODELS
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.
17
Steps in formulating LP models:
19
Examples(Problem formulation)
Product Mix
ABC private limited company is engaged in the
production of power and traction transformers.
Both of these categories of transformers pass
through three basic processes: core preparation,
core to coil assembly, and vapor phase drying. A
power transformer yields a contribution of Birr
50,000 and traction transformer contributes Birr
10,000. The time required in the production of
these two products in terms of hours for each of
the processes is as follows.
20
Processes Power Traction
Transformer Transformer
Core preparation 75 15
Core to Coil 160 30
Assembly
Vapor Phase Drying 45 10
24
Step 5. Building and validating the model
Zmax=50,000X1+ 10,000X2
Subject to:
75X1 + 15X2< 1000 hrs
160X1 + 30X2< 1500 hrs
45X1 + 10X2< 750 hrs
X1, X2 > 0
25
Exercise two
• A resourceful home decorator manufactures
two types of lamps says A and B. Both lamps
go through two technician’s first a cutter,
second a finisher. Lamp A requires 2 hrs of
the cutter’s time and 1 hr of the finisher’s time,
while lamp B requires 1hr of the cutter’s time
and 2 hr of the finisher’s time. The cutter has
104 hrs and finisher has 76 hrs of available
time each month. Profit per lamp A is birr 600
and per B lamp is birr 1100. Assuming that he
can sale that entire he produces, how many
of each type of lamps should be
manufactured to obtain the best return.
26
Solution: Formulation of the
Mathematical Model of the Problem
Lamps Cutter Finisher Maximum profit
29
2.3. Solving LP Model
• Following the formulation of a mathematical
model, the next stage in the application of LP to
decision making problem is to find the solution of
the model.
• An optimal, as well as feasible solution to a LP
problem is obtained by choosing from several
values of decision variables x1,x2…xn , the one set
of values that satisfy the given set of constraints
simultaneously and also provide the optimal
(maximum or minimum) values of the given
objective function.
• The most common solution approaches are:
Graphical approach
algebraic approach(simplex method) 30
2.3.1. GRAPHICAL LINEAR PROGRAMMING METHODS
Graphical linear programming is a relatively
straightforward for determining the optimal
solution to certain linear programming problems
involving only two decision variables.
Although graphic method is limited as a solution
approach, it provides a visual portrayal of many
important concepts.
In this method, the two decision variables are
considered as ordered pairs (X1, X2), which
represent a point in a plane, i.e, X1 is represented on
X-axis and X2 on Y-axis.
Graphical method has the following advantages:
It is simple
It is easy to understand, and
It saves time. 31
Steps to solve LPM with Graphic method
33
• Step 6: identify the corner points of this
region are identified.
• Step 7: Finding the optimal solutions
• The value of Z at various corners points of
the region of feasible solution is
calculated. The optimum (maximum or
minimum) Z among these values is noted.
Corresponding solution is the optimal
solution.
• Step 8: interpret the result.
34
Important Definitions
Solution
-The set of values of decision variables xj (j = 1,2,…, n)
which satisfy the constraints of a LP problem is said to
constitute solution to that LP problem.
Feasible solution
- The set of values of decision variables xj (j = 1,2,…, n)
which satisfy all the constraints and non- negativity
conditions of a LP problems simultaneously is said to
constitute the Feasible solution to that LP problem.
35
Infeasible solution
The set of values of decision variables x (j = 1,2,…, n)
j
37
Optimal Basic feasible solution
- A basic feasible solution which optimizes the objective
function value of the given LP problem is called an
optimal basic feasible solution.
Unbounded solution
- A solution which can increase or decrease the value of
the LP problem indefinitely is called an unbounded
solution.
Example
• In order to demonstrate the method, let us take a
micro-computer problem in which a firm is about to
start production of two new micro-computers, X and X .
1 2
41
42
Step 2. Identify the feasible region
• The feasible region is the solution space that
satisfies all the constraints simultaneously.
• It is the intersection of the entire region
represented by all constraints of the problem.
• We shade in the feasible region depending on
the inequality sign.
• In our example above, for all the constraints
except the non-negativity constraint, the
inequality sign is ‘less than or equal to’ and it
represents region of the plane below the
plotted lines. 43
44
Step 3. Locate the optimal solution.
• The feasible region contains an infinite number
of points that would satisfy all the constraints
of the problem. The Point that will make the
objective function optimum will be our optimal
solution. This point is always found among the
corner points of the solution space.
• Once the constraints are plotted and feasible
region is determined, we use the Extreme Point
approach to find a solution for LP model
consisting of only two decision variables:
45
2.3.1.2. The Extreme Point
Approach
• Corner or extreme point graphic method states
that for problems that have optimal solutions,
a solution will occur at the corner point in the
case of unique solution, while in the case of
multiple solutions, at least one will occur at a
corner point as these multiple solutions will be
combinations of those points between two
corner points.
• The necessary steps for this approach is after
graphing the problem, we determine the values
of the decision variables at each corner point
of the feasible region either by inspection or
using simultaneous equations.
46
We then substitute the values at each corner
point into the objective function to obtain its
value at each corner point and select the one
with the highest value of the objective function
(for a maximum problem) or lowest value (for a
minimum problem) as the optimal solution.
i) Extreme Method of Solving Maximization
Problems with < constraint
• Maximization of objective function involves
finding the point where the combination of
products results in maximum value of objective
function. The constraints are connected with <
sign.
• The solution space lies below the slant line and
is bounded by the line segments. The origin and
other points below the slant lines are in the
solution space (i.e., feasible region). 47
Using this method for our example, simultaneously
solving for corner points a, b, c, and d, we find
corresponding profit values of 500, 700, 740, and 660,
respectively giving us the same solution as the above one
at C.
Therefore, the optimal solution is x1= 9 units and x2 = 4
units while the optimal value of objective function is 740.
48
Interpretation
For a firm to maximize its profit (740), it should
produce 9 units of the Model I microcomputer
and 4 units of model II.
Activity
what are the values of decision variables
at each corner point? (Hint: Solve
simultaneously those lines which intersected
each other).
49
ii) Extreme Method of Solving Minimization
Problems with >constraints
51
Solution
Coordinates OF
Corner point x y
Zmin=0.1x+0.07y
A 0 9 0.63
C 15/4 1 0.445
52
2.3.1.3. Graphical Solutions for the Special
Cases of LP
i) Unboundedness
• Unboundedness occurs when the decision
variable increased indefinitely without
violating any of the constraints.
• The reason for it may be concluded to be
wrong formulation of the problem such as
incorrectly maximizing instead of minimizing
and/or errors in the given problem.
• Checking equalities or rethinking the problem
statement will resolve the problem.
53
Max Z = 10X1 + 20X2
Subject to 2X1 + 4X2> 16
X1 + 5X2>15
X1, X2> 0
54
ii) Redundant Constraints
• In some cases, a constraint does not form a
unique boundary of the feasible solution
space. Such a constraint is called a
redundant constraint.
• A constraint is redundant if its removal would
not alter the feasible solution space.
• Redundancy of any constraint does not
cause any difficulty in solving a LP problems
graphically.
• Constraints appear redundant when it may be
more binding (restrictive) than others.
55
56
iii) Infeasibility
• In some cases after plotting all the constraints
on the graph, feasible area (common region) that
represents all the constraint of the problem
cannot be obtained.
• In other words, infeasibility is a condition that
arises when no value of the variables satisfy all
the constraints simultaneously. Such a problem
arises due to wrong model formulation with
conflicting constraints.
For example,
Max Z = 3X1+2X2
Subject to: 2X1 + X2 < 2
3X1 + 4X2 > 12
X1 , X2 > 0
57
58
iv) Multiple optimal solutions
The optimum solution is that extreme point for
which the objective function has the largest value.
It is of course possible that in a given problem
there may be more than one optimal solution.
There are two conditions that should be satisfied
for an alternative optimal solution to exist:
a) The given objective function is parallel to a
constraint that forms the boundary of the feasible
region. The slope of an objective function is the
same as that of the constraint forming the boundary
of the feasible region.
b) The constraint should form a boundary on the
feasible region in the direction of optimal movement
of the objective function. The constraint should be
an active constraint. 59
Note: The constraint is said to be an active or
binding or tight, if at optimality the left hand
side equals the right hand side. In other words,
an equality constraint is always active. An
inequality sign may or may not be active.
For example;
Max Z = 8X1+16X2
Subject to: X1 + X2 < 200 ……. C1
3X1 + 6X2 < 900 ……. C2
X2 < 125 ……. C3
X1, X2 >0 60
61
In the problem above, using extreme point
method and solving for values of corner points
simultaneously, the objective function assumes
its maximum value of 2,400 at two corner points
B (50,125) and C (100,100).
Therefore, the optimal solution is found on the
line segment connecting the two corner points.
One benefit of having multiple optimal solutions
is that for other (perhaps qualitative) reasons, a
manager may prefer one of them to the others,
even though each would achieve the same value
of the objective function.
In practical terms, one of the two corner points is
usually chosen because of ease in identifying its
values.
62
SLACK VERSUS SURPLUS
• Slack is the amount of a scarce resource that is
unused by a given solution.
• Slack can potentially exist in a < constraint.
• Slack variables are considered in the objective
function by using a coefficient of zero for each
of them.
• When all the constraints are written as equalities
after adding a slack variable to each of them, the
linear program is said to be in standard form.
• For example, in the Assembly constraint:-
4X1 +10X2 < 100 hrs, the slack value is 100 – [4(9)
+10(4)] = 24.
63
• Surplus on the other hand is the amount by
which the optimal solution causes a >
constraint to exceed the required minimum
amount.
• It can be determined in the same way that slack
can, i.e., substitute the optimal values of the
decision variables into the left side of the
constraint and solve.
• The difference between the resulting value and
the original right hand side amount is the
amount of surplus.
• Surplus should also be accounted for in the
objective function by using coefficients of zero
like wise.
64
2.3.2. THE SIMPLEX METHOD
68
To find a unique solution, the number of
variables should not exceed the number of
equations.
When the number of variables is more than the
number of equations, the number of solutions
is unlimited. So as to get a unique solution, we
have to set at least (n-m) variables to zero,
where n is the number of variables and m is the
number of equalities.
Those variables that are set to zero are called
non basic variables indicating they are not in
the solution. The variables that are in solution
are called basic variable.
69
• To demonstrate the simplex method, we will use
the microcomputer problem with the following
objective function and constraints. The
Microcomputer Problem, which was discussed in
graphic approach, can be standardized as:
Max. Z = 60X +50X2+0S1+0S2+0S3
1
2X +X +S = 22
1 2 2
3X +3X +S = 39
1 2 3
slack variables.
• Here, the number of variables (5) is greater than
the number of equations (3). Therefore, the
decision variables are set to zero and we have X = 1
0, X = 0,
2
72
THE SIMPLEX ALGORITHM
2.3.2.1. 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.
73
Thus, we can restate the problem in terms of
equations:
Maximize Z = C1X1+ C2X2 + ...+ CnXn + OS1 + OS2 +...
+0Sm
Subject to a11X1+a12X2+... + a1nxn+ s1 =b1
a21X1+ a22X2+... + a2nXn+ S2 = b2
amlXl + am2 X2 +... + amNxn + Sm =
bm
, where X1, X2... Xn and S1, S2 ... Sm are non-
negative.
74
• 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:
75
Initial Simplex Tableau
Cj C1, C2 ... Cn, 0 0 ... 0 Quantity Ratio
0
S2 CB2 a21 a22 ... a2n 0 1 ... b2=Xb2
0
Sm CBm am1 am2…amn 0 0 ... bm=Xbm
1 76
• 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.
• The second row shows the major column
headings.
• In the first column of the second row, under the
label "Basic variables" (also called Product mix
column), the basic variables are listed.
77
In the second column of the second row, under
the label "CB", the coefficients of the current
basic variables in the objective function are listed.
Thus the coefficients of S1, S2... Sm, which are
included in the initial feasible solution, are written
in the CB column.
The values listed under the non-basic variables
(X1, X2… Xn) in the initial simplex tableau consists
of the coefficients of the decision variables in the
constraint set. They can be interpreted as
physical rates of substitution.
The values listed under the basic variables (S1, S2..
. Sm) in the initial simplex tableau represents the
coefficients of the slack variables in the
constraints set.
78
• In the next column (also called Quantity column),
we write the solution values of the basic
variables.
• To find an entry in the Zj row under a column, we
multiply the entries of that column by the
corresponding entries of ‘CB’ column and add
the results, i.e., Zj= ∑CBiXj. The Zj row entries will
all be equal to zero in the initial simplex tableau.
The other Zj entries represent the decrease in the
value of objective function that would result if
one of the variables not included in the solution
were brought into the solution. The Zj entry
under the “Quantity Column" gives the current
value of the objective function.
79
• The last row labeled "Cj-Zj", called the index row
or net evaluation row, is used to determine
whether or not the current solution is optimal or
not. The calculation of Cj-Zj row simply involves
subtracting each Zj value from the
corresponding Cj value for that column, which is
written at the top of that column. We observe
that Cj -Zj values are meaningful for the non basic
variables only. This is because for a basic
variable, Zj= 1 x Cj = Cj so that Cj-Zj=Cj-Cj= 0.
Note: The entries in the Cj - Zj, row represent the
net contribution to the objective function that
results by introducing one unit of each of the
respective column variables.
80
A plus value indicates that a greater
contribution can be made by bringing the
variable for that column into the solution.
A negative value indicates the amount by
which contribution would decrease if one unit
of the variable for that column were brought
into the solution. Index row elements are also
known as the shadow prices (or accounting
prices)
81
Step 5. We test if the current solution is optimum
or not:
If all the elements or entries in the Cj-Zj row (i.e.,
index row) are negative or zero, then the current
solution is optimum.
If there exists some positive number, the current
solution can be further improved by removing one
basic variable from the basis and replacing it by
some non-basic one. So start trying to improve the
current solution in line with the following steps.
Step 6. Further, iterate towards an optimum
solution. To improve the current feasible solution, we
replace one current basic variable (called the
departing variable) by a new non-basic variable
(called the entering variable).
82
• We now determine the variable to enter into the
solution mix, the entering variable. One way of doing
this is by identifying the column with the largest
positive value in the C - Z row of the simplex table.
j j
84
Step 7.Evaluate the new solution by constructing a
second simplex tableau. After identifying the entering
and departing variable, all that remains is to find the
new basic feasible solution by constructing a new
simplex tableau from the current one.
Now we evaluate or update the new solution in the
following way:
• New values for the key row are computed by simply
dividing every element of the key row by the key
element to obtain a unit vector (1) in the key element.
• The new values of the elements in the remaining
rows for the new simplex table can be obtained by
performing elementary row operations on all rows so
that all elements except the key element (1) in the
key column are zero, i.e. unit vector.
85
Formula:
New Row element= Old row element - (Old row
element in pivot column * corresponding
element in replaced row.
• New entries in the CB column and XB
column are entered in the new table of the
current solution.
• Compute the values of the Cj - Zj row. If all
the numbers in Cj - Zj row are either negative
or zero, an optimum solution has been
obtained.
86
Step 8. If any of the numbers in Cj - Zj row are
positive, repeat the steps (6-7) again until an
optimum solution has been obtained.
Note: Rules for Ties. In choosing a key column
and a key row, whenever there is a tie between
two numbers, the following rules may be
followed:
• The column farthest to the left may be
selected if there is a tie between two numbers
in the index row.
• The nearest ratio to the top may be selected
whenever there is a tie between two
replacement ratios in the ratio column.
87
Example (Maximization Case)
Finding the initial Feasible Solution
As discussed above, the initial feasible solution is
found by setting the decision variables to zero.
Max Z = 60X1+50X2+0S1+0S2+0S3
Subject to 4X1+10X2+S1 = 100
2X1+ X2+S2 = 22
3X1+ 3X2+S3 = 39
X1, X2> = 0
88
Initial Simplex tableau
Cj 60 50 0 0 0 Qty
Basic V. X1 X2 S1 S2 S3
S1 0 4 10 1 0 0 100
S2 0 2 1 0 1 0 22
S3 0 3 3 0 0 1 39
Zj 0 0 0 0 0 0
Cj-Zj 60 50 0 0 0
89
Interpretation of the Initial Feasible Solution
• To be noted first is that the values of each basic
variable (variables that are in solution) is
composed of a single 1 and the rest 0’s. This is
called a unit vector. Basic variables will have a
unit vector. Moreover, ‘1’ will appear in the same
row that the variable appears in. The unit vector
concept will help us in developing subsequent
tableaus when we want to change the list of
variables that are in solution.
• The Zj row in the quantity column indicates that
the value of the objective function is 0.
• The values in the Cj-Zj row indicate the net
contribution of the variables if one unit of each
variable is added into that solution. 90
• For example, the 60 in column X indicates that
1
value 60.
92
Therefore, X should enter the basis or the solution
1
S1 0 4 10 1 0 0 100 100/4=
25
S2 0 2 1 0 1 0 22 22/2 = 11
S3 0 3 3 0 0 1 39 39/3 = 13
Zj 0 0 0 0 0 0
Cj-Zj 60 50 Pivot
0 Element
0 0
Pivot Row
Pivot Column 94
Among the constraints, the one with the smallest
non-negative ratio is the most restrictive since it
determines the amount of X1. In this particular case,
there is only enough of the second constraint to
make 11 units of X1.
In making the 11 units of X1, the second resource
(S2) will be down to zero indicating that S2 will leave
out the solution mix. The row of the leaving variable
is called the pivot row.
The intersection of the pivot row and the pivot
column is called the pivot element.
As a rule, The leaving variable is the one with the
smallest non-negative ratio.
95
If a zero is obtained in the results of division,
none of the corresponding variable is needed to
obtain one unit of the entering variable.
If a negative value is obtained in the division,
bringing the entering variable into the solution
would increase the amount of the basic variable.
These values will not limit the amount of the
entering variable. Therefore, there is no need to
divide the quantity column by zero or negative.
Since we have determined the leaving and the
entering variables and since the initial feasible
solution can be improved further, we need to
develop the second tableau in order to find the
optimal solution.
96
In developing the second tableau, we should compute for
revised values of the constraint equations,
the Z row and the C-Z row and
remember that the variables in solution will have a unit vector,
with a value of 1 in the intersection of the column and the row
of the basis, i.e. the pivot element.
To obtain a unit vector in the basis column, we perform
elementary row operations resulting in new row values by
either multiplying/dividing all the elements in a row by a
constant or adding/subtracting the multiple of a row to or
from another row.
In computing for the new row values from our initial simplex
tableau, we first multiply the second
constraint by ½ obtaining the
values as follows:
1X+1/2X+0S+1/2S+0S = 11,
which results in making the pivot element 1.
97
• Next, we multiply the above new row values
by 4 and subtract it from the first constraint
obtaining the following results: i.e.
(NR1=OR1- 4NR2)
0X1+8X2+1S1+ -2S2+0S3 = 56.
• Then, we multiply the new row values in the
pivot row by 3 and subtract it from the third
constraint resulting as follows:
0X1+3/2X2+0S1-3/2S2+1S3 = 6.
Having these new row values, we develop the
second simplex tableau as shown below.
98
Second Simplex Tableau
Cj 60 50 0 0 0 Quantity
Basic V. X1 X2 S1 S2 S3
S1 0 0 8 1 -2 0 56
X1 60 1 1/2 0 1/2 0 11
S3 0 0 3/2 0 -3/2 1 6
Zj 60 30 0 30 0 660
Cj-Zj 0 20 0 -30 0
99
Interpretation of the Second Simplex Tableau
• The profit obtained at this point of solution is
$660. In the Cj-Zj row, we search for the
highest positive value.
• Therefore, we have a positive value in the Cj-
Zj row which indicates that this is not the
optimal solution. As a result, we go for the
next tableau.
100
Developing the Third Tableau
we select the entering and the leaving variables.
The entering variable is the one with the highest
Cj-Zj row value which is the X2 column. This
means that bringing one unit of X2 into the
solution increases profit by $20.
Therefore, the X2 will be the entering variable
designated as the pivot column.
To determine the leaving variable, we divide the
values in the pivot column by their
corresponding row values in the quantity column.
The result obtained, as shown in the table below
indicates that S3 is the leaving variable with the
smallest non-negative ratio. This means that S3
is the most limiting resource for how much units
of X2 can be made. 101
Cj 60 50 0 0 0 Qty
X1 X2 S1 S2 S3
Basic V.
S1 0 0 8 1 -2 0 56 56/8 = 7
X2 6 1 1/2 0 ½ 0 11 11/
(1/2)=22
0
6/(3/2) = 4
S3 0 0 3/2 0 -3/2 1 6
Zj 60 30 0 30 0 660
Basic V. X1 X2 S1 S2 S3 Qty
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
105
SIMPLEX MAXIMIZATION WITH MIXED
CONSTRAINTS
(= AND >= CONSTRAINTS)
The Big M Method—introducing slack, surplus
and artificial variables
• If any problem constraint has negative
constants on the right side, multiply both sides
by -1 to obtain a constraint with a non-negative
constant. (If the constraint is an inequality, this
will reverse the direction of the inequality.)
• Introduce a slack variable in each <=
constraints.
• Introduce a surplus variable and an artificial
variable in each >= constraint.
106
• Introduce an artificial variable in each
'='constraint.
• For each artificial variable Ai, add -MAi to the
objective function in case of maximization
and
+MAi in case of minimization.
• Use the same constant M for all artificial
variables.
• Form the simplex tableau for the modified
problem.
• Solve the modified problem using the
simplex method. 107
• Relate the solution of the modified problem
to the original problem:
– If the modified problem has no solution, then the
original problem has no solution.
– If any artificial variables are non-zero in the
solution to the modified problem, then the
original problem has no solution.
Note. The artificial variables are introduced for
the limited purpose of obtaining an initial solution
and are required for the constraints of >= type or
the constraints with '=' sign. It is not relevant
whether the objective function is of the
minimization or the maximization type.
108
• since artificial variables do not represent any
quantity relating to the decision problem, they must
be driven out of the system and must not remain in
the final solution (and if at all they do, it represents a
situation of infeasibility. This can be ensured by
assigning an extremely high cost to them.
• Generally, a value M is assigned to each artificial
variable, where M represents a number higher than
any finite number.
• For this reason, the method of solving the problems
where artificial variables are involved is termed as
the 'Big M Method'.
• When the problem is of the minimization nature, we
assign in the objective function a coefficient of +M
to each of the artificial variables.
• On the other hand, for the problems with the
objective function of maximization type, each of the
artificial variables introduced has a coefficient -M.109
• In case of equality constraints( a sign ‘=‘ ), a slack variable
is not acceptable since these constraints require a precise
amount. To overcome this problem, artificial variables are
introduced which are added to = and >= constraints.
• They have no physical representation for their purpose to
allow the use of simplex process.
• As a result, they should not appear in the final optimal
solution.
• Assignment of coefficients for artificial variables depends
on the type of the problem, whether it is a maximization or
a minimization problem.
• In case of maximization problem, a large negative
contribution or coefficient in the objective function would
ensure the removal of artificial variables from the optimal
solution, commonly represented by -M. For minimization
problems, introducing a large positive coefficient would
ensure the non-existent of artificial variables in the optimal
solution, commonly represented by M.
110
• In addition to this, a slack is not allowed in >=
constraints since they can only happen an
excess amount that is more than the minimum
amount of a constraint. This excess amount is
represented by a surplus variable and is
subtracted from the constraint.
Example–Maximization Problems with Mixed
Constraints
Assume the following maximization problem with
mixed constraints.
Max. Z = 6X1+8X2
Subject to X2 <= 4
X1+X2 = 9
6X1+2X2>= 24
111
• In solving for this problem, introducing a slack
variable is not acceptable since they represent
unused capacity and there is no unused capacity
in = , and >= constraints.
• Therefore, for >= constraints we introduce a
surplus variable, and for both >= and =
constraints we introduce artificial variables
resulting as follows.
Max Z = 6X1+8X2+0S1+0S3-MA2-MA3
Subject to X2 + S1 = 4
X1+X2+A2 = 9
6X1+2X2-S3+A3 = 24
X1 , X2 > = 0
112
Developing the Initial Simplex Tableau
In the initial tableau, we list the variable in
the order of decision variable, slack/surplus
variables and finally artificial variables. And
for constraints, use artificial variables, and/
or slack variables and/or surplus variables
for the initial solution.
Therefore, the initial tableau for the problem
is represented as follows.
113
Cj 6 8 0 0 -M -M Qty
X1 X2 S1 S3 A2 A3
Basic V.
S1 0 0 1 1 0 0 0 4
A2 -M 1 1 0 0 1 0 9
A3 -M 6 2 0 -1 0 1 24
A2 -M 0 2/3 0 1/6 1 5
X1 6 1 1/3 0 -1/6 0 4
116
Developing the Third Simplex Tableau
• Selecting the entering and leaving variables, we go
for obtaining a unit vector in the pivot column by
using the elementary row operations. We get the
following third tableau.
117
Third Simplex Tableau
118
• Similarly, we identify the entering and the
leaving variables which are S3 and A2
respectively representing the maximum Cj-Zj
value and the minimum ratio.
Developing the Fourth Simplex Tableau
Perform elementary row operations as usual
to have a unit vector in the entering variable
column and you will get the following fourth
tableau.
119
Fourth Simplex Tableau
Cj 6 8 0 0 Qty
Basic V. X1 X2 S1 S3
X2 8 0 1 1 0 4
S3 0 0 0 -4 1 14
X1 6 1 0 -1 0 5
Zj 6 8 2 0 62
Cj-Zj 0 0 -2 0
120
• This tableau represents the final tableau
since we have only zeros and negative
values in the Cj-Zj row which indicates that it
is the optimal solution. So we have the
following results for each of the variables
and the profit obtained.
X1 = 5, X2 = 4, S3 = 14, and Profit = 62
121
2.3.2.2. MINIMIZATION LINEAR PROGRAMMING
PROBLEMS
Big M-method /Charnes Penalty Method/
• The Big-M Method is a technique, 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 cost (also
called penalty) is assigned to each of these
artificial variables.
122
The characteristics of Big-M Method:
a. High penalty cost (or profit) is assumed as M
b. M as a coefficient is assigned to artificial
variable A in the objective function Z.
c. Big-M method can be applied to minimization
as well as maximization problems with the
following distinctions:
i. Minimization problems
-Assign +M as coefficient of artificial variable A
in the objective function Z of the minimization
problem.
123
ii. Maximization problems:
-Here –M is assigned as coefficient of artificial
variable A in the objective function Z of the
maximization problem.
d) Coefficient of S (slack/surplus) takes zero
values in the objective function Z.
e) For minimization problem, the incoming
variable corresponds to the highest negative
value of Cj-Zj.
f) The solution is optimal when there is no
negative value of Cj-Zj.(For minimization LPP case)
124
• The various steps involved in using simplex
method for minimization problems are:
Step 1. Formulate the linear programming
model, and express the mathematical model
of L.P. problem in the standard form by
introducing surplus and artificial variables in
the left hand side of the constraints. Assign a
0 (zero) and +M as coefficient for surplus and
artificial variables respectively in the
objective function. M is considered a very
large number so as to finally drive out the
artificial variables out of basic solution.
125
Step 2. Next, an initial solution is set up. Just to
initiate the solution procedure, the initial basic
feasible solution is obtained by assigning zero
value to decision variables. This solution is now
summarized in the initial simplex table. Complete
the initial simplex table by adding two final rows Z,
and Cj - Zj. These two rows help us to know
whether the current solution is optimum or not.
Step 3. Now; we test for optimality of the solution.
If all the entries of Cj-Zj, row are zeros and positive,
then the solution is optimum. However, this
situation may come after a number of iterations.
But if at least one of the Cj - Zj values is less than
zero, the current solution can be further improved
by removing one basic variable from the basis and
replacing it by some non-basic one.
126
Step 4. (i) Determine the variable to enter the basic
solution. To do this, we identify the column with the
largest negative value in the C - Z row of the table.
j j
127
So the following are the essential things to observe in
solving for minimization problems:
Note: The entering variable is the one with the largest
negative value in the C -Z row while the leaving
j j
8X +4X > = 64
1 2
X, X > = 01 2
129
Initial Simplex Tableau
Cj 7 9 0 0 M M Qty
Basic V. X X2 S1 S2 A1 A2
1
A1 M 3 6 -1 0 1 0 36
A2 M 8 4 0 -1 0 1 64
130
Second Simplex Tableau
Cj 7 9 0 0 M Qty
X1 X2 S1 S2 A1
Basic V.
A1 M 0 9/2 -1 3/8 1 12
X1 7 1 ½ 0 -1/8 0 8
131
Third Simplex Tableau
Cj 7 9 0 0 Quant
Basic V. ity
X1 X2 S1 S2
132
• The third tableau represents a final tableau
since it is the optimal solution with entirely
zeros and positive values in the Cj-Zj row.
• Therefore, the optimal solution is: X1 = 20/3
and X2 = 8/3 and value of objective function
is
Z= 212/3.
133
Coefficient of extra Presence of
Types of
Extra variables to be variables variables in
constrain added in the objective the initial
t function solution mix
Max Z Min Z
< Add only slack 0 0 Yes
variable
Subtract surplus 0 0 No
variable
> Add artificial variable -M +M Yes
134
2.4. SPECIAL ISSUES
• Several special situations which one many
encounter during the application of simplex
method are summarized below:
1. Non-feasible Solution/ Infeasibility
• Infeasibility comes about when there is no
solution that satisfies all of the problem’s
constraints.
• In the simplex method, an infeasible solution
is indicated by looking at the final tableau
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.
135
Example:
Minimization case
Cj 5 8 0 0 M
BV 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
5 8 -2 31-M 1,
Zj
M 800+200M
C j - 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.
136
2. Unbounded Solution
• 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.
• A negative ratio means that increasing that
variable would increase resources.
• A zero ratio means that increasing the
variable would not use any resources.
137
.
Example:
Maximization case:
Cj
6 9 0 0
X1 X2 S1
SV Q
S2
RR
9 X2 -1 1 2 0 30 30/-1=-30
Unacceptable RRs
S2 10/-2=-5
0 -2 0 -1 1 10
Zj -9 9 18 0 270
C j - Zj 15 0 -18 0
Pivot Column
138
• 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.
• Note: When unbounded solutions occur, no outgoing
variable will exist.
139
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. 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 LP model. Such problems can be
overcome by trial and error method.
• If this is resolved by a proper selection of the key
element, degeneracy can be avoided.
• The main drawback to degeneracy is the
increase in the computation, which reduces the
efficiency of the simplex method considerably.
140
Example
Cj
5 8 2 0 0 0
X1 X2 X3 S1 S2
SV
S3 Q
RR
1/4 1 1 -2 0
8 X2 10 10/1/4=40
0
Tie for the smallest ra
4 0 1/3 -1 1 20/4=5 Indicates degeneracy
0 S2 20
0
2 0 2 2/5 0
0 S3 10
1 10/2=5
2 8 8 16 0
Zj 80
0
Cj - Zj 3 0 -6 -16 0 0
141
• 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:
142
Example:
If the equation is max Z:
Cj
X1 X2 S1
SV Q
S3
Zj
Cj - 5 2 5
0
Zj 143
END OF PART ONE
144
PART TWO: Post optimality Analysis
2.1. DUALITY
• The term ‘dual’ in a general sense implies two
or double.
• Every linear programming problem can have
two forms:
The original formulation of a problem is referred
to as its Primal form.
The other form is referred to as its dual form. In
general, however, it is immaterial which of the
two problems called primal or dual, since the
dual of the dual is primal.
145
• The dual involves setting up and solving a LP problem
that is almost a ‘mirror image’ of a LP problem that has
been formulated.
• Both in its formulation and solution, the dual is the flip
flop version of the primal.
• In the context of LP, duality implies that each LP problem
can be analyzed in two different ways, but having
equivalent solution.
• For example, consider the problem of production planning.
• By using the primal LP problem, the production manager
attempts to optimize resource allocation by determining
quantities for each product to be produced that will
maximize profit. But through dual LP problem approach,
he attempts to achieve production plan that optimizes
resource allocation so that each product is produced at
that quantity such that its marginal opportunity cost
equals its marginal return
146
Thus, the main focus of dual is to find for each resource
its best marginal value or shadow price.
This value reflects the scarcity of resources, i.e., the
maximum additional prices to be paid to obtain one
additional unit of the resources to maximize profit under
the resource constraints.
If resource is not completely used, i.e., there is slack, then
its marginal value is zero.
• The shadow price is also defined as the rate of change in
the optimal objective function value with respect to the
unit change in the availability of a resource. Precisely for
any constraint, we have,
Subject to
a x +a x +... + a x ≤ b
11 1 12 2 1n n 1
a x +a x +... + a x ≤ b
21 1 22 2 2n n 2
a x +a x +... + a x ≤ b
m1 1 m2 2 mn n m
x ,x ... x ≥ 0 1 2 n
Subject to
a y+a y+... + a y ≥ c
11 1 21 2 m1 m 1
a y+a y+... + a y ≥ c
12 1 22 2 m2 m 2
a y+a y+... + a y c
1n 1 n2 2 mn m n
y,y... Y ≥ 0
1 2 m
149
150
• The following rules which guide the formulation
of the dual problem will give you the summary
of the general relationship between primal and
dual LP problems.
1. If the primal’ objective is to minimize, the dual’s
will be to maximize; and the vice versa.
2. The coefficient’s of the primal’s objective
function become the RHS values for the dual’s
constraints.
3. The primal’s RHS values become the
coefficients of the dual’s objective function.
4. The coefficients of the first “row” of the
primal’s constraints become the coefficients of
the first “column” of the dual’s constraint …..
5. The ≤ constraints become ≥ and the vice versa.
151
Consider this Primal problem:
M inimize 40x + 44x + 48x
1 2 3
4x + 4x + 4x > 30
1 2 3
x,x,x>0
1 2 3
2y + 4 y < 44
1 2
3y + 4 y < 48
1 2
y , y > 0
1 2
152
T he follow ing table show s how the primal problem is transformed into its dual.
153
• We can see from the table that the original objective
was to minimize, whereas the objective of the dual is
to maximize. In addition, the coefficients of the
primal’s objective function become the right-hand side
values for the dual’s constraints, whereas the primal’s
right-hand side values become the coefficients of the
dual’s objective function.
• Note that the primal has three decision variables and
two constraints; whereas the dual has two decision
variables and three constraints.
• The constraint coefficients of the primal are constraint
coefficients of the dual, except that the coefficients of
the first “row” of the primal become the coefficients of
the first “column” of the dual, and the coefficients of
the second “row” of the primal become the
coefficients of the second “column” of the dual.
• When the primal problem is a maximization problem
with all < constraints, the dual is a minimization
problem with all > constraints.
154
2.1.2. Formulating the Dual when the Primal has Mixed
Constraints
• In order to transform a primal problem into its dual, it is
easier if all constraints in a maximization problem are of the
< variety, and in a minimization problem, every constraint is
of the > variety.
• To change the direction of a constraint, multiply both sides
of the constraints by -1.
For example,
-1(2x + 3x > 18) is -2x -3x < -18
1 2 1 2
will be replaced by
4x + 5x < 20
1 2
4x + 5x > 20
1 2
156
SOLUTION
• Since the problem is a max problem, put all the
constraints into the ≤ form. Subsequently, C2
and C3 will be first adjusted into ≤ constraints.
C2 will be multiplied by -1:
-1(4x1 + 2x2 ≥16) becomes -4x1 - 2x2 ≤ -16
C3 is equality, and must be restated as two
separate constraints. Thus, it becomes:
6x1 +6x2 ≤ 30 and 6x1 +6x2 ≥30.
Then the second of these must be multiplied by -1.
-1(6x +6x ≥30) becomes -6x -6x ≤ -30
After making the above adjustments, rewrite the
LP model again.
157
Maximize Z = 50x1 + 80x2
Subject to:
C1 3x1 + 5x2 ≤ 45
C2 -4x1 - 2x2 ≤ -16
C3 6x1 +6x2 ≤ 30
C4 -6x1- 6x2 ≤ -30
x1 , x 2 ≥ 0
158
The dual of the above problem will be:
Minimize 45y1 - 16y2 + 30y3 – 30y4
Subject to
C1 3y1 -4y2 + 6y3 – 6y4
≥ 50
C 2 5y1 - 2y2 + 6y3 – 6y4
≥ 80
y1, y2, y3, y4 ≥ 0
159
2.1.3. Comparison of the Primal and Dual Simplex Solutions
Cross -referencing the values in the primal and dual final
simplex tableaus is shown as follows.
161
Final tableaufoDual solution to the Microcomputer problem
C 100 22 39 0 0 M M Quantity
Basis y1 y2 y3 s1 s2 a1 a2
y3 39 16/3 0 1 1/3 -2/3 -1/3 2/3 40/3 Primal
y2 22 -6 1 0 -1 1 1 -1 10 shadow
Z 76 22 39 -9 -4 9 4 740 prices
C-Z 24 0 0 9 4 9-M 4-M
162
• The primary concern with a simplex solution
is often three fold:
– Which variables are in solution?
– How much of each variable is in the optimal
solution?
– What are the shadow prices for the constraints?
163
Let’s consider how we can obtain the answers to
these questions from the dual solution.
• Notice that the solution quantities of the dual
are equal to the shadow prices of the primal (i.e.
40/3 and 10).
• Next, notice that the values of the solution
quantities of the primal (i.e., 24, 9, and 4) can be
found in the bottom row of the dual.
• Now, in the primal solution, s1 equals 24. In the
dual, the 24 appears in the y1 column.
• The implication is that a slack variable in the
primal solution becomes a real variable (i.e., a
decision variable) in the dual. The reverse is
also true: A real variable in the primal solution
becomes a slack variable in the dual.
164
• Therefore, in the primal solution we have x = 9
1
167
The manager of the firm would reason in the following way:
For each unit of Model I that the firm sacrifices to
produce computers for the department store, it will gain
4 hours of assembly time, 2 hours of inspection time,
and 3 cubic feet of storage space, which can be applied
to the store computers. However, it will also give up a
unit profit of $60.
Therefore, in order for the firm to realistically consider
the store’s offer, the amounts of scarce resources that
will be given up must produce a return to the firm that is
at least equal to the foregone profit.
Hence, the value of 4 assembly hours, + 2 inspection
hours, + 3 cubic feet of storage space > $60.
By similar reasoning, giving up one unit of Model II will
require that the value received by giving up 10 assembly
hours, + 1 inspection hour, + 3 cubic feet of storage
must equal or exceed the Model II profit of $50 per unit.
These, then, become the constraints of the dual
problem. Thus,
168
V alue R eceived R esources M inimum Profit
Per U nit of Freed U p R equired
M odel I 4y + 2y + 3y $60
1 2 3
172
• In order to determine if this new variable would come into
the optimal (primal) solution, we can substitute the dual
solution of y = 0, y = 10, and y = 40/3 (i.e., the shadow
1 2 3
178
• The discussion here covers only two types
of changes:
– changes in the right hand side levels of the
constraints, and
– changes in the coefficients of the objective
function as change in the coefficient of
constraints is beyond the coverage of this
material.
• To demonstrate sensitivity analysis, the
microcomputer example will again be used.
179
180
• The most obvious way to ascertain the effect
of a change in the parameter of the model is
to make the change in the original model,
resolve the model, and compare the solution
result with the original solution.
• However, resolving a problem can be very
time consuming and as it will be
demonstrated below, it is unnecessary.
• In most cases the effect of changes in the
model can be determined directly from the
final simplex tableau.
181
2.2.1. A Change in the RHS of a constraint
• The first step in determining how a change
in the RHS (Right Hand Side) of a constraint
(e.g., the amount of scarce resource that is
available for use) would influence the
optimal solution is to examine the shadow
prices in the final simplex tableau. Shadow
prices are the values in the Z row in the
slack columns.
• The final tableau for the microcomputer is
shown in the following table since sensitivity
analysis starts from final tableau.
182
60 50 0 0 0
Cj x1 x2 s1 s2 s3 Qty
Basis
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
Z 60 50 0 10 40/3 740
C-Z 0 0 0 -10 -40/3
Negatives of
shadow prices
183
• A shadow price is a marginal value; it indicates the
impact that a one-unit change in the amount of a
constraint would have on the values of the
objective function.
• As we can see from the table, the shadow prices
are $0 for s (Assembly time), $10 for s (Inspection
1 2
186
Here, the smallest positive ratio indicates
how much the constraint level can be
decreased before it reaches the lower limit
of its range of feasibility, and the smallest
negative ratio (i.e. the negative ratio closest
to 0) indicates how much the storage
constraint can be increased before it
reaches its upper limit of feasibility.
The general rule applies when computing
the upper and lower limits on the range of
feasibility for maximization problem is:
187
Note: The reverse rule will be true for
minimization problems.
Alternative Method
Assume q1 symbolically represent quantity in
the original model, and stands for change.
Max. Z = 60X1+50X2
Subject to 4X1+10X2 < 100
2X1+X2 < 22
3X1+3X2 < 39
188
• If we consider the same example as in the
previous example, i.e., change in q3 = 39. If q3
changes by some amount, the new q’3 equals
the original q3+ .
• The changes form a separate column
identical to the s1 column in the final simplex
tableau.
• Therefore, to determine the change, we need
only observe the slack (si) column
corresponding to the model constraint
quantity (qi) being changed.
189
Final simplex tableau
60 50 0 0 0 Qty
Cj x1 x2 s1 s2 s3
Basis
s1 0 0 0 1 6 -16/3 24-16/3
x1 60 1 0 0 1 -1/3 9-1/3
x2 50 0 1 0 -1 2/3 4 + 2/3
Z 60 50 0 10 40/3 740
C-Z
0 0 0 -10 -40/3
190
191
192
• Once we have computed these limits, we
proceed to assess the impact that a
contemplated change would have on the
optimal solution.
Example
• The manager in the microcomputer problem is
contemplating a change in the level of the
storage constraint – an increase of 3 cubic feet.
Determine the revised optimal solution for the
change.
Solution
• First, note that an increase of 3 cubic feet is
within the range. Then, the effect of an
increase of three cubic feet is computed in the
following way:
193
194
2.2.2. A Change in an Objective Function Coefficient
• It is useful to know how much the contribution of
a given decision variable to the objective function
can change without changing the optimal solution.
• There are two cases:
– Changes for a variable that is not currently in the
solution mix, and
– Changes for a variable that is currently in the
solution mix.
• If a variable is not currently in the solution in a
maximization problem, its objective function
coefficient would have to increase by an amount
that exceeds the C-Z value for that variable in the
final tableau in order for it to end up as a basic
variable in the optimal solution.
195
• The range over which a non-basic variable’s
objective function coefficient can change
without causing that variable to enter the
solution mix is called its range of
insignificance.
• Range of Insignificance: the range over
which a non-basic variable’s objective
function coefficient can change without
causing that variable to enter the solution
mix.
196
Maximize 3X1 + 2X2 + 5X3
Subject to:
C1 X1 + 2X2 + 2X3 ≤ 18
C2 3X1 + 2X2 + 6X3 ≤ 12
C3 2X1 + 3X2 + 4X3 ≤ 12
X1 , X2, X3 , ≥ 0
197
C 3 2 5 0 0
Basis 0 Quantit
X1 X2 X3 s s y
s
s 0 0132
0 0 1 1/5 4/5
X1 3 -4/5 12/5
X2 2 1 0 2 0 3/5 12/5
-2/5
0 1 0 0 -2/5
3/5
Z 3 2 6 0 1 12
C-Z 0
0 0 -1 0 -1
0
198
• In the above tableau we see that x is a non-
basic variable.
• To determine the range over which the
objective function coefficient of x would
change without changing the optimal solution,
recall how a variable in a max problem enters
the solution mix.
• Because x is not in solution, its objective
function coefficient would need to increase in
order for it to come in to solution (i.e., to
make its c-z value positive).
• The amount of increase must be greater than
the absolute value of its c-z value, which is
│-1│i.e.
199
its objective function coefficient must increase by
more than 1.
•Hence, the range of insignificance for X is 6 or
less (i.e, its Z value).
• In general the rule is: Range of insignificance for a
non- basic variable is the Z value of the variable.
The allowable increase is the absolute value of its
own C- Z value.
Range of Optimality
•The range over which objective function
coefficient of a variable that is in solution can
change without changing the optimal values of the
decision variables.
Note, however, that such a change would change
the optimal value of the objective function.
200
• For variables that are in solution, the
determination of the range of optimality
(the range over which the objective
function coefficient of a variable that is in
the solution can change without changing
the optimal values of the decision variables)
requires a different approach.
Divide the values in row C-Z by the
corresponding row values of the variable in
question and follow the following rule for both
maximization and minimization problems.
201
Note: If there is no positive ratio, it means that
there is no upper limit on that variable’s objective
function coefficient.
Example
Determine the range of optimality for the decision
variables in the microcomputer problem.
202
Solution
The final simplex tableau for that problem is
repeated here for convenience.
Cj 60 50 0 0 0
Basis x1 x2 s1 s2 s3 Quan
tity
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
Z 60 50 0 10 40/3 740
C-Z 0 0 0 -10 -40/3
203
The smallest positive ration is +40. Therefore, the
coefficient of X1 can be increased by Birr 40
without changing the optimal solution.
The upper end of its range of optimality is this
amount added to its current (original) value.
Thus, its upper end is (Birr60 +Birr40) = Birr100.
204
• Also, the smallest negative ratio is -10;
therefore, the x1 coefficient can be decreased
by as much as Birr10 from its current value,
making the lower end of the range equal to
(Birr60 - Birr10 )= Birr 50.
205
• The smallest positive ration is +10. This tells
us that the x2 coefficient in the objective
function could be increased by Birr10 to
(Birr50 + Birr10) = Birr 60.
• The smallest negative ratio is -20, which
tells us that the x2 coefficient could be
decreased by Birr20 to (Birr50 - Birr20) =
Birr30. Hence, the range of optimality for the
objective function coefficient of x2 is Birr30
to Birr 60.
206
Thank you!
End of Chapter Two
207