

























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


























































4x1 + 2x 2 = 12
-x 1 + x 2 = 1
x 1 + 2x 2 = 4
optimal point
x (^2)
x Figure 1.
constraint set is bounded. Occasionally, the maximum occurs along an entire edge or face of the constraint set, but then the maximum occurs at a corner point as well.
Not all linear programming problems are so easily solved. There may be many vari- ables and many constraints. Some variables may be constrained to be nonnegative and others unconstrained. Some of the main constraints may be equalities and others inequal- ities. However, two classes of problems, called here the standard maximum problem and the standard minimum problem, play a special role. In these problems, all variables are constrained to be nonnegative, and all main constraints are inequalities.
We are given an m -vector, b = (b 1 ,... , bm)T, an n -vector, c = (c 1 ,... , cn)T, and an m × n matrix,
a 11 a 12 · · · a 1 n a 21 a 22 · · · a 2 n .. .
am 1 am 2 · · · amn
of real numbers.
The Standard Maximum Problem: Find an n -vector, x = (x 1 ,... , xn)T, to maximize cTx = c 1 x 1 + · · · + cnxn
subject to the constraints
a 11 x 1 + a 12 x 2 + · · · + a 1 nxn ≤ b 1 a 21 x 1 + a 22 x 2 + · · · + a 2 nxn ≤ b 2 .. . am 1 x 1 + am 2 x 2 + · · · + amnxn ≤ bm
(or Ax ≤ b)
and x 1 ≥ 0 , x 2 ≥ 0 ,... , xn ≥ 0 (or x ≥ 0 ).
The Standard Minimum Problem: Find an m -vector, y = (y 1 ,... , ym ), to minimize yTb = y 1 b 1 + · · · + ymbm
subject to the constraints
y 1 a 11 + y 2 a 21 + · · · + ymam 1 ≥ c 1 y 1 a 12 + y 2 a 22 + · · · + ymam 2 ≥ c 2 .. . y 1 a 1 n + y 2 a 2 n + · · · + ymamn ≥ cn
(or yTA ≥ cT)
and y 1 ≥ 0 , y 2 ≥ 0 ,... , ym ≥ 0 (or y ≥ 0 ).
Note that the main constraints are written as ≤ for the standard maximum problem and ≥ for the standard minimum problem. The introductory example is a standard maximum problem.
We now present examples of four general linear programming problems. Each of these problems has been extensively studied.
Example 1. The Diet Problem. There are m different types of food, F 1 ,... , Fm , that supply varying quantities of the n nutrients, N 1 ,... , Nn , that are essential to good health. Let cj be the minimum daily requirement of nutrient, Nj. Let bi be the price per unit of food, Fi. Let aij be the amount of nutrient Nj contained in one unit of food Fi. The problem is to supply the required nutrients at minimum cost.
Let yi be the number of units of food Fi to be purchased per day. The cost per day of such a diet is b 1 y 1 + b 2 y 2 + · · · + bmym. (1)
The amount of nutrient Nj contained in this diet is
a 1 j y 1 + a 2 j y 2 + · · · + amj ym
for j = 1,... , n. We do not consider such a diet unless all the minimum daily requirements are met, that is, unless
a 1 j y 1 + a 2 j y 2 + · · · + amj ym ≥ cj for j = 1,... , n. (2)
Of course, we cannot purchase a negative amount of food, so we automatically have the constraints y 1 ≥ 0 , y 2 ≥ 0 ,... , ym ≥ 0. (3)
Our problem is: minimize (1) subject to (2) and (3). This is exactly the standard minimum problem.
of resource Ri used in operating activity Aj at unit intensity. Let cj be the net value to the company of operating activity Aj at unit intensity. The problem is to choose the intensities which the various activities are to be operated to maximize the value of the output to the company subject to the given resources.
Let xj be the intensity at which Aj is to be operated. The value of such an activity allocation is (^) n ∑
j=
cj xj. (8)
The amount of resource Ri used in this activity allocation must be no greater than the supply, bi ; that is, (^) ∑
j=
aij xj ≤ bi for i = 1,... , m. (9)
It is assumed that we cannot operate an activity at negative intensity; that is,
x 1 ≥ 0 , x 2 ≥ 0 ,... , xn ≥ 0. (10)
Our problem is: maximize (8) subject to (9) and (10). This is exactly the standard maximum problem.
Example 4. The Optimal Assignment Problem. There are I persons available for J jobs. The value of person i working 1 day at job j is aij , for i = 1,... , I , and j = 1,... , J. The problem is to choose an assignment of persons to jobs to maximize the total value.
An assignment is a choice of numbers, xij , for i = 1,... , I , and j = 1,... , J , where xij represents the proportion of person i’s time that is to be spent on job j. Thus,
∑^ J
j=
xij ≤ 1 for i = 1,... , I (11)
i=
xij ≤ 1 for j = 1,... , J (12)
and xij ≥ 0 for i = 1,... , I and j = 1,... , J. (13)
Equation (11) reflects the fact that a person cannot spend more than 100% of his time working, (12) means that only one person is allowed on a job at a time, and (13) says that no one can work a negative amount of time on any job. Subject to (11), (12) and (13), we wish to maximize the total value,
∑^ I
i=
j=
aij xij. (14)
This is a standard maximum problem with m = I + J and n = IJ.
Terminology. The function to be maximized or minimized is called the objective function.
A vector, x for the standard maximum problem or y for the standard minimum problem, is said to be feasible if it satisfies the corresponding constraints.
The set of feasible vectors is called the constraint set.
A linear programming problem is said to be feasible if the constraint set is not empty; otherwise it is said to be infeasible.
A feasible maximum (resp. minimum) problem is said to be unbounded if the ob- jective function can assume arbitrarily large positive (resp. negative) values at feasible vectors; otherwise, it is said to be bounded. Thus there are three possibilities for a linear programming problem. It may be bounded feasible, it may be unbounded feasible, and it may be infeasible.
The value of a bounded feasible maximum (resp, minimum) problem is the maximum (resp. minimum) value of the objective function as the variables range over the constraint set.
A feasible vector at which the objective function achieves the value is called optimal.
All Linear Programming Problems Can be Converted to Standard Form. A linear programming problem was defined as maximizing or minimizing a linear function subject to linear constraints. All such problems can be converted into the form of a standard maximum problem by the following techniques.
A minimum problem can be changed to a maximum problem by multiplying the objective function by −1. Similarly, constraints of the form
∑n j=1 aij^ xj^ ≥^ bi^ can be changed into the form
∑n j=1(−aij^ )xj^ ≤ −bi^. Two other problems arise. (1) Some constraints may be equalities. An equality constraint
∑n j=1 aij^ xj^ =^ bi^ may be removed, by solving this constraint for some xj for which aij = 0 and substituting this solution into the other constraints and into the objective function wherever xj appears. This removes one constraint and one variable from the problem.
(2) Some variable may not be restricted to be nonnegative. An unrestricted variable, xj , may be replaced by the difference of two nonnegative variables, xj = uj − vj , where uj ≥ 0 and vj ≥ 0. This adds one variable and two nonnegativity constraints to the problem.
Any theory derived for problems in standard form is therefore applicable to general problems. However, from a computational point of view, the enlargement of the number of variables and constraints in (2) is undesirable and, as will be seen later, can be avoided.
To every linear program there is a dual linear program with which it is intimately connected. We first 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.
Definition. The dual of the standard maximum problem
maximize cTx subject to the constraints Ax ≤ b and x ≥ 0
is defined to be the standard minimum problem
minimize yTb subject to the constraints yTA ≥ cT^ 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 4 x 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 2 y 1 + 2y 2 + y 3 ≥ 1. (4)
If the standard minimum problem (2) is transformed into a standard maximum prob- lem (by multiplying A, b, and c by −1 ), its dual by the definition above is a standard minimum problem which, when transformed to a standard maximum problem (again by changing the signs of all coefficients) becomes exactly (1). Therefore, the dual of the stan- dard minimum problem (2) is the standard maximum problem (1). The problems (1) and (2) are said to be duals.
The general standard maximum problem and the dual standard minimum problem may be simultaneously exhibited in the display:
x 1 x 2 · · · xn y 1 a 11 a 12 · · · a 1 n ≤ b 1 y 2 a 21 a 22 · · · a 2 n ≤ b 2 .. .
ym am 1 am 2 · · · amn ≤ bm ≥ c 1 ≥ c 2 · · · ≥ cn
Our numerical example in this notation becomes
x 1 x 2 y 1 1 2 ≤ 4 y 2 4 2 ≤ 12 y 3 − 1 1 ≤ 1 ≥ 1 ≥ 1
The relation between a standard problem and its dual is seen in the following theorem and its corollaries.
Theorem 1. If x is feasible for the standard maximum problem (1) and if y is feasible for its dual (2), then
cTx ≤ yTb. (7)
Proof.
cTx ≤ yTAx ≤ yTb.
The first inequality follows from x ≥ 0 and cT^ ≤ yTA. 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 yTb is an upper bound for the values of cTx 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 cTx∗^ = y∗Tb, then both are optimal for their respective problems.
Proof. If x is any feasible vector for (1), then cTx ≤ y∗Tb = 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 are always satisfied 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 finite games of Game Theory.
The Duality Theorem. If a standard linear programming problem is bounded feasible, then so is its dual, their values are equal, and there exists optimal vectors for both problems.
Similarly Equation (12) implies
∑^ m
i=
∑^ n
j=
y i∗ aij x∗ j =
∑^ n
j=
cjx∗ j. (14)
Corollary 2 now implies that x∗^ and y∗^ are optimal.
Only if: As in the first line of the proof of Theorem 1,
∑^ n
j=
cj x∗ j ≤
∑^ m
i=
∑^ n
j=
y∗ i aij x∗ j ≤
∑^ m
i=
y∗ i bi. (15)
By the Duality Theorem, if x∗^ and y∗^ are optimal, the left side is equal to the right side so we get equality throughout. The equality of the first and second terms may be written as ∑n
j=
cj −
∑^ m
i=
y i∗ aij
x∗ j = 0. (16)
Since x∗^ and y∗^ are feasible, each term in this sum is nonnegative. The sum can be zero only if each term is zero. Hence if
∑m i=1 y
∗ i aij^ > cj^ , then^ x ∗ j = 0. A symmetric argument shows that if
∑n j=1 aij^ x
∗ j < bi^ , then^ y
∗ i = 0. Equations (11) and (12) are sometimes called the complementary slackness con- ditions. They require that a strict inequality (a slackness) in a constraint in a standard problem implies that the complementary constraint in the dual be satisfied with equality.
As an example of the use of the Equilibrium Theorem, let us solve the dual to the introductory numerical example. Find y 1 , y 2 , y 3 to minimize 4y 1 + 12y 2 + y 3 subject to y 1 ≥ 0 , y 2 ≥ 0 , y 3 ≥ 0 , and y 1 + 4y 2 − y 3 ≥ 1 2 y 1 + 2y 2 + y 3 ≥ 1. (17)
We have already solved the dual problem and found that x∗ 1 > 0 and x∗ 2 > 0. Hence, from (12) we know that the optimal y∗^ gives equality in both inequalities in (17) (2 equations in 3 unknowns). If we check the optimal x∗^ in the first three main constraints of the maximum problem, we find equality in the first two constraints, but a strict inequality in the third. From condition (11), we conclude that y 3 ∗ = 0. Solving the two equations,
y 1 + 4y 2 = 1 2 y 1 + 2y 2 = 1
we find (y 1 ∗ , y∗ 2 ) = (1/ 3 , 1 /6). Since this vector is feasible, the “if” part of the Equilibrium Theorem implies it is optimal. As a check we may find the value, 4(1/3) + 12(1/6) = 10/3 , and see it is the same as for the maximum problem.
In summary, if you conjecture a solution to one problem, you may solve for a solution to the dual using the complementary slackness conditions, and then see if your conjecture is correct.
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. In practical cases, the dual problem may be analyzed in terms of the primal problem.
As an example, consider the diet problem, a standard minimum problem of the form (2). Its dual is the standard maximum problem (1). First, let us find an interpretation of the dual variables, x 1 , x 2 ,... , xn. In the dual constraint,
∑^ n
j=
aij xj ≤ bi, (18)
the variable bi is measured as price per unit of food, Fi , and aij is measured as units of nutrient Nj per unit of food Fi. To make the two sides of the constraint comparable, xj must be measured in of price per unit of food Fi. (This is known as a dimensional analysis.) Since cj is the amount of Nj required per day, the objective function,
∑n 1 cj^ xj^ , represents the total price of the nutrients required each day. Someone is evidently trying to choose vector x of prices for the nutrients to maximize the total worth of the required nutrients per day, subject to the constraints that x ≥ 0 , and that the total value of the nutrients in food Fi , namely,
∑n j=1 aij^ xj^ , is not greater than the actual cost,^ bi^ , of that food.
We may imagine that an entrepreneur is offering to sell us the nutrients without the food, say in the form of vitamin or mineral pills. He offers to sell us the nutrient Nj at a price xj per unit of Nj. If he wants to do business with us, he would choose the xj so that price he charges for a nutrient mixture substitute of food Fi would be no greater than the original cost to us of food Fi. This is the constraint, (18). If this is true for all i, we may do business with him. So he will choose x to maximize his total income,
∑n 1 cj^ xj^ , subject to these constraints. (Actually we will not save money dealing with him since the duality theorem says that our minimum,
∑m 1 yibi^ , is equal to his maximum,^
∑n 1 cjxj^ .) The optimal price, xj , is referred to as the shadow price of nutrient Nj. Although no such entrepreneur exists, the shadow prices reflect the actual values of the nutrients as shaped by the market prices of the foods, and our requirements of the nutrients.
Exercises.
y 1 − 2 y 2 + y 3 ≥ 2 −y 1 + y 2 + y 3 ≥ 4 2 y 1 + y 3 ≥ 6 y 1 + y 2 + y 3 ≥ 2.
Consider the following system of equations.
3 y 1 + 2y 2 = s 1 y 1 − 3 y 2 + 3y 3 = s 2 5 y 1 + y 2 + y 3 = s 3
This expresses dependent variables, s 1 , s 2 and s 3 in terms of the independent variables, y 1 , y 2 and y 3. Suppose we wish to obtain y 2 , s 2 and s 3 in terms of y 1 , s 1 and y 3. We solve the first equation for y 2 , y 2 = 12 s 1 − 32 y 1 ,
and substitute this value of y 2 into the other equations.
y 1 − 3( 12 s 1 − 32 y 1 ) + 3y 3 = s 2 5 y 1 + ( 12 s 1 − 32 y 1 ) + y 3 = s 3.
These three equations simplified become
− 32 y 1 + 12 s 1 = y 2 11 2 y^1 −^
3 2 s^1 + 3y^3 =^ s^2 7 2 y^1 +^
1 2 s^1 +^ y^3 =^ s^3.^ (2)
This example is typical of the following class of problems. We are given a system of n linear functions in m unknowns, written in matrix form as
yTA = sT^ (3)
where yT^ = (y 1 ,... , ym), sT^ = (s 1 ,... , sn), and
a 11 a 12... a 1 n a 21 a 22... a 2 n .. .
am 1 am 2... amn
Equation (3) therefore represents the system
y 1 a 11 + · · · + yiai 1 + · · · + ymam 1 = s 1 .. .
y 1 a 1 j + · · · + yiaij + · · · + ymamj = sj .. .
y 1 a 1 n + · · · + yiain + · · · + ymamn = sn.
In this form, s 1 ,... , sn are the dependent variables, and y 1 ,... , ym are the independent variables.
Suppose that we want to interchange one of the dependent variables for one of the independent variables. For example, we might like to have s 1 ,... , sj− 1 , yi, sj+1,... , sn in terms of y 1 ,... , yi− 1 , sj , yi+1,... , ym , with yi and sj interchanged. This may be done if and only if aij = 0. If aij = 0 , we may take the j th equation and solve for yi , to find
yi =
aij
(−y 1 a 1 j − · · · − yi− 1 a(i−1)j + sj − yi+1a(i+1)j − · · · − ym amj ). (5)
Then we may substitute this expression for yi into the other equations. For example, the k th equation becomes
y 1
a 1 k −^
aik a 1 j aij
aik aij
amk −^
aik amj aij
= sk.^ (6)
We arrive at a system of equations of the form
y 1 ˆa 11 + · · · + sj ˆai 1 + · · · + ym ˆam 1 = s 1 .. .
y 1 ˆa 1 j + · · · + sj aˆij + · · · + ym ˆamj = yi .. .
y 1 aˆ 1 n + · · · + sj ˆain + · · · + ym ˆamn = sn.
The relation between the ˆaij ’s and the aij ’s may be found from (5) and (6).
ˆaij =
aij ˆahj = − ahj aij
for h = i
a ˆik =
aik aij
for k = j
a ˆhk = ahk −
aikahj aij
for k = j and h = i.
Let us mechanize this procedure. We write the original m × n matrix A in a display with y 1 to ym down the left side and s 1 to sn across the top. This display is taken to represent the original system of equations, (3). To indicate that we are going to interchange yi and sj , we circle the entry aij , and call this entry the pivot. We draw an arrow to the new display with yi and sj interchanged, and the new entries of ˆaij ’s. The new display, of course, represents the equations (7), which are equivalent to the equations (4).
s 1 · · · sj · · · sn y 1 a 11 · · · a 1 j · · · a 1 n .. .
yi ai 1 · · · (^) ©aij · · · ain .. .
ym am 1 · · · amj · · · amn
s 1 · · · yi · · · sn y 1 ˆa 11 · · · aˆ 1 j · · · ˆa 1 n .. .
sj ˆai 1 · · · ˆaij · · · ˆain .. .
ym ˆam 1 · · · aˆmj · · · ˆamn
for y 1 , y 2 , y 3 and y 4 , by pivoting, in order, about the entries
(1) first row, first column (circled) (2) second row, third column (the pivot is −1 ) (3) fourth row, second column (the pivot turns out to be 1) (4) third row, fourth column (the pivot turns out to be 3).
Rearrange rows and columns to find A−^1 , and check that the product with A gives the identity matrix.
The Simplex Tableau. Consider the standard minimum problem: Find y to minimize yTb subject to y ≥ 0 and yTA ≥ cT. It is useful conceptually to trans- form this last set of inequalities into equalities. For this reason, we add slack variables, sT^ =^ yTA^ −^ cT^ ≥^0. The problem can be restated: Find^ y^ and^ s^ to minimize^ yTb^ subject to y ≥ 0 , s ≥ 0 and sT^ = yTA − cT.
We write this problem in a tableau to represent the linear equations sT^ = yTA − cT. s 1 s 2 · · · sn y 1 a 11 a 12 · · · a 1 n b 1 y 2 a 21 a 22 · · · a 2 n b 2 .. .
ym am 1 am 2 · · · amn bm 1 −c 1 −c 2 · · · −cn 0 The Simplex Tableau
The last column represents the vector whose inner product with y we are trying to mini- mize.
If −c ≥ 0 and b ≥ 0 , there is an obvious solution to the problem; namely, the minimum occurs at y = 0 and s = −c , and the minimum value is yTb = 0. This is feasible since y ≥ 0 , s ≥ 0 , and sT^ = yTA − c , and yet
yibi cannot be made any smaller than 0, since y ≥ 0 , and b ≥ 0.
Suppose then we cannot solve this problem so easily because there is at least one negative entry in the last column or last row. (exclusive of the corner). Let us pivot about a 11 (suppose^ a 11 = 0 ), including the last column and last row in our pivot operations. We obtain this tableau:
y 1 s 2 · · · sn s 1 ˆa 11 ˆa 12 · · · ˆa 1 n ˆb 1 y 2 ˆa 21 ˆa 22 · · · ˆa 2 n ˆb 2 .. .
ym ˆam 1 ˆam 2 · · · ˆamn ˆbm 1 −ˆc 1 −ˆc 2 · · · −ˆcn vˆ
Let r = (r 1 ,... , rn) = (y 1 , s 2 ,... , sn) denote the variables on top, and let t = (t 1 ,... , tm) = (s 1 , y 2 ,... , ym ) denote the variables on the left. The set of equations sT^ = yTA − cT^ is then equivalent to the set rT^ = tT^ Aˆ − ˆc , represented by the new tableau. Moreover, the objective function yTb may be written (replacing y 1 by its value in terms of s 1 ) ∑m
i=
yibi =
b 1 a 11
s 1 + (b 2 −
a 21 b 1 a 11
)y 2 + · · · + (bm −
am 1 b 1 a 11
)y 2 +
c 1 b 1 a 11
= tTˆb + ˆv