






































































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!







































































E X A M P L E 1 Giapetto’s Woodcarving
Linear programming (LP) is a tool for solving optimization problems. In 1947, George Dantzig de- veloped an efficient method, the simplex algorithm, for solving linear programming problems (also called LP). Since the development of the simplex algorithm, LP has been used to solve optimiza- tion problems in industries as diverse as banking, education, forestry, petroleum, and trucking. In a survey of Fortune 500 firms, 85% of the respondents said they had used linear programming. As a measure of the importance of linear programming in operations research, approximately 70% of this book will be devoted to linear programming and related optimization techniques. In Section 3.1, we begin our study of linear programming by describing the general char- acteristics shared by all linear programming problems. In Sections 3.2 and 3.3, we learn how to solve graphically those linear programming problems that involve only two variables. Solv- ing these simple LPs will give us useful insights for solving more complex LPs. The remainder of the chapter explains how to formulate linear programming models of real-life situations.
In this section, we introduce linear programming and define important terms that are used to describe linear programming problems.
Giapetto’s Woodcarving, Inc., manufactures two types of wooden toys: soldiers and trains. A soldier sells for $27 and uses $10 worth of raw materials. Each soldier that is manu- factured increases Giapetto’s variable labor and overhead costs by $14. A train sells for $21 and uses $9 worth of raw materials. Each train built increases Giapetto’s variable la- bor and overhead costs by $10. The manufacture of wooden soldiers and trains requires two types of skilled labor: carpentry and finishing. A soldier requires 2 hours of finishing labor and 1 hour of carpentry labor. A train requires 1 hour of finishing and 1 hour of car- pentry labor. Each week, Giapetto can obtain all the needed raw material but only 100 fin- ishing hours and 80 carpentry hours. Demand for trains is unlimited, but at most 40 sol- diers are bought each week. Giapetto wants to maximize weekly profit (revenues costs). Formulate a mathematical model of Giapetto’s situation that can be used to maximize Gi- apetto’s weekly profit. Solution In developing the Giapetto model, we explore characteristics shared by all linear pro- gramming problems. Decision Variables We begin by defining the relevant decision variables. In any linear programming model, the decision variables should completely describe the decisions to be made (in this case, by Giapetto). Clearly, Giapetto must decide how many soldiers and trains should be manufactured each week. With this in mind, we define
x 1 number of soldiers produced each week x 2 number of trains produced each week Objective Function In any linear programming problem, the decision maker wants to max- imize (usually revenue or profit) or minimize (usually costs) some function of the deci- sion variables. The function to be maximized or minimized is called the objective func- tion. For the Giapetto problem, we note that fixed costs (such as rent and insurance) do not depend on the values of x 1 and x 2. Thus, Giapetto can concentrate on maximizing (weekly revenues) (raw material purchase costs) (other variable costs). Giapetto’s weekly revenues and costs can be expressed in terms of the decision vari- ables x 1 and x 2. It would be foolish for Giapetto to manufacture more soldiers than can be sold, so we assume that all toys produced will be sold. Then Weekly revenues weekly revenues from soldiers weekly revenues from trains
(^) d so
o l
l d
la ie
rs r
so w
ld ee
ie k
rs (^) d t
o r
l a
l i
a n
rs t w
ra e
i e
n k
s
27 x 1 21 x 2 Also, Weekly raw material costs 10 x 1 9 x 2 Other weekly variable costs 14 x 1 10 x 2 Then Giapetto wants to maximize (27 x 1 21 x 2 ) (10 x 1 9 x 2 ) (14 x 1 10 x 2 ) 3 x 1 2 x 2 Another way to see that Giapetto wants to maximize 3 x 1 2 x 2 is to note that Weekly revenues weekly contribution to profit from soldiers weekly nonfixed costs weekly contribution to profit from trains
(^) so w
ld ee
ie k
rs
(^) ^ t w
ra e
i e
n k
s
Also,
27 10 14 3
Then, as before, we obtain Weekly revenues weekly nonfixed costs 3 x 1 2 x 2 Thus, Giapetto’s objective is to choose x 1 and x 2 to maximize 3 x 1 2 x 2. We use the vari- able z to denote the objective function value of any LP. Giapetto’s objective function is Maximize z 3 x 1 2 x 2 (1) (In the future, we will abbreviate “maximize” by max and “minimize” by min. ) The co- efficient of a variable in the objective function is called the objective function coefficient of the variable. For example, the objective function coefficient for x 1 is 3, and the objec- tive function coefficient for x 2 is 2. In this example (and in many other problems), the ob-
Contribution to profit Train
Contribution to profit Soldier
contribution to profit train
contribution to profit soldier
50 C H A P T E R 3 Introduction to Linear Programming
the constraint’s right-hand side (or rhs ). Often the rhs of a constraint represents the quan- tity of a resource that is available. Sign Restrictions To complete the formulation of a linear programming problem, the fol- lowing question must be answered for each decision variable: Can the decision variable only assume nonnegative values, or is the decision variable allowed to assume both pos- itive and negative values? If a decision variable x (^) i can only assume nonnegative values, then we add the sign re- striction x (^) i 0. If a variable xi can assume both positive and negative (or zero) values, then we say that x (^) i is unrestricted in sign (often abbreviated urs ). For the Giapetto prob- lem, it is clear that x 1 0 and x 2 0. In other problems, however, some variables may be urs. For example, if xi represented a firm’s cash balance, then xi could be considered negative if the firm owed more money than it had on hand. In this case, it would be ap- propriate to classify x (^) i as urs. Other uses of urs variables are discussed in Section 4.12. Combining the sign restrictions x 1 0 and x 2 0 with the objective function (1) and Constraints (2)–(4) yields the following optimization model: max z 3 x 1 2 x 2 (Objective function) (1) subject to (s.t.) 2 x 1 x 2 100 (Finishing constraint) (2) x 1 x 2 80 (Carpentry constraint) (3) x 1 x 2 40 (Constraint on demand for soldiers) (4) x 1 x 2 0 (Sign restriction)†^ (5) x 1 x 2 0 (Sign restriction) (6) “Subject to” (s.t.) means that the values of the decision variables x 1 and x 2 must satisfy all constraints and all sign restrictions.
Before formally defining a linear programming problem, we define the concepts of linear function and linear inequality.
D E F I N I T I O N A function f ( x 1 , x 2 ,... , xn ) of x 1 , x 2 ,... , xn is a linear function if and only if for some set of constants c 1 , c 2 ,... , cn , f ( x 1 , x 2 ,... , xn ) c 1 x 1 c 2 x 2 cnxn.
For example, f ( x 1 , x 2 ) 2 x 1 x 2 is a linear function of x 1 and x 2 , but f ( x 1 , x 2 ) x^21 x 2 is not a linear function of x 1 and x 2.
D E F I N I T I O N For any linear function f ( x 1 , x 2 ,... , xn ) and any number b , the inequalities f ( x 1 , x 2 ,... , xn ) b and f ( x 1 , x 2 ,... , xn ) b are linear inequalities.
Thus, 2 x 1 3 x 2 3 and 2 x 1 x 2 3 are linear inequalities, but x^21 x 2 3 is not a linear inequality.
52 C H A P T E R 3 Introduction to Linear Programming
†The sign restrictions do constrain the values of the decision variables, but we choose to consider the sign re- strictions as being separate from the constraints. The reason for this will become apparent when we study the simplex algorithm in Chapter 4.
D E F I N I T I O N A linear programming problem (LP) is an optimization problem for which we do the following: 1 We attempt to maximize (or minimize) a linear function of the decision vari- ables. The function that is to be maximized or minimized is called the objective function. 2 The values of the decision variables must satisfy a set of constraints. Each con- straint must be a linear equation or linear inequality. 3 A sign restriction is associated with each variable. For any variable x (^) i , the sign restriction specifies that xi must be either nonnegative ( x (^) i 0) or unrestricted in sign (urs).
Because Giapetto’s objective function is a linear function of x 1 and x 2 , and all of Gia- petto’s constraints are linear inequalities, the Giapetto problem is a linear programming problem. Note that the Giapetto problem is typical of a wide class of linear programming problems in which a decision maker’s goal is to maximize profit subject to limited resources.
The fact that the objective function for an LP must be a linear function of the decision variables has two implications. 1 The contribution of the objective function from each decision variable is proportional to the value of the decision variable. For example, the contribution to the objective func- tion from making four soldiers (4 3 $12) is exactly four times the contribution to the objective function from making one soldier ($3). 2 The contribution to the objective function for any variable is independent of the val- ues of the other decision variables. For example, no matter what the value of x 2 , the man- ufacture of x 1 soldiers will always contribute 3 x 1 dollars to the objective function. Analogously, the fact that each LP constraint must be a linear inequality or linear equa- tion has two implications. 1 The contribution of each variable to the left-hand side of each constraint is propor- tional to the value of the variable. For example, it takes exactly three times as many fin- ishing hours (2 3 6 finishing hours) to manufacture three soldiers as it takes to man- ufacture one soldier (2 finishing hours). 2 The contribution of a variable to the left-hand side of each constraint is independent of the values of the variable. For example, no matter what the value of x 1 , the manufac- ture of x 2 trains uses x 2 finishing hours and x 2 carpentry hours. The first implication given in each list is called the Proportionality Assumption of Lin- ear Programming. Implication 2 of the first list implies that the value of the objective function is the sum of the contributions from individual variables, and implication 2 of the second list implies that the left-hand side of each constraint is the sum of the contri- butions from each variable. For this reason, the second implication in each list is called the Additivity Assumption of Linear Programming. For an LP to be an appropriate representation of a real-life situation, the decision vari- ables must satisfy both the Proportionality and Additivity Assumptions. Two other as- sumptions must also be satisfied before an LP can appropriately represent a real situation: the Divisibility and Certainty Assumptions.
1 Farmer Jones must determine how many acres of corn and wheat to plant this year. An acre of wheat yields 25 bushels of wheat and requires 10 hours of labor per week. An acre of corn yields 10 bushels of corn and requires 4 hours of labor per week. All wheat can be sold at $4 a bushel, and all corn can be sold at $3 a bushel. Seven acres of land and 40 hours per week of labor are available. Government regulations require that at least 30 bushels of corn be produced during the current year. Let x 1 number of acres of corn planted, and x 2 number of acres of wheat planted. Using these decision variables, formulate an LP whose solution will tell Farmer Jones how to maximize the total revenue from wheat and corn.
2 Answer these questions about Problem 1. a Is ( x 1 2, x 2 3) in the feasible region? b Is ( x 1 4, x 2 3) in the feasible region? c Is ( x 1 2, x 2 1) in the feasible region? d Is ( x 1 3, x 2 2) in the feasible region?
3 Using the variables x 1 number of bushels of corn
On the other hand, the point ( x 1 15, x 2 70) is not in the feasible region, because even though x 1 15 and x 2 70 satisfy (2), (4), (5), and (6), they fail to satisfy (3): 15 70 is not less than or equal to 80. Any point that is not in an LP’s feasible region is said to be an infeasible point. As another example of an infeasible point, consider ( x 1 40, x 2 20). Although this point satisfies all the constraints and the sign restriction (5), it is infeasible because it fails to satisfy the sign restriction (6), x 2 0. The feasible region for the Giapetto problem is the set of possible production plans that Giapetto must con- sider in searching for the optimal production plan.
D E F I N I T I O N For a maximization problem, an optimal solution to an LP is a point in the feasible region with the largest objective function value. Similarly, for a minimization problem, an optimal solution is a point in the feasible region with the smallest objective function value.
Most LPs have only one optimal solution. However, some LPs have no optimal solution, and some LPs have an infinite number of solutions (these situations are discussed in Section 3.3). In Section 3.2, we show that the unique optimal solution to the Giapetto problem is ( x 1 20, x 2 60). This solution yields an objective function value of z 3 x 1 2 x 2 3(20) 2(60) $ When we say that ( x 1 20, x 2 60) is the optimal solution to the Giapetto problem, we are saying that no point in the feasible region has an objective function value that exceeds
P R O B L E M S
Group A
produced and x 2 number of bushels of wheat produced, reformulate Farmer Jones’s LP. 4 Truckco manufactures two types of trucks: 1 and 2. Each truck must go through the painting shop and assembly shop. If the painting shop were completely devoted to painting Type 1 trucks, then 800 per day could be painted; if the painting shop were completely devoted to painting Type 2 trucks, then 700 per day could be painted. If the assembly shop were completely devoted to assembling truck 1 engines, then 1,500 per day could be assembled; if the assembly shop were completely devoted to assembling truck 2 engines, then 1,200 per day could be assembled. Each Type 1 truck contributes $300 to profit; each Type 2 truck contributes $500. Formulate an LP that will maximize Truckco’s profit.
Group B 5 Why don’t we allow an LP to have or constraints?
3.2 The Graphical Solution of Two-Variable Linear Programming Problems
Any LP with only two variables can be solved graphically. We always label the variables x 1 and x 2 and the coordinate axes the x 1 and x 2 axes. Suppose we want to graph the set of points that satisfies 2 x 1 3 x 2 6 (7) The same set of points ( x 1 , x 2 ) satisfies 3 x 2 6 2 x 1 This last inequality may be rewritten as x 2 ^13 (6 2 x 1 ) 2 ^23 x 1 (8) Because moving downward on the graph decreases x 2 (see Figure 1), the set of points that satisfies (8) and (7) lies on or below the line x 2 2 ^23 x 1. This set of points is indicated by darker shading in Figure 1. Note, however, that x 2 2 ^23 x 1 , 3 x 2 6 2 x 1 , and 2 x 1 3 x 2 6 are all the same line. This means that the set of points satisfying (7) lies on or be- low the line 2 x 1 3 x 2 6. Similarly, the set of points satisfying 2 x 1 3 x 2 6 lies on or above the line 2 x 1 3 x 2 6. (These points are shown by lighter shading in Figure 1.) Consider a linear inequality constraint of the form f ( x 1 , x 2 ) b or f ( x 1 , x 2 ) b. In general, it can be shown that in two dimensions, the set of points that satisfies a linear in- equality includes the points on the line f ( x 1 , x 2 ) b , defining the inequality plus all points on one side of the line. There is an easy way to determine the side of the line for which an inequality such as f ( x 1 , x 2 ) b or f ( x 1 , x 2 ) b is satisfied. Just choose any point P that does not satisfy the line f ( x 1 , x 2 ) b. Determine whether P satisfies the inequality. If it does, then all points on the same side as P of f ( x 1 , x 2 ) b will satisfy the inequality. If P does not satisfy the inequality, then all points on the other side of f ( x 1 , x 2 ) b , which does not contain P, will satisfy the in- equality. For example, to determine whether 2 x 1 3 x 2 6 is satisfied by points above or be- low the line 2 x 1 3 x 2 6, we note that (0, 0) does not satisfy 2 x 1 3 x 2 6. Because (0,
56 C H A P T E R 3 Introduction to Linear Programming
3
4
5
(0, 0)
Satisfies 2 x 1 + 3 x 2 ≤ 6
2
x 2
x 1
1
Satisfies 2 x 1 + 3 x 2 ≥ 6
x 2 = 2 – 23 x 1
F I G U R E 1 Graphing a Linear Inequality
An easy way to find the feasible region is to determine the set of infeasible points. Note that all points above line AB in Figure 2 are infeasible, because they fail to satisfy (2). Similarly, all points above CD are infeasible, because they fail to satisfy (3). Also, all points to the right of the vertical line EF are infeasible, because they fail to satisfy (4). After these points are eliminated from consideration, we are left with the feasible region ( DGFEH ).
Having identified the feasible region for the Giapetto problem, we now search for the op- timal solution, which will be the point in the feasible region with the largest value of z 3 x 1 2 x 2. To find the optimal solution, we need to graph a line on which all points have the same z -value. In a max problem, such a line is called an isoprofit line (in a min prob- lem, an isocost line ). To draw an isoprofit line, choose any point in the feasible region and calculate its z -value. Let us choose (20, 0). For (20, 0), z 3(20) 2(0) 60. Thus, (20, 0) lies on the isoprofit line z 3 x 1 2 x 2 60. Rewriting 3 x 1 2 x 2 60 as x 2 30 ^32 x 1 , we see that the isoprofit line 3 x 1 2 x 2 60 has a slope of ^32 . Because all isoprofit lines are of the form 3 x 1 2 x 2 constant, all isoprofit lines have the same slope. This means that once we have drawn one isoprofit line, we can find all other iso- profit lines by moving parallel to the isoprofit line we have drawn. It is now clear how to find the optimal solution to a two-variable LP. After you have drawn a single isoprofit line, generate other isoprofit lines by moving parallel to the drawn isoprofit line in a direction that increases z (for a max problem). After a point, the iso- profit lines will no longer intersect the feasible region. The last isoprofit line intersecting (touching) the feasible region defines the largest z -value of any point in the feasible re- gion and indicates the optimal solution to the LP. In our problem, the objective function z 3 x 1 2 x 2 will increase if we move in a direction for which both x 1 and x 2 increase. Thus, we construct additional isoprofit lines by moving parallel to 3 x 1 2 x 2 60 in a northeast direction (upward and to the right). From Figure 2, we see that the isoprofit line passing through point G is the last isoprofit line to intersect the feasible region. Thus, G is the point in the feasible region with the largest z -value and is therefore the optimal so- lution to the Giapetto problem. Note that point G is where the lines 2 x 1 x 2 100 and x 1 x 2 80 intersect. Solving these two equations simultaneously, we find that ( x 1 20, x 2 60) is the optimal solution to the Giapetto problem. The optimal value of z may be found by substituting these values of x 1 and x 2 into the objective function. Thus, the optimal value of z is z 3(20) 2(60) 180.
Once the optimal solution to an LP has been found, it is useful (see Chapters 5 and 6) to classify each constraint as being a binding constraint or a nonbinding constraint.
D E F I N I T I O N A constraint is binding if the left-hand side and the right-hand side of the constraint are equal when the optimal values of the decision variables are substituted into the constraint.
Thus, (2) and (3) are binding constraints.
58 C H A P T E R 3 Introduction to Linear Programming
D E F I N I T I O N A constraint is nonbinding if the left-hand side and the right-hand side of the constraint are unequal when the optimal values of the decision variables are substituted into the constraint.
Because x 1 20 is less than 40, (4) is a nonbinding constraint.
The feasible region for the Giapetto problem is an example of a convex set.
D E F I N I T I O N A set of points S is a convex set if the line segment joining any pair of points in S is wholly contained in S.
Figure 3 gives four illustrations of this definition. In Figures 3a and 3b, each line seg- ment joining two points in S contains only points in S. Thus, in both these figures, S is convex. In Figures 3c and 3d, S is not convex. In each figure, points A and B are in S , but there are points on the line segment AB that are not contained in S. In our study of linear programming, a certain type of point in a convex set (called an extreme point ) is of great interest.
D E F I N I T I O N For any convex set S , a point P in S is an extreme point if each line segment that lies completely in S and contains the point P has P as an endpoint of the line segment.
For example, in Figure 3a, each point on the circumference of the circle is an extreme point of the circle. In Figure 3b, points A , B , C , and D are extreme points of S. Although point E is on the boundary of S in Figure 3b, E is not an extreme point of S. This is be- cause E lies on the line segment AB ( AB lies completely in S ), and E is not an endpoint of the line segment AB. Extreme points are sometimes called corner points, because if the set S is a polygon, the extreme points of S will be the vertices, or corners, of the polygon. The feasible region for the Giapetto problem is a convex set. This is no accident: It can be shown that the feasible region for any LP will be a convex set. From Figure 2, we see that the extreme points of the feasible region are simply points D , F , E , G , and H. It can be shown that the feasible region for any LP has only a finite number of extreme points. Also note that the optimal solution to the Giapetto problem (point G ) is an extreme point of the feasible region. It can be shown that any LP that has an optimal solution has an extreme point that is optimal. This result is very important, because it reduces the set of points that yield an optimal solution from the entire feasible region (which generally con- tains an infinite number of points) to the set of extreme points (a finite set).
S = shaded area
a b c d
A
A
A B
B E B
F I G U R E 3 C^ D Convex and Nonconvex Sets
Thus, Dorian’s objective function is min z 50 x 1 100 x 2 (9) Dorian faces the following constraints: Constraint 1 Commercials must reach at least 28 million high-income women. Constraint 2 Commercials must reach at least 24 million high-income men. To express Constraints 1 and 2 in terms of x 1 and x 2 , let HIW stand for high-income women viewers and HIM stand for high-income men viewers (in millions).
HIW (^) com
e
d
y ad
(^) foo
tb
a
ll ad
7 x 1 2 x 2
HIM (^) com
e
d
y ad
(^) foo
tb
a
ll ad
2 x 1 12 x 2 Constraint 1 may now be expressed as 7 x 1 2 x 2 28 (10) and Constraint 2 may be expressed as 2 x 1 12 x 2 24 (11) The sign restrictions x 1 0 and x 2 0 are necessary, so the Dorian LP is given by: min z 50 x 1 100 x 2 s.t. 7 x 1 2 x 2 28 (HIW) s.t. 2 x 1 12 x 2 24 (HIM) x 1 , x 2 0 This problem is typical of a wide range of LP applications in which a decision maker wants to minimize the cost of meeting a certain set of requirements. To solve this LP graphically, we begin by graphing the feasible region (Figure 4). Note that (10) is satis- fied by points on or above the line AB ( AB is part of the line 7 x 1 2 x 2 28) and that
total football ads
total comedy ads
total football ads
total comedy ads
z = 320 z = 600
(10)
(4, 4)
B
E D A C
x 2
x 1
4
2 (11)
6
8
10
12
14
2 4 6 8 10 12 14
F I G U R E 4 Graphical Solution of Dorian Problem
(11) is satisfied by the points on or above the line CD ( CD is part of the line 2 x 1 12 x 2 24). From Figure 4, we see that the only first-quadrant points satisfying both (10) and (11) are the points in the shaded region bounded by the x 1 axis, CEB , and the x 2 axis. Like the Giapetto problem, the Dorian problem has a convex feasible region, but the feasible region for Dorian, unlike Giapetto’s, contains points for which the value of at least one variable can assume arbitrarily large values. Such a feasible region is called an un- bounded feasible region. Because Dorian wants to minimize total advertising cost, the optimal solution to the problem is the point in the feasible region with the smallest z -value. To find the optimal solution, we need to draw an isocost line that intersects the feasible region. An isocost line is any line on which all points have the same z -value (or same cost). We arbitrarily choose the isocost line passing through the point ( x 1 4, x 2 4). For this point, z 50(4) 100(4) 600, and we graph the isocost line z 50 x 1 100 x 2 600. We consider lines parallel to the isocost line 50 x 1 100 x 2 600 in the direction of decreasing z (southwest). The last point in the feasible region that intersects an isocost line will be the point in the feasible region having the smallest z -value. From Figure 4, we see that point E has the smallest z -value of any point in the feasible region; this is the optimal solution to the Dorian problem. Note that point E is where the lines 7 x 1 2 x 2 28 and 2 x 1 12 x 2 24 intersect. Simultaneously solving these equations yields the op- timal solution ( x 1 3.6, x 2 1.4). The optimal z -value can then be found by substitut- ing these values of x 1 and x 2 into the objective function. Thus, the optimal z -value is z 50(3.6) 100(1.4) 320 $320,000. Because at point E both the HIW and HIM con- straints are satisfied with equality, both constraints are binding.
Does the Dorian model meet the four assumptions of linear programming outlined in Section 3.1? For the Proportionality Assumption to be valid, each extra comedy commercial must add exactly 7 million HIW and 2 million HIM. This contradicts empirical evidence, which indicates that after a certain point advertising yields diminishing returns. After, say, 500 auto commercials have been aired, most people have probably seen one, so it does little good to air more commercials. Thus, the Proportionality Assumption is violated. We used the Additivity Assumption to justify writing (total HIW viewers) (HIW viewers from comedy ads) (HIW viewers from football ads). In reality, many of the same people will see a Dorian comedy commercial and a Dorian football commercial. We are double-counting such people, and this creates an inaccurate picture of the total num- ber of people seeing Dorian commercials. The fact that the same person may see more than one type of commercial means that the effectiveness of, say, a comedy commercial depends on the number of football commercials. This violates the Additivity Assumption. If only 1-minute commercials are available, then it is unreasonable to say that Dorian should buy 3.6 comedy commercials and 1.4 football commercials, so the Divisibility As- sumption is violated, and the Dorian problem should be considered an integer program- ming problem. In Section 9.3, we show that if the Dorian problem is solved as an integer programming problem, then the minimum cost is attained by choosing ( x 1 6, x 2 1) or ( x 1 4, x 2 2). For either solution, the minimum cost is $400,000. This is 25% higher than the cost obtained from the optimal LP solution. Because there is no way to know with certainty how many viewers are added by each type of commercial, the Certainty Assumption is also violated. Thus, all the assumptions of lin- ear programming seem to be violated by the Dorian Auto problem. Despite these drawbacks, analysts have used similar models to help companies determine their optimal media mix.†
62 C H A P T E R 3 Introduction to Linear Programming
†Lilien and Kotler (1983).
The company’s daily profit (in hundreds of dollars) is 3 x 1 2 x 2 , so the company’s ob- jective function may be written as max z 3 x 1 2 x 2 (12) The company’s two constraints are the following: Constraint 1 The fraction of the day during which the paint shop is busy is less than or equal to 1. Constraint 2 The fraction of the day during which the body shop is busy is less than or equal to 1. We have
Fraction of day paint shop works on trucks (^) fracti t
o ru
n c
o k
f day tr d
u a
c y
ks
410 ^ x 1 Fraction of day paint shop works on cars 610 ^ x 2 Fraction of day body shop works on trucks 510 ^ x 1 Fraction of day body shop works on cars 510 ^ x 2 Thus, Constraint 1 may be expressed by
4
x 1 6
x 2 1 (Paint shop constraint) (13)
and Constraint 2 may be expressed by
5
x 1 5
x 2 1 (Body shop constraint) (14)
Because x 1 0 and x 2 0 must hold, the relevant LP is max z 3 x 1 2 x 2 (12)
s.t. 4
x 1 6
x 2 1 (13)
x 1 5
x 2 1 (14)
x 1 , x 2 0 The feasible region for this LP is the shaded region in Figure 5 bounded by AEDF. † For our isoprofit line, we choose the line passing through the point (20, 0). Because (20, 0) has a z -value of 3(20) 2(0) 60, this yields the isoprofit line z 3 x 1 2 x 2 60. Examining lines parallel to this isoprofit line in the direction of increasing z (northeast), we find that the last “point” in the feasible region to intersect an isoprofit line is the entire line segment AE. This means that any point on the line segment AE is opti- mal. We can use any point on AE to determine the optimal z -value. For example, point A, (40, 0), gives z 3(40) 120.
In summary, the auto company’s LP has an infinite number of optimal solutions, or multiple or alternative optimal solutions. This is indicated by the fact that as an isoprofit
64 C H A P T E R 3 Introduction to Linear Programming
†Constraint (13) is satisfied by all points on or below AB ( AB is 4
1 0 ^ x^1 ^ 6
1 0 ^ x^2 ^ 1), and (14) is satisfied by all points on or below CD ( CD is 510 ^ x 1 510 ^ x 2 1).
line leaves the feasible region, it will intersect an entire line segment corresponding to the binding constraint (in this case, AE ). From our current example, it seems reasonable (and can be shown to be true) that if two points ( A and E here) are optimal, then any point on the line segment joining these two points will also be optimal. If an alternative optimum occurs, then the decision maker can use a secondary crite- rion to choose between optimal solutions. The auto company’s managers might prefer point A because it would simplify their business (and still allow them to maximize prof- its) by allowing them to produce only one type of product (trucks). The technique of goal programming (see Section 4.14) is often used to choose among alternative optimal solutions.
It is possible for an LP’s feasible region to be empty (contain no points), resulting in an infeasible LP. Because the optimal solution to an LP is the best point in the feasible re- gion, an infeasible LP has no optimal solution.
Suppose that auto dealers require that the auto company in Example 3 produce at least 30 trucks and 20 cars. Find the optimal solution to the new LP. Solution After adding the constraints x 1 30 and x 2 20 to the LP of Example 3, we obtain the following LP: max z 3 x 1 2 x 2
s.t. 4
x 1 6
x 2 1 (15)
x 1 5
x 2 1 (16)
E X A M P L E 4 Infeasible LP
z = 60
z = 100
(13)
(14)
B
E
F
D
A C
x 2
x 1
40
50
30
20
10
60
10 20 30 40 50 60
F I G U R E 5 Graphical Solution of Example 3
Graphically solve the following LP: max z 2 x 1 x 2 s.t. x 1 x 2 1 (19) 2 x 1 x 2 6 (20) x 1 , x 2 0 Solution From Figure 7, we see that (19) is satisfied by all points on or above AB ( AB is the line x 1 x 2 1). Also, (20) is satisfied by all points on or above CD ( CD is 2 x 1 x 2 6). Thus, the feasible region for Example 5 is the (shaded) unbounded region in Figure 7, which is bounded only by the x 2 axis, line segment DE , and the part of line AB beginning at E. To find the optimal solution, we draw the isoprofit line passing through (2, 0). This isoprofit line has z 2 x 1 x 2 2(2) 0 4. The direction of increasing z is to the southeast (this makes x 1 larger and x 2 smaller). Moving parallel to z 2 x 1 x 2 in a southeast direction, we see that any isoprofit line we draw will intersect the feasible re- gion. (This is because any isoprofit line is steeper than the line x 1 x 2 1.) Thus, there are points in the feasible region that have arbitrarily large z -values. For ex- ample, if we wanted to find a point in the feasible region that had z 1,000,000, we could choose any point in the feasible region that is southeast of the isoprofit line z 1,000,000.
From the discussion in the last two sections, we see that every LP with two variables must fall into one of the following four cases: Case 1 The LP has a unique optimal solution. Case 2 The LP has alternative or multiple optimal solutions: Two or more extreme points are optimal, and the LP will have an infinite number of optimal solutions. Case 3 The LP is infeasible: The feasible region contains no points. Case 4 The LP is unbounded: There are points in the feasible region with arbitrarily large z -values (max problem) or arbitrarily small z -values (min problem). In Chapter 4, we show that every LP (not just LPs with two variables) must fall into one of Cases 1–4.
E X A M P L E 5 Unbounded LP
(20)
z = 4 z = 6
(19)
B
E
A C
D
x 2
x 1
1
2
3
4
5
6
1 2 3 4 5 6
F I G U R E 7 An Unbounded LP
In the rest of this chapter, we lead the reader through the formulation of several more complicated linear programming models. The most important step in formulating an LP model is the proper choice of decision variables. If the decision variables have been prop- erly chosen, the objective function and constraints should follow without much difficulty. Trouble in determining an LP’s objective function and constraints is usually the result of an incorrect choice of decision variables.
P R O B L E M S
Group A
68 C H A P T E R 3 Introduction to Linear Programming
Identify which of Cases 1–4 apply to each of the follow- ing LPs:
1 max z x 1 x 2 s.t. x 1 x 2 4 x 1 x 2 5 x 1 , x 2 0
2 max z 4 x 1 x 2 s.t. 8 x 1 2 x 2 16 5 x 1 2 x 2 12 x 1 , x 2 0
3 max z x 1 3 x 2 s.t. x 1 2 x 2 4 x 1 2 x 2 4 x 1 , x 2 0
4 max z 3 x 1 x 2 s.t. 2 x 1 3 x 2 6 x 1 3 x 2 9 x 1 , x 2 0
5 True or false: For an LP to be unbounded, the LP’s feasible region must be unbounded.
6 True or false: Every LP with an unbounded feasible region has an unbounded optimal solution.
7 If an LP’s feasible region is not unbounded, we say the LP’s feasible region is bounded. Suppose an LP has a bounded feasible region. Explain why you can find the optimal solution to the LP (without an isoprofit or isocost line) by simply checking the z -values at each of the feasible region’s extreme points. Why might this method fail if the LP’s feasible region is unbounded?
8 Graphically find all optimal solutions to the follow- ing LP: min z x 1 x 2 s.t. x 1 x 2 6 x 1 x 2 0 x 2 x 1 3 x 1 , x 2 0 9 Graphically determine two optimal solutions to the following LP: min z 3 x 1 5 x 2 s.t. 3 x 1 2 x 2 36 3 x 1 5 x 2 45 x 1 , x 2 0
Group B 10 Money manager Boris Milkem deals with French currency (the franc) and American currency (the dollar). At 12 midnight, he can buy francs by paying .25 dollars per franc and dollars by paying 3 francs per dollar. Let x 1 number of dollars bought (by paying francs) and x 2 number of francs bought (by paying dollars). Assume that both types of transactions take place simultaneously, and the only constraint is that at 12:01 A.M. Boris must have a nonnegative number of francs and dollars. a Formulate an LP that enables Boris to maximize the number of dollars he has after all transactions are completed. b Graphically solve the LP and comment on the answer.
3.4 A Diet Problem
Many LP formulations (such as Example 2 and the following diet problem) arise from situations in which a decision maker wants to minimize the cost of meeting a set of requirements.