Beruflich Dokumente
Kultur Dokumente
2
= -(25 + ) + c
T
B
B
-1
a
2
= (-25 - ) + [0 0 30]
= (-25 - ) + [30 0 0] = 5 - .
Notice that a
2
is the column of the matrix A corresponding to x
2
. We need c
2
0 for
the current basis to remain optimal (condition (1)). Hence, the range of values of
for which the current basis remains optimal is 5. Notice that the optimal solution
and the optimal objective function value do not change when is in this range. Also,
recall that the optimal solution was to farm corn in all the 7 acres available (x
1
= 7, x
2
= 0 in the optimal solution). With 5, the revenue per acre of wheat is 30 (which
is the value for corn). At the same time, each acre of wheat requires more hours of
labor (10) than an acre of corn (4). There is no minimum level of wheat production
required either. Hence, it makes sense not to farm any wheat. If the revenue per acre
of wheat becomes higher than that of corn (> 30), one should farm some acres of
wheat in order to make the maximum revenue. This value, 5, is called the reduced
cost of the non-basic variable x
2
. The reduced cost of a non-basic variable (in the
optimal tableau) of a max-LP is defined as the maximum amount by which its
objective function coefficient can increase while the current basis still remains
optimal. Hence, if the objective function coefficient of wheat changes to 32 (i.e., =
7), the current basis is no longer optimal in fact, it is sub-optimal in the sense that
the value of x
2
can be increased from 0 to some positive value and the value of z* can
be increased. In this case, in order to find the new optimal tableau, one will have to
perform one more simplex pivot (with x
2
as the entering variable).
2.2 Changing c
j
when x
j
is basic
Here, x
j
is one of the variables in x
B
. Consider changing the objective function
coefficient of x
1
from 30 to 30 + . c
T
B
also changes here c
T
B
= [0 0 30 + ]. Since
c
B
changes, all the entries in Row-0 corresponding to x
N
(i.e., all the non-basic
variables) could possibly change. The new entries in Row-0 under x
N
are given by
T
N
= -c
T
N
+ c
T
B
B
-1
N = [-25 0 M] + [0 0 30 + ]
= [-25 0 M] + [30 + 30 + 0] = [5 + 30 + M].
Using the condition (1) again, the current basis remains optimal if all entries in cN
are 0, i.e., if 5 + 0 and 30 + 0. Hence, the range of values of for which the
1 0 -1 1
-4 1 0 10
1 0 0 0
1
10
0
1 0 -1 1 1 0
-4 1 0 10 0 0
1 0 0 0 0 1
current basis remains optimal is 5. For this range, the revenue per acre of corn
will be at least as big as the value for wheat (25), and hence one will not grow any
wheat. If = 8 for example, then each acre of wheat will yield a higher revenue than
an acre of corn (25 and 22 respectively). The current basis becomes sub-optimal in
this case. In order to find the new optimal solution, one will have to pivot x
2
into the
basis (perform one more simplex pivot).
2.3 Changing the right-hand-side (bi) of the i-th constraint
Consider changing b
i
to b
i
+ . From Equation (6), we can see that the entries in the
rhs (last) column will change. For example, consider changing the rhs of acres
constraint to 7 + (i = 1, i.e., the first constraint here). This change models the
situation where Farmer Jones has some extra land to farm.
The new rhs vector can be written as = . Hence,
B
-1
= B
-1
b +
Using the condition (2), in order for the current basis to still remain optimal, we need
all elements of x
B
0. In other words, 4 + 0, 12 4 0, and 7+ 0, which
give 4, 12/4 = 3, 7, or 4 3. The current basis remains optimal as
long as is in this range. Notice that, when > 3, Jones will have more than 10 acres
to farm, but could only use 10 due to the limit on the labor hours (why?). Thus the
optimal solution will change when = 4, for instance. Similarly, when = 4.5, the
minimum level of corn cannot be satisfied (as Jones will have only 2.5 acres), and
hence the current basis will no longer be optimal.
For 4 3, the new optimal objective function is given by (using the expression
for B
1
b from Equation (7))
* = c
T
B
B
= c
T
B
B
-1
b = [0 0 30] = 210 + 30
Hence the shadow price of the acres constraint is 30. Recall that the shadow price
of a constraint is defined as the improvement (increase for a max-LP) in the objective
function value for a unit increase the rhs value of the constraint.
2.4 Changing the column (both c
j
and a
j
) when x
j
is non-basic
The general method outlined above can also be used to calculate the new optimal
tableau (and optimal basis) when more than one parameter is changed. For example,
7 + 7
40 = 40 + 0
3 3 0
1 0 -1 4 4 +
-4 1 0 0 = 12 + -4 = 12 - 4 =
B
. (7)
1 0 0 0 7 7 +
4 +
12 - 4
7 +
consider changing the objective function coefficient of x
2
(which is non-basic) from
25 to 35, and at the same time, changing its coefficient in the labor hours constraint
from 10 to 8 (i.e., the number of labor hours required for an acre of wheat is now 8).
Using the formulae given in Equation (6), the new entries in the column of x
2
are
given by
Notice that we used the result for c
T
B
B
1
= [30 0 0], which we already saw in section
2.1. Since the modified entry in the Row-0 under x
2
is no longer non-negative (it is
5), the current basis is no longer optimal. Intuitively, it required less number of labor
hours and generates more revenue to farm an acre of wheat after these changes. In
order to find the new optimal tableau, the column of x
2
in the original optimal tableau
should be replaced with the one derived above, and one more simplex pivot should be
performed. The new optimal solution thus obtained is e
3
= 1, x
2
= 4, x
1
= 3, with z* =
225.
1
-35 + [30 0 0] 0 -5
-c
2
+ c
T
B
B
-1
a
2
0
= =
1
B
-1
a
2
1 0 -1 1 4
-4 1 0 8 1
1 0 0 0
Duality
To every linear program there is a dual linear program with which it is intimately connected. We
rst state this duality for the standard programs. As in Section 1, c and x are n-vectors, b and y
are m-vectors, and A is an m n matrix. We assume m 1 and n 1.
Denition. The dual of the standard maximum problem.
*maximize c
T
x
subject to the constraints Ax b and x 0
is dened to be the standard minimum problem
*minimize y
T
b
subject to the constraints y
T
A c
T
and y 0
Let us reconsider the numerical example of the previous section: Find x
1
and x
2
to maximize x
1
+
x
2
subject to the constraints x
1
0, x
2
0, and
x
1
+ 2x
2
4
4x
1
+ 2x
2
12
x
1
+ x
2
1.
The dual of this standard maximum problem is therefore the standard minimum problem: Find
y
1
, y
2
, and y
3
to minimize 4y
1
+ 12y
2
+y
3
subject to the constraints y
1
0, y
2
0, y
3
0, and
y
1
+ 4y
2
y
3
1
2y
1
+ 2y
2
+ y
1
If the standard minimum problem (2) is transformed into a standard maximum problem (by
multiplying A, b, and c by 1 ), its dual by the denition above is a standard minimum problem
which, when transformed to a standard maximum problem (again by changing the signs of all
coecients) becomes exactly (1). Therefore, the dual of the standard minimum problem (2) is
the standard maximum problem (1). The problems (1) and (2) are said to be duals.
Theorem 1. If x is feasible for the standard maximum problem (1) and if y is feasible for its dual
(2), then
c
T
x y
T
b.
Proof.
c
T
x y
T
Ax y
T
The rst inequality follows from x 0 and c
T
y
T
A. The second inequality follows from y 0
and Ax b.
Corollary 1. If a standard problem and its dual are both feasible, then both are bounded feasible.
Proof. If y is feasible for the minimum problem, then (7) shows that y
T
b is an upper bound for
the values of c
T
x for x feasible for the maximum problem. Similarly for the converse.
Corollary 2. If there exists feasible x and y for a standard maximum problem (1) and its dual
(2) such that c
T
x = y
T
b, then both are optimal for their respective problems.
Proof. If x is any feasible vector for (1), then c
T
x y
T
b = cTx, which shows that x
is optimal. A symmetric argument works for y.
The following fundamental theorem completes the relationship between a standard problem and
its dual. It states that the hypothesis of Corollary 2 is always satised if one of the problems is
bounded feasible. The proof of this theorem is not as easy as the previous theorem and its
corollaries. We postpone the proof until later when we give a constructive proof via the simplex
method. (The simplex method is an algorithmic method for solving linear programming
problems.) We shall also see later that this theorem contains the Minimax Theorem for nite
games of Game Theory.
The Duality Theorem.
If a standard linear programming is bounded feasible, then so is its dual, their values are equal,
and there exists optimal vector for both problems.
Interpretation of the Dual.
In addition to the help it provides in finding a solution, the dual problem offers advantages in the
interpretation of the original, primal problem.
Example:
Original Problem Dual
Minimize: z = 8.5 x
1
+4x
2
Maximize: z = 8y
1
+ 12y
2
+ 9y
3
Constraints: 2x
1
+ x
2
8 Constraints: 2y
1
+ 6y
2
+ y
3
8.5
6x
1
+ x
2
12 y
1
+ y
2
+ 3y
3
4
x
1
+ 3x
2
9 y
1
+ y
2
0
x
1
, x
2
0
Standard form
8y
1
+ 12y
2
+ 9y
3
+ 0s
1
+0s
2
2y
1
+ 6y
2
+ y
3
+ 1s
1
+ 0s
2
= 8.5
y
1
+ y
2
+3y
3
+ 0s
1
+ 1s
2
= 4
Matrix form
2 6 1 1 0
y
1
+ y
2
+ y
3
+ s
1
+ s
2
= P
0
1 1 3 0 1