Professional Documents
Culture Documents
Operation Research Note Complele
Operation Research Note Complele
Operation Research Note Complele
The components are the building blocks of an LP model. We can better understand their meaning by
examining a simple LP model as follows.
Example:
Maximize: 4X1 + 7X2 + 5X3 (Profit) ___________________ objective function
Subject to:
2X1 + 3X2 + 6X3 300 labor hrs
5X1 + X2 + 2X3 200 lb raw material A System constraints
3X1 + 5X2 + 2X3 360
Vitamins
Foods A B
Type 1 10 20
Type 2 30 15
Solution:
Step 1. Problem definition
To determine the pounds of the two types of foods to be purchased to make the diet at a minimum
possible cost within the requirements.
Step 2. Variable representation
Let X1 and X2 be the number of pounds of type 1 and type 2 foods to be purchased, respectively.
Step 3. Objective function
Min Z: 5X1 + 8X2
4. Constraints
10X1 + 30X2 140 System constraints
20X1 + 15X2 145
X1, X2 0 non-negativity constraints.
4. A farm consists of 600 hectares of land of which 500 hectares will be planted with corn, barley and wheat,
according to these conditions.
(1) At least half of the planted hectare should be in corn.
(2) No more than 200 hectares should be barley.
(3) The ratio of corn to wheat planted should be 2:1
It costs Birr 20 per hectare to plant corn, Birr 15 per hectare to plant barley and Birr 12 per hectare to plant
wheat.
Required: Formulate this problem as an LP model that will minimize planting cost while achieving the specified
conditions.
Solution:
Step 1. Problem definition
To determine the number of hectares of land to be planted with corn, barley and wheat at a minimum
possible cost meeting the requirements.
Step 2. Decision variable representation
Let X 1 be the number of hectares of land to be planted with corn, X 2 be the number of hectares of land to
be planted with barley, and X3 be the number of hectares of land to be planted with wheat.
Step 3. Objective function
Min Z = 20X1 + 15X2 + 12X3
Step 4. Constraints
X1 + X2 + X3 = 500
X1 250
X2 200
X1 – 2X2 =0
24
22 2X1 + X2 = 22
20
16
3X1 + 3X2 = 39
12
(0, 13) E
8
(5, 8)D 4X1 + 10X2 = 100
4 (9, 4) C
(0, 0) A 4 8 B 12 16 20 24 28
To identify the maximum (minimum) value we use the corner point approach or the extreme point approach.
The corner point/extreme point approach has one theorem: It states that;
For problems that have optimal solutions, a solution will occur at an extreme, or corner point. Thus, if a
problem has a single optimal solution, it will occur at a corner point. If it has multiple optimal solutions,
at least one will occur at a corner point. Consequently, in searching for an optimal solution to a problem,
we need only consider the extreme points because one of those must be optimal. Further, by determining
the value of the objective function at each corner point, we could identify the optimal solution by
selecting the corner point that has the best value (i.e., maximum or minimum, depending on the
optimization case) at the objective function.
Determine the values of the decision variables at each corner point. Sometimes, this can be done by
inspection (observation) and sometimes by simultaneous equation.
Substitute the value of the decision variables at each corner point.
After all corner points have been so evaluated, select the one with the highest or lowest value depending on
the optimization case.
Basic solution
X1 = 9
X2 = 4
Z = Birr 740
After we have got the optimal solution, we have to substitute the value of the decision variables into the
constraints and check whether all the resources available were used or not. If there is an unused resource we can
use it for any other purpose. The amount of unused resources is known as SLACK-the amount of the scarce
resource that is unused by a given solution.
The slack can range from zero, for a case in which all of a particular resource is used, to the original amount of
the resource that was available (i.e., none of it is used).
Computing the amount of slack
Constraint Amount used with X1 Originally Amount of slack
= 9 and X2 = 4 available (available – Used)
Assembly time 4(9) + 10(4) = 76 100 hrs 100 – 76 = 24 hrs
Inspection time 2(9) = 1 (4) = 22 22 hrs 22 – 22 = 0 hr
Storage space 3(9) + 3(4) = 39 39 cubic ft 39 – 39 = 0 cubic ft
Constraints that have no slack are some time referred to as binding constraints since they limit or bind the
solution. In the above case, inspection time and storage space are binding constraints; while assembly time has
slack.
Knowledge of unused capacity can be useful for planning. A manager may be able to use the assembly time for
other products, or, perhaps to schedule equipment maintenance, safety seminars, training sessions or other
activities.
Interpretation: The Company is advised to produce 9 units of type 1 microcomputers and 4 units of type 2
microcomputers per week to maximize his weekly profit to Birr 740; and in do so the company would be left
with unused resource of 24-assembly hrs that can be used for other purposes.
2. Solving the diet problem with graphic approach
Min Z: 5X1 + 8X2
10X1 + 30X2 140
20X1 + 15X2 145
X1, X2 0
16
20X1 + 15X2 = 145
12
(0, 9.67) A
(0,0) C (14,0)
4 8 12 16 20
basic feasible solutions. The simplex method is an algebraic procedure for systematically examining basic
feasible solutions. If an optimal solution exists, the simplex method will identify it.
The simplex procedure for a maximization problem with all constraints consists of the following steps.
Step1. Write the LPM in a standard form: when all of the constraints are written as equalities, the linear
program is said to be in standard form. We convert the LPM in to a standard form by applying (introducing) the
slack variables, S, which carries a subscript that denotes which constraint it applies to. For example, S1 refers to
the amount of slack in the first constraint, S2 to the amount of slack in the second constraint, and so on. When
slack variables are introduced to the constraints, they are no longer inequalities because the slack variable
accounts for any difference between the left and right-hand sides of an expression. Hence, once slack variables
are added to the constraints, they become equalities. Furthermore, every variable in a model must be
represented in the objective function. However, since slack does not provide any real contribution to the
objective, each slack variable is assigned a coefficient of zero in the objective function.
Slack = Requirement – Production and Surplus = Production – Requirement
Taking the microcomputer problem its standard form is as follows:
Max Z = 60X1 + 50X2 max Z= 60X1 + 50X2 + 0S1 + 0S2 + 0S3
Sub. to : 4X1 + 10X2 100 sub. to : 4X1 + 10X2 + S1 = 100
2X1 + X2 22 2X1 + X2 + S2 = 22
3X1 + 3X2 39 3X1 + 3X2 + S3 = 39
X1, X2 0 X1, X2, S1, S2, S3 0
Step2. Develop the initial tableau: the initial tableau always represents the “Do Nothing” strategy, so that the
decision variables are initially non-basic.
a) List the variables across the top of the table and write the objective function coefficient of each variable
just above it.
b) There should be one row in the body of the table for each constraint. List the slack variables in the basis
column, one per raw.
c) In the Cj column, enter the objective function coefficient of zero for each slack variable. (Cj - coefficient
of variable j in the objective function)
Step3. Compute values for row Zj
Step4. Compute values for Cj – Zj row
Sol/n Cj 60 50 0 0 0
RHSV Øj = bj/xj (aij)
basis X1 X2 S1 S2 S3
S1 0 4 10 1 0 0 100 100/4 = 25 Leaving
S2 0 2* 1 0 1 0 22 22/2 = 11 variable
S3 0 3 3 0 0 1 39 39/3 = 13 (Pivot row)
Zj 0 0 0 0 0 0
Cj-Zj 60 50 0 0 0 0
Sol/n Cj 60 50 0 0 0
RHSV Øj = bj/xj (aij)
basis X1 X2 S1 S2 S3
S1 0 0 0 1 6 -16/3 24
X1 60 1 0 0 1 -1/3 9
X2 50 0 1 0 -1 2/3 4
Zj 60 50 0 10 40/3 740
Cj-Zj 0 0 0 -10 -40/3
Since the values of Cj-Zj row are less than or equal to zero (≤ 0), the solution is optimum.
Optimal solution: X1 = 9
X2 = 4
S1 = 24 hrs
Z = Birr 740
Interpretation: The Company is advised to produce 24 units of push type mowers and 42 units of self-propelled
mowers so as to realize a profit of Birr 4020. In doing so the company would be left with
unused resource of 9 engines which can be used for other purposes.
6. Compute the Cj – Zj row
7. If all Cj – Zj values are zeros and negatives you have reached optimality.
8. If this is not the case (step 6), rehear step 2to5 until you get optimal solution.
“A simplex solution is a maximization problem is optimal if the Cj – Zj row consists entirely of zeros and
negative numbers (i.e., there are no positive values in the bottom row).”
Note: The variables in solution all have unit vectors in their respective columns for the constraint equations.
Further, note that a zero appears in row c - z in every column whose variable is in solution, indicating that its
maximum contribution to the objective function has been realized.
Example 2
A manufacturer of lawn and garden equipment makes two basic types of lawn movers: a push-type and a self-
propelled model. The push-type requires 9 minutes to assemble and 2 minutes to package; the self-propelled
mover requires 12 minutes to assemble and 6 minutes to package. Each type has an engine. The company has
12 hrs of assembly time available, 75 engines, and 5hrs of packing time. Profits are Birr 70 for the self-
propelled models and Birr 45 for the push-type mover per unit.
Required:
1. Formulate the linear programming models for this problem.
2. Determined how many mower of each type to make in order to maximize the total profit (use the
simplex procedure).
Solution:
1. a) To determine how many units of each types of mowers to produce so as to maximize profit.
b) Let X1 - be push type mower.
X2 - be self-propelled mower.
Entering variable
b. Develop the subsequent tableaus
- Identify the entering variable
Sol/n Cj 45 70 0 0 0
RHSV Øj = bj/xj (aij)
basis X1 X2 S1 S2 S3
Leaving variable
S1 0 5 0 1 -2 0 120 120/5 = 24
X2 70 1/3 1 0 1/6 0 50 50/. 333 =150
S3 0 2/3 1 0 -1/6 1 25 25/.666 = 75
Zj 70/3 70 0 70/6 0 3500
Cj-Zj 65/3 0 0 -70/6 0
Entering
variable
Sol/n Cj 45 70 0 0 0
RHSV Øj = bj/xj (aij)
basis X1 X2 S1 S2 S3
X1 45 1 0 1/5 -2/5 0 24
X2 70 0 1 -1/15 3/10 0 42
S3 0 0 0 -2/15 1/10 1 9
Zj 45 70 13/3 3 0 4020
Cj-Zj 0 0 -13/3 -3 0 Since the values of Cj-Zj
row are less than or equal
to zero (≤ 0), the solution is optimum.
Optimal solutions: X1 = 24 units
X2 = 42 units
S3 = 9 engines
Z = Birr 4020
Interpretation: The Company is advised to produce 24 units of push type movers and 42 units of self-propelled
movers so as to realize a profit of Birr 4020. In doing so the company would be left with
unused resource of 9 engines which can be used for other purposes.
4. Self Exercise
1. A firm produces products A, B, and C, each of which passes through assembly and inspection departments. The
number of person hours required by a unit of each product in each department is given in the following table.
Person hours per unit of product
Product A Product B Product C
Assembly 2 4 2
Inspection 3 2 1
During a given week, the assembly and inspection departments have available at most 1500 and 1200 person-
hours, respectively. If the unit profits for products A, B, and C are Birr 50, Birr 40, and Birr 60, respectively,
determines the number of units of each product that should be produced in order to maximize the total profit
and satisfy the constraints of the problem.
2. The state chairman of a political party must allocate an advertising budget of birr 3,000,000 among three media:
radio, television, and newspapers. The expected number of votes gained per birr spent on each advertising
medium is given below.
Expected votes per Birr spent
Radi Television Newspapers
o
3 5 2
Since these data are valid within the limited amounts spent on each medium, the chairman has imposed the
following restrictions:
Required: How much should be spent on each medium in order to maximize the expected number of votes
gained?
The solution to the primal problem contains the solution to the dual problem, and vice versa. Consequently, once either
the primal or the dual problem has been solved, the solution to the other is also apparent. You might wonder, then, why
we even bother to discuss duality. The answer is mainly in the economic interpretation of the results of the dual solution.
Analysis of the dual can enable a manager to evaluate the potential impact of a new product, and it can be used to
determine the marginal values of resources (i.e., constraints). Relative to a new product, a manager would want to know
what impact adding a new product would have on the solution quantities and the profit; relative to resources, a manager
can refer to a dual solution to determine how much profit one unit of each resource is equivalent to. This can help the
manager to decide which of several alternative uses of resources is most profitable.
Minimize
40 x 1 + 44 x 2 + 48 x 3
Subject to
1 x1 + 2 x 2 + 3 x 3 ≥ 20
Subject to
4 x1 + 10 x 2 ≤ 100
2 x1 + 1 x 1 ≤ 22
3 x 1 + 3 x 2 ≤ 39
To formulate the dual, we can follow this sequence:
1. For the objective function,
a. Because the primal is maximization, the dual will be a minimization.
b. The right hand side values for the constraints become the coefficients of the objective function of the
dual.
Thus, the objective function of the dual is
Minimize
100 y + 22 y + 39 y
1 2 3
The variable names are y’s for the dual, simply to differentiate them from the primal variables. There will be
one dual variable for each constraint.
2. For the constraints,
a. There will be one dual constraint for each primal decision variable. Hence, because the primal has two
such variables, the dual will have two constraints.
b. The right-hand side values of the dual constraints will equal the primal’s objective function coefficients
taken in order. That is, the right hand side value of the first dual constraint will equal the first coefficient
1
4 y 1 + 2 y 2 + 3 y 3 ≥ 60
2
10 y + 1 y + 3 y ≥ 50
1 2 3
Putting these two parts together, the dual of the microcomputer problem is:
Minimize
100 y 1 + 22 y 2 + 39 y 3
Subject to
1
4 y 1 + 2 y 2 + 3 y 3 ≥ 60
2
10 y 1 + 1 y 2 + 3 y 3 ≥ 50 y1 , y2 , y3 ≥ 0
2.8.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 constraint by -1. For example,
-1(2 x1 + 3 x 2 ≥ 18) is −2x 1 − 3 x 2 ≤ −18
If a constraint is equality, it must be replaced with two constraints, one with a ≥ sign. For instance,
4 x1 + 5 x 2 = 20
Will be replaced by
4 x1 + 5 x 2 ≤ 20
4 x1 + 5 x 2 ≥ 20
Then one of these must be multiplied by -1, depending on whether the primal is a max or a min problem.
Example 7
Formulate the dual of this problem:
Maximize
50 x 1 + 80 x 2
Subject to
3 x 1 + 5 x 2 ≤ 45
4 x1 + 2 x 2 ≥ 16
6 x 1 + 6 x2 = 30
Solution
Since this is a maximization problem, put constraints into the form.
The first constraint is already in that form. The second constraint can be converted to that form by multiplying both sides
by -1. Thus:
4 x + 2 x ≥ 16
-1( 1 2 ) becomes 1−4 x − 2x ≤ −16
2
The third constraint is equality, and must be restated as two separate constraints. Thus, it becomes:
6 x 1 + 6 x2 ≤ 30 and 6 x 1 + 6 x2 ≥ 30
The second of these two must now be multiplied by -1, which yields:
Minimize
45 y 1 − 16 y 2 + 30 y 3 − 30 y 4
Subject t
3 y 1 − 4 y 2 + 6 y 3 − 6 y 4 ≥ 50
5 y 1 − 2 y 2 + 6 y 3 − 6 y 4 ≥ 80
y1 , y2 , y3 , y4 ≥ 0
2.8.3 Comparison of the Primal and Dual Simplex Solutions
The flip-flopping of values between the primal and the dual carries over to their final simplex tableaus. Table 6-6 contains
the final tableau for the dual and Table 6-7 contains the final tableau for the primal.
x2 50
2 4
0 1 0 -1 3
40
Z 60 50 0 10 3
740
C-Z 40
0 0 0 -10 - 3
S y
Now, in the primal solution, 1 equals 24. In the dual, the 24 appears in the 1 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. Therefore, in the primal solution we have
x1 = 9
x S S
and 2 = 4; in the dual, 9 appears under 1 in the bottom row, and 4 appears under 2 . Thus, we can read the solution to
the primal problem from the bottom row of the dual: In the first three columns of the dual, which equate to slack variables
of the primal, we can see that the first slack equals 24 and the other two are zero. Under the dual’s slack columns, we can
read the values of the primal are decision variables. In essence, then, the variables of the primal problem become the
constraints of the dual problem, and vice versa. The way in which primal and dual values are cross referenced is
summarized in Table 6-8.
Table 6-8 Cross Referencing Primal and Dual Values in the Final Tableaus
Suppose the microcomputer firm has been approached by a representative of a department store chain that wants the firm
to make computers that will be sold under the store’s brand name. The microcomputer company has only a limited
capacity for producing computers, and therefore, must, decide whether to produce its own computers or produce
computers for the department store.
For convenience, the original problem is repeated here:
x 1 = number of Model I’s
x 2 = number of Model II’s
Maximize
60 x 1 + 50 x 2
Subject to
Assembly time
4 x 1 + 10 x 2 ≤ 100
Inspection time
2 x 1 + 1 x 2 ≤ 22
Storage space
3 x + 3 x ≤ 39
1 2
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 required
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:
from that switch must be at least equal to the profit foregone on the microcomputer models. The variables 1 2
y , y , and y
3
are the managerial values of scarce resources 1 (assembly time), 2(inspection time), and 3 (storage space). Solving the
dual will tell us the imputed values of the resources given our optimal solution.
Naturally, the department store would want to minimize the use of the scarce resources, because the computer firm almost
certainly would base its charges on the amount of resources required. Consequently, the objective function for the dual
problem focuses on minimizing the use of the scarce resources. Thus:
Minimize
100 y + 22 y + 39 y
1 2 3
Looking at the optimal solution to the dual of the microcomputer problem (see Table 6-8), we can see the marginal values
y
of 2
and y 3 in the Quantity column, but not the value of y 1 . This is because the optimal solution to the primal did not
Finally, the optimal dual solution always yields the same value of the objective function as the primal optimal. In this
case, it is 740. The interpretation is that the imputed value of the resources that are required for the optimal solution equals
the amount of profit that the optimal solution would produce.
2.9. Sensitivity Analysis
Sensitivity analysis, or post optimality analysis, as it is also referred to, carries the LP analysis beyond the determination
of the optimal solution. It begins with the final simplex tableau. Its purpose is to explore how changes in any of the
parameters of a problem, such as the coefficients of the constraints, coefficients of the objective function, or the right-
hand side values, would affect the solution. This kind of analysis can be quite beneficial to a decision maker in a number
of ways.
In preceding units, the formulation and solution of linear programming problems treated the parameters of a problem as if
they were known and fixed. The goal of analysis was to determine the optimal value of the decision variables in the
context. Unfortunately, in practice, the parameters of a problem often are no more than educated guesses. Consequently,
the optimal solution may or may not be optimal, depending on how sensitive that solution is to alternate values of
parameters. Hence, a decision maker usually would want to perform sensitivity analysis before implementing a solution. If
the additional analysis satisfies the decision maker that the solution is reasonable, he or she can proceed with greater
Example:
A firm that assembles computers and component equipments is about to start production of two new micro-computers.
Each type of microcomputer will require assembly time, inspection time, and storage space. The amount of each of these
resources that can be devoted to the production of micro-computers is limited. The manager of the firm would like to
determine the quantity of each micro computer to produce in order to maximize the profit generated by sales of these
micro computers.
In order to develop a suitable model of the problem, the manager has met with design and manufacturing personnel. As a
result of these meetings, the manager has obtained the following information:
Type -1 Type-2
Profit per unit $60 $50
Assembly time per unit 4 hrs. 10 hrs.
Inspection time per unit 2 hrs. 1 hr.
Storage space per unit 3 cubic ft. 3 cubic ft.
The manager has also acquired information in the availability of company resources. These (weekly) amounts are:
Resource Resource available
Assembly time 100 hours
Inspection time 22 hours
Storage space 39 cubic feet.
The manager also met with the firms marketing manager and learned that demand for the micro-computers was such that
whatever combination of these two types of micro-computers is produced all of the output can be sold.
The model and for the above mentioned micro computer problem is indicated below.
Maximize
60 x 1 + 50 x 2
Inspection time
2 x1 + 1 x 2 ≤ 22
Storage space
3 x 1 + 3 x 2 ≤ 39
All var. P 0
2.9.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. These are the values in the Z row in the slack columns. The final tableau for the microcomputer problem
is shown in Table 6-1.
C 60 50 0 0 0
Basis x 1 x S2 S
1 S 2
Quantity
3
16
S1 0 0 0 1 6 - 3
24
x1 60
1
9
1 0 0 1 - 3
x2 50
2 4
0 1 0 -1 3
40
Z 60 50 0 10 3
740
C-Z 40
0 0 0 -10 - 3
Negatives of
shadow prices
Table 6-1 Shadow Prices in the microcomputer final tableau
40
The shadow prices are 0, 10, and 3 . Note that the negatives of the shadow prices appear in the bottom row of the table.
Because they differ only in sign, the values in the bottom row are sometimes also referred to as shadow prices.
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 value of the objective function. More specifically, a shadow price reveals the amount by which the value of
the objective function would increase if the level of the constraint was increased by one unit. Table 6-1 reveals that the
shadow prices are $0 for
S1 (i.e., the first constraint, assembly time), $10 for S2 (i.e., the second constraint, inspection
40 S
time) and $ 3 for 3 (i.e., the third constraint, storage space). This tells us that if the amount of assembly time was
increased by one hour, there would be no effect on profit; if inspection time was increased by one hour, the effect would
40
be to increase profit by $10; and if storage space was increased by one cubic foot, profit would increase by $ 3 , or
$13.33. The reverse also holds. That is, by using the negative sign of each shadow price, we can determine how much a
one-unit decrease in the amount of each constraint would decrease profit. Hence, a one-unit decrease in assembly time
would have no effect because its shadow price is $0. However, a one-unit decrease in inspection time would decrease
profit by $10, and a one unit decrease in storage space would decrease profit by $13.33. In effect, shadow prices are a
manager’s “window” for gauging the impact that changes have on the value of the objective function.
What the shadow prices do not tell us is the extent to which the level of a scarce resource can be changed and still have
the same impact per unit. For example, we now know that a one unit increase in inspection time will increase profit by
$10. Because of linearity, a two unit increase in inspection time will mean an increase of $20, and a ten unit increase in
inspection time will mean an increase of 10($10), or $100, in profit. However, at some point, the ability to use additional
Conversely, a similar situation can arise when considering the potential impact of a decrease in the RHS of a constraint.
For instance, the assembly constraint has a shadow price of $0, which indicates that a one unit decrease in the amount of
assembly time available will have no impact on profit. However, we know that some assembly time is required to produce
the computers, which means that it cannot be decreased indefinitely. At some point, fewer assembly hours will restrict
output. Therefore, we need to determine the range over which we can change the right hand side quantities and still have
the same shadow price. This is called the range of feasibility, or the right hand side range.
The key to computing the range of feasibility for the constraints lies in the final simplex tableau. More specifically, the
values in the body of the final tableau in each slack column can be used to compute the range of feasibility for the
corresponding constraint. The final tableau for the microcomputer problem is repeated in Table 6-2. The slack variable
columns of the table indicate the values needed to compute the ranges of feasibility.
For each constraint, the entries in the associated slack column must be divided into the values in the Quantity column.
Because there are three entries in each column, there will be three ratios after the division. For example, for the Storage
column values, the resulting ratios are:
S3 Quantity S
Quantity/ 3
24
−16 = −4 .5
16
- 3
24
3
1
9 9
-
−1 = −27
3
3
2 4 4
3
−2 = +6
3
Assembly
Inspectio
Storage
n
C 60 50 0 0 0
Basis x1 x2 S1 S2 Quantity
S3
S1 0 0 0 1 6 - 24
x1 60
16
3 9
x2 1 0 0 1 - 4
50 1
3
0 1 0 -1
2
3
Z 60 50 0 10 740
40
C-Z 3
0 0 0 -10 -
Perhaps it seems strange that a positive ratio relates to a decrease and a negative ratio to an increase. However, the
positive ratio indicates the amount that must be added to the lower limit to achieve the current constraint level (i.e., how
much the current level is above the lower limit). Thus, knowing the current level, we must subtract that amount to obtain
the lower limit. Thus, for the storage constraint, the current level is 39. Thus we have:
Similarly, the smallest negative ratio reveals how much the current level is below the upper limit, so that amount must be
added to the current level to determine the upper limit. For the storage constraint, that is:
The same general rule always applies when computing the upper and lower limits on the range of feasibility for a
maximization problem:
Allowable decrease: The smallest positive ratio.
Allowable increase: The negative ratio closest to zero.
For a minimization problem, the rules are reversed: The allowable decrease is the negative ratio closest to zero and the
allowable increase is the smallest positive ratio.
Example 1
Determine the range of feasibility for each of the constraints in the microcomputer problem.
Solution
Table 6-3 illustrates the computations and resulting ranges. It is important to recognize when determining ranges of
feasibility that each range is determined under the assumption that the levels of the other constraints will not change. If
multiple changes are contemplated, the entire problem will have to be reworked using the revised values.
You are probably wondering why these ratios tell us how much latitude there is for feasible changes in a constraint level.
Recall that the values in the body of any simplex tableau are substitution rates. They indicate how much, and in what
direction, a one unit change in a column variable will cause the current quantity value to change. For example, in the final
S
tableau, the values in the 3 column and the Quantity column are:
Basis S3 Quantity
16
S1 - 3 24
x1 1 9
- 3
4
2
3
S
The values in the 3 (storage) column tell us the following: A one unit increase in storage space will:
1. Cause S1 (assembly slack) to decrease by 3 = 5.33 units.
16
2. Cause
x 1 to decrease by 1 3 = .33 units.
x 2
3. Cause 2 to increase by 3 = .67 units.
40
4. Cause profit to increase by 3 = $13.33.
Because the quantity column entries indicate how much of S1 ,
x 1 and x 2 are currently in solution, dividing each of those
Inspectio
Storage
n
9 9 9 9
=undef .
1
0 1 - 3 = +9 = −27
2 4 0 1 −1
3
0 -1 3 4 4 4
40
740
= undef . = −4 = +6
0 10 3 0 −1 2
40 3
0 -10 - 3
Original amount 100 hours 22 hours 39 cubic feet
Upper limit None 22 + 4 = 26 39 + 4.5 = 43.5
Range
Lower limit 100 – 24 = 76 22 – 4 = 18 39 – 6 = 33
Table 6-3 Determining the Range of Feasibility of the Microcomputer Problem
When a decision maker becomes involved with changing constraint levels, that person wants to know not only the range
over which the level can be changed, but also what impact a contemplated change would have on the optimal solution.
Fortunately, when the proposed change is within the range of feasibility, very little effort is required to obtain the resulting
optimal solution. Again, the key values are the substitution rates for the constraint in question, as the next two examples
illustrate.
Example 2
The manager in the microcomputer problem is contemplating one of two possible changes in the level of the storage
constraint. One change would be an increase of 3 cubic feet in its level and the other would be an increase of 8 cubic feet
in its level. Determine the revised optimal solution for each possible change.
Solution
The effect of an increase of three cubic feet can be computed in this way:
(Partial final tableau)
Basis S3 Quantity
Current Revised
S1 solution Change solution
16
- 3 24
x1 24 16
( S1 )
+ 3(- 3 ) = 8
1
- 3
9
x2 9
+ 3(-
1
) = 8 x1 )
2 4
3 (
3
4 = 4
Z 40
740 + 3(
2
3 ) ( 2)
x
3
40
740 + 3( 3 ) = 780 (Profit)
For an increase in storage space of 8 cubic feet, since the upper
limit of the feasible range for storage is 4.5 cubic feet (see Table 6-3), the amount of increase above 4.5 cubic feet will be
excess, or slack. Moreover, the new optimal solution will occur at the point where the constraint level equals its upper
limit. Therefore, the additional amount needed to achieve the upper limit is used to compute the revised solution. Thus:
Current Revised
Basis Solution Change solution
16
S1 24 + 4.5(- 3 ) = 0
x1 9 1 = 7.5
+4.5 (- 3 )
x2 4 2 = 7
+ 4.5( 3 )
40
Z 740 + 4.5( 3 ) = 800
S S
Note, however, that beyond the upper limit, 3 would come into solution, replacing 1 , which would no longer be slack.
The amount of slack would be 8 – 4.5 = 3.5 cubic feet. Consequently, the revised solution would be:
S3 = 3.5, x 1 = 7.5, x 2 = 7
Profit = 800
Example 3
Suppose the manager in the microcomputer problem is contemplating a decrease in storage space due to an emergency
situation. There are two possibilities being considered: a decrease of 6 cubic feet and a decrease of 9 cubic feet. Recall
that the limit on a decrease is 6 cubic feet (see Table 6-3). Hence, the computation of the impact of a decrease in 6 cubic
feet to storage space is relatively simple:
Current Revised
Basis Solution Change solution
16
S1 24 -6(- 3 ) = 56
x1 9 1 = 11
-6(- 3 )
x2 4 2 = 0
-6( 3 )
Given the final tableau in Table 6-4, determine the range over which the objective function coefficient of variable
x3
could change without changing the optimal solution.
x1 120
0 0 .06 .14 -.08 0 16.8
1 1 1.1 -.1 .2 0 8
x2 105 0 0 .88 -.28 .16 1 16.4
S3 0
(Note: If there is no positive ratio, there is no upper limit on that variable’s objective function coefficient.)
In order to illustrate concept of the changes in the objective function coefficients, we return to the microcomputer problem
rather than continuing with the previous example.
C 60 50 0 0 0
Basis x1 x2 S1 S2 S3 Quantity
16
S1 0 0 0 1 6 - 3
24
x1 60
1
9
1 0 0 1 - 3
x2 2 4
50 0 1 0 -1 3
40
Z 60 50 0 10 3
740
C-Z 40
0 0 0 -10 - 3
For
x 1 we find:
Column x1 x2 S1 S2 S3
−40
C−Z value 0 0 0 −10
=0 = undefined = undefined = −10 3
−1 = +40
x 1 value 1 0 0 1 3
x
The smallest positive ratio is +40. Therefore, the coefficient of 1 can be increased by $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
x
$60 + $40 = $100. Also, the smallest negative ratio is -10; therefore, the 1 coefficient can be decreased by as much as
$10 from its current value, making the lower end of the range equal to $60 - $10 = $50.
For
x 2 we have:
Column x1 x2 S1 S2 S3
−40
C Z value 0 0 0 −10
= undefined =0 = undefined = +10 3
= −20
x 2 value 0 1 0 −1 2
3
x
The smallest positive ratio is +10. This tells us that the 2 coefficient in the objective function could be increased by $10
to $50 + $10 = $60. The smallest negative ratio is -20, which tells us the
x 2 coefficient could be decreased by $20 to $50 -
$20 = $30. Hence, the range of optimality for the objective function coefficient of
x 2 is $30 to $60.
2.9.3 Adding another Variable
8 y 1 + 4 y 2 + 5 y 3 ≥ 70
In order to determine if this new variable would come into the optimal (primal) solution, we can substitute the dual
y = 10 , and y 3 = 40 3
solution of y = 0 , 2 (i.e., the shadow prices, or marginal values of the resources) into this constraint to
40
see if it would be satisfied. Thus, we find, 8(0) + 4(10) + 5( 3 ) = 106.67. Because this amount is greater than the new
x
dual constraint, the original solution remains optimal. Hence, the new variable ( 3 ) would not come into solution.
Conversely, if the dual constraint has not been satisfied, the new variable would have come into solution. In this instance,
the marginal value of scarce resources that would be required for the new model exceeds the marginal contribution to
profit that the new model would provide. That is, $106.67 > $70.
The value of this approach is that it is not necessary to rework the entire problem in order to test the potential impact that
adding a new decision variable would have on the optimal solution.