Chapter 2: Linear Programming - Maximization

Size: px
Start display at page:

Download "Chapter 2: Linear Programming - Maximization"

Transcription

1 2.0: Mathematical Programming The next five chapters in the text focus on mathematical programming. The father of mathematical programming is George Dantzig. Between 1947 and 1949, Dantzig developed the basic concepts used for framing and solving linear programming problems. During WWII, he worked on developing various plans which the military calls programs. After the war he was challenged to find an efficient way to develop and solve these programs. Dantzig recognized that these programs could be formulated as a system of linear inequalities. Next, he introduced the concept of a goal. At that time, goals usually meant rules of thumb for carrying out a goal. For example, a navy admiral might have said, Our goal is to win the war, and we can do that by building more battleships. Dantzig was the first to express the selection of a plan to reach a goal as a mathematical function. Today we call it the objective function. All of this work would not have had much practical value without a way to solve the problem. Dantzig found an efficient method called the simplex algorithm. This algorithm finds the optimal solution to a set of linear inequalities that maximizes (profit) or minimizes (cost) an objective function. Economists were excited by these developments. Several attended Activity Analysis of Production and Allocation, an early conference on linear programming and the simplex method. Some of them later won Nobel prizes in economics for their work. They were able to model fundamental economic principles using linear programming. The first problem Dantzig solved was a minimum cost diet problem. The problem involved the solution of nine inequalities (nutrition requirements) with seventy-seven decision variables (sources of nutrition). The National Bureau of Standards supervised the solution process. It took the equivalent of one man working 120 days using a hand-operated desk calculator to solve the problem. Nowadays, a standard personal computer could solve this problem in less than one second. EXCEL spreadsheet software includes as a standard add-in called solver, a tool for solving linear programming problems. Mainframe computers became available in the 1950s and grew more and more powerful. This allowed the petroleum and chemical industries to use the simplex algorithm to solve practical problems. One problem was to minimize the cost of blending gasoline to meet performance and content standards. The field of linear programming grew very fast. This led to the development of non-linear programming, in which inequalities and/or the objective function are not linear functions. Another extension is called integer programming, in which the variables can only have integer values. Together, linear, non-linear and integer programming are called mathematical programming. Copyright 2010 North Carolina State University: MINDSET 2-1

2 2.0.1: An Introductory Problem In order to get a feel for mathematical programming, we will begin with a problem that has a concrete model that can be built from Lego pieces. When a mathematical model of a real world situation is constructed in symbolic form, it is often helpful to construct a physical or visual model at the same time. The role of the latter model is to help the model builder to understand the real world situation as well as its mathematical model. The Problem. A certain furniture company makes only two products, tables and chairs. We will model the manufacture of tables and chairs using Lego pieces. To make a table requires two large and two small pieces. A chair requires one large and two small pieces. Figure 1 shows a table and a chair made from Legos. Figure 1: A Lego table and chair. If the resources needed to build tables and chairs were unlimited, the company would just manufacture as many of each as it thought it could sell. In the real world, however, resources are not unlimited. Suppose that the company can only obtain six large and eight small pieces per day. Figure 2 shows these limited resources. Figure 2: The furniture company s limited resources Copyright 2010 North Carolina State University: MINDSET 2-2

3 The profit from each table is $16, and the profit from each chair is $10. The production manager wants to find the rate of production of tables and chairs per day that earns the most profit. 1. What do you think the production rates should be? 2. Use Legos to build a physical model, or draw pictures to explore some possibilities. 3. Compute the profit for each possibility. 4. In a table, record the production rate of tables, the production rate of chairs, and the profit for each possibility. 5. What production rates generate the most profit? Solving the Problem. Since the profit from a table is much greater than the profit from a chair, we could begin by making as many tables as possible. Each table requires two large pieces and two small pieces. There are only six large and eight small pieces available. Therefore, only three tables can be built. This generates 3 $16 $48 profit. There are two small pieces left over, but nothing can be built from them. Thus, $48 is the total profit if we build three tables (and no chairs). Now the question is: Are there any other production rates that generate more profit? We cannot make more than three tables from the limited resources available. Suppose we investigate what happens if we make only two tables. Doing so uses four large and four small pieces. Now there are two large and four small pieces left over. These are just enough resources to build two chairs. (We already know what the result would be if we built another table!) The profit on two tables and two chairs would be: 2 $16 2 $10 $52. This is more profit than building three tables, so we should consider all of the possibilities. Table 1 contains all of the possibilities, and Figure 3 shows the solution that generates the most profit. Production rate: tables Production rate: chairs Total Profit $16 0 $10=$ $16 2 $10=$ $16 3 $10=$ $16 4 $10=$40 Table 1: Exploring the Possibilities Copyright 2010 North Carolina State University: MINDSET 2-3

4 Figure 3: Two tables and two chairs yield the most profit. Because the profit has been optimized, the solution in Figure 1 is called the optimal solution. Notice that we have used a set of similar equations in Table 1 to compute the profit for each possibility. These equations are the basis for the objective function. The two production rates varied across the four possibilities, and exploring their variations allows a decision about production to be made. Therefore, the production rates for tables and chairs are the decision variables for this problem. Besides the optimal solution, there are three other solutions listed in Table 1. Although they are not optimal, each is still a feasible solution. Building four tables is an example of an infeasible solution. 6. Why is building four tables infeasible? 7. Give another example of an infeasible solution. Stepping Beyond the Solution. Operations researchers understand that there is more to their work than merely finding solutions to problems. Once a solution is found, it must be interpreted. One sort of interpretation is called sensitivity analysis. Sensitivity analysis involves exploring how sensitive the solution is to changes in the parameters of the problem. For example, in the Lego problem above, one of the parameters of the problem is the availability of large pieces. 8. Would it make a difference if seven large pieces were available instead of six? 9. If so, what is the new optimal solution, and how much profit does it generate? 10. Would it make a difference if nine small pieces were available instead of eight? 11. If so, what is the new optimal solution, and how much profit does it generate? Growing the Problem. Suppose now that the furniture company has decided to dramatically expand production. Now it is able to obtain 27 small and 18 large Lego pieces per day. The profit on tables and chairs remains the same. 12. What should the daily production rates be in order to maximize profit? Copyright 2010 North Carolina State University: MINDSET 2-4

5 13. Would it make a difference if 19 large pieces were available instead of 18? If so, what is the new optimal solution, and how much profit does it generate? 14. Would it make a difference if 28 large pieces were available instead of 27? If so, what is the new optimal solution, and how much profit does it generate? 15. Was this new problem easier or more difficult to solve than the original? Why? 16. What are some aspects of a problem like this that would make it easier or more difficult to solve? Explain : Next Steps On the pages that follow, you will be introduced to a wide range of real world problems that operations researchers solve every day. While the real world problems can be difficult to solve due to their enormous size, in a very many cases, their solution depends on mathematics that you have already learned in your previous high school mathematics courses. So how, you may wonder, will this course be different? We believe that this new course in the mathematics of operations research for high school students is different, because it is applications-based and problem-driven. Applications-based means that the applications of the mathematics will be upfront not at the end of the chapter. Problem-driven means that they key ideas will be developed within the sorts of problems that gave them birth. Studying mathematics in this way may require you to develop a new MINDSET about what mathematics is, how it can be used, and the best way to learn it. Whatever mathematics is, it is certainly not a spectator sport. That is why a large portion of this book looks very similar to the Introductory Problem that you just read. Many questions were asked, but not answered in the text. Where will the answers come from? You will provide those answers, and in doing so, you will begin to form that new MINDSET. Copyright 2010 North Carolina State University: MINDSET 2-5

6 Problem 2.1: Computer Flips, a Junior Achievement Company Junior Achievement (JA) is an educational program available worldwide. JA uses hands-on experiences to help young people understand the economics of life. In partnership with businesses and educators, JA brings the real world to students. The JA Company Program provides basic economic education for high school students. The Program uses support and guidance of volunteer consultants from the local business community. By organizing and operating an actual business, students learn how businesses function. They also learn about the structure of the free enterprise system and the benefits it provides. Gates Williams is the production manager for Computer Flips, a Junior Achievement company. Computer Flips purchases a basic computer at wholesale prices and then adds a display, extra memory cards, extra USB ports, or a CD-ROM or DVD-ROM drive. The company also purchases these extra components at wholesale prices. The computers, with the added features, are then resold at retail prices. Computer Flips produces two models: Simplex and Omniplex. The profit on each Simplex is $200, and on each Omniplex, the profit is $300. The Simplex model has fewer add-ons, so it requires only 60 minutes of installation time. The Omniplex has more add-ons and requires 120 minutes of installation time. Five JA students do all of the installation work. Each of them works 8 hours per week. Gates Williams must decide the rate of production per week of each computer model in order to maximize the company s weekly profit. To make decisions such as the one Gates Williams faces, operations researchers use a technique known as linear programming. Answering the following questions will help you understand this technique : Exploring the Problem One way to approach the problem is to make some guesses and test the profit generated by each guess. Suppose Gates Williams decides the company should make 20 of each model. 1. How much profit would be generated? 2. Is there enough installation time available to make that number of each model? 3. Answer the same two questions if Gates Williams decides to make: a. 10 Simplex and 30 Omniplex b. 30 Simplex and 10 Omniplex 4. Can you find a production mix for which there is enough installation time? 5. How much profit do the production rates you found generate for the company? Copyright 2010 North Carolina State University: MINDSET 2-6

7 2.1.2: A Visual Approach Sometimes, it is helpful to visualize things. The numbers, variables, and their relationships in a problem can be represented by a graph. Before graphing the Computer Flips problem, you must translate the information in the problem into mathematical statements equations or inequalities. 6. Let x 1 = the weekly production rate of Simplex computers, and x 2 = the weekly production rate of Omniplex computers. Write an equation for the amount of weekly profit, z, the company would earn. The variables x 1 and x 2 are called decision variables. Gates Williams will use them to help make his decision. The equation you have written expresses the weekly profit, z, as a function of x 1 and x 2. Because the objective is to maximize profit, it is called the objective function. 7. Write an algebraic expression in terms of x 1 and x 2 that represents the total number of minutes of installation time required in order to produce x 1 Simplex and x 2 Omniplex computers each week. 8. What is the total amount of installation time available per week? 9. Write a mathematical statement that captures the relationship between the installation time required to produce x 1 Simplex and x 2 Omniplex computers each week and the amount of available installation time each week. 10. Can Computer Flips produce a negative number of either model? 11. Write mathematical statements that capture your answer to the previous question. 12. On the same coordinate axes, graph each of the three mathematical statements you have written. For uniformity, place x 1 on the horizontal axis and x 2 on the vertical axis. 13. What do the points that satisfy all three mathematical statements represent? 2.1.3: Graphing the Problem Based on your work in the previous section, it should be clear that Gates Williams cannot decide to make any number he chooses of each model of computer each week. That is because there is only a certain amount of installation time available each week. We say that the available installation time constrains the number of Simplex and Omniplex computers that can be made each week. We call the inequality that captures this relationship a constraint. Since the other Copyright 2010 North Carolina State University: MINDSET 2-7

8 two inequalities express the fact that the decision variables in this problem cannot be negative, they are called the non-negativity constraints. Each of the points that satisfies each of the constraint inequalities represents a mix of Simplex and Omniplex computers that could be produced each week. We call that region of the coordinate system the feasible region, because those points represent feasible production mixes. 14. Choose any point in the feasible region, and compute the weekly profit that would be generated by producing that mix of Simplex and Omniplex computers. 15. Choose a second point in the feasible region that generates the same weekly profit as the first point. Draw a line through the two points. Every point on the line you have drawn generates the same weekly profit. For this reason, such a line is called a line of constant profit. 16. Choose two more points in the feasible region, and compute the weekly profit for each. Now find a companion point for each that generates the same weekly profit, and draw the two new lines of constant profit. 17. What do you notice about the three lines you have drawn? 18. Which of them generates the largest weekly profit? 19. Where does the line that generates the largest weekly profit of all intersect the feasible region? 2.1.4: Solving the Problem Hopefully, the previous line of investigation has suggested that the point or points representing the largest possible weekly profit are close to the boundary of the feasible region. 20. Choose a point on the boundary of the feasible region, but not at a corner (vertex), and evaluate the profit there. 21. Continue to choose points on the boundary, but try to increase the amount of profit each time. 22. Finally, evaluate the profit at each of the corner points of the feasible region. 23. What is the relationship between the corner points and the set of constraints? 24. At which of the points for which you have evaluated the profit is the profit the greatest? How would you describe this point? The point at which the profit is maximized is called the optimal solution. If a linear programming problem has a unique optimal solution, where in the feasible region do you think it occurs? 2.1.5: Complicating the Problem After several weeks of operation, one of the students in the sales department of Computer Flips does some market research. Based on this research, she decides that the company cannot sell more than 20 Simplex computers in any given week. 25. Write an inequality that expresses this market constraint. Copyright 2010 North Carolina State University: MINDSET 2-8

9 26. Graph the new system of constraint inequalities. What do you notice about the optimal solution you found earlier? What is the optimal solution after adding the market constraint? Now the students in the sales department of Computer Flips decide to extend the market research to the Omniplex model. On the basis of their research, they decide that Computer Flips cannot sell more than 16 Omniplex computers in any given week. 27. Write an inequality for this new market constraint, and graph the new feasible region. 28. Does the previous optimal solution lie in the new feasible region? 29. What is the optimal solution after the addition of the second market constraint? The students at Computer Flips notice that they are getting a lot of returns. Every computer that was returned had a problem with one of the add-ons. They realize that they need to test their finished products before shipping them. They decide to assign the task of testing the computers to only one of the student installers. To accommodate this change, the other four student installers agree to work 10 hours per week, so that the total available installation time remains 40 hours per week. The student who will do the testing also works 10 hours per week. It takes her 20 minutes to test a Simplex and 24 minutes to test an Omniplex. 30. Write an inequality for the testing constraint based on the information in the previous paragraph. 31. Graph the new feasible region. 32. How does the new constraint change the feasible region? 33. Using the new feasible region, what is the optimal solution? 2.1.6: Success Breeds An Even More Complicated Problem Computer Flips has some initial success, so the students are considering producing two additional models: Multiplex and Megaplex. Multiplex will have more add-ons than Simplex, but not as many as Omniplex. Each Multiplex will generate $250 profit. Megaplex, as the name implies, will have more add-ons than any of the other models. Each Megaplex will generate $400 profit. 34. How has the addition of two more computer models changed the structure of the problem? Copyright 2010 North Carolina State University: MINDSET 2-9

10 35. What are the decision variables in the new problem? 36. How does the number of decision variables complicate the problem? To formulate a linear programming problem means to define the decision variables, define an objective function in terms of the decision variables, and state any constraints in terms of the decision variables. The installation and testing times for each Multiplex and Megaplex computer appear in Table In addition, market research indicates that the combined sales of Simplex and Multiplex cannot exceed 20 computers per week, and the combined sales of Omniplex and Megaplex cannot exceed 16 computers per week. Multiplex Megaplex Installation time 90 min. 150 min. Testing time 24 min. 30 min. Table 2.1.1: Installation and testing times 37. Using the information in the preceding paragraph, formulate the problem after the Multiplex and Megaplex models have been added to the product mix. [FK Level: 9.9] Copyright 2010 North Carolina State University: MINDSET 2-10

11 Problem 2.2: SK8MAN, Inc. SK8MAN, Inc., manufactures and sells skateboards. A skateboard is made of a deck, two Figure 2.2.1: A skateboard truck trucks that hold the wheels (see Figure 2.2.1), four wheels, and a piece of grip tape. SK8MAN manufactures the decks of skateboards in its own Figure 2.2.2: Sporty and Fancy factory and purchases the rest of the components. Currently, SK8MAN manufactures two types of skateboards: Sporty (Figure 2.2.2, top) and Fancy (Figure 2.2.2, bottom). G. F. Hurley, the production manager at SK8MAN, needs to decide the production rate for each type of skateboard in order to make the most profit. Each Sporty board earns $15 profit, and each Fancy board earns $35 profit. However, Mr. Hurley might not be able to produce as many boards of either style as he would like, because some of the necessary resources are limited. We say that the production rates are constrained by the availability of the resources. To produce a skateboard deck, the wood must be glued and pressed, then shaped. After a deck has been produced, the trucks and wheels are added to the deck to complete a skateboard. Figure 2.2.3: Maple veneers in a hydraulic press Figure 2.2.4: Shaping a deck Skateboard decks are made of either North American maple or Chinese maple. A large piece of maple wood is peeled into very thin layers called veneers. A total of seven veneers are glued at a gluing machine and then placed in a hydraulic press for a period of time (See Figure 2.2.3). After the glued veneers are removed from the press, eight holes are drilled for the trunk mounts. Then the new deck goes into a series of shaping, sanding, and painting processes. Figure shows a deck during the shaping process. Copyright 2010 North Carolina State University: MINDSET 2-11

12 The Sporty board is a less expensive product, because its quality is not as good as the Fancy board. Chinese maple is used in the manufacture of Sporty decks. North American maple is used for Fancy decks. Because Chinese maple is soft, it is easier to shape. On average, it takes a worker 5 minutes to shape a Sporty board. However, a Fancy board requires 15 minutes to shape. If SK8MAN, Inc., is open for 8 hours a day, 5 days a week, what is the maximum profit per week, and what production rates of Sportys and Fancys produce that maximum? 2.2.1: Problem Formulation The first step in the formulation of a linear programming problem is to define the decision variables in the problem. The decision variables are then used to define the objective function. This function captures the goal in the problem. In the SK8MAN problem, the goal is to maximize the company s profits per week. Therefore, the objective function should represent the weekly profit. That profit comes from the sale of the two different styles of skateboards, so we may begin the problem formulation with: Let: x 1 the weekly production rate of Sporty boards, x 2 the weekly production rate of Fancy boards, and z the amount of profit SK8MAN, Inc earns per week. Now, since we know the profit for each style of skateboard, we can write the objective function by expressing z in terms of x 1 and x 2 : z 15x 1 35x 2. The last step in the formulation of the problem is to represent any constraints in terms of the decision variables. In this case, Mr. Hurley cannot just decide to make as many boards as he wants, because the number made is constrained by the available shaping time. Eight hours per day, five days per week is a 40-hour workweek. However, the information about shaping time is expressed in minutes, so we convert 40 hours to 2,400 minutes. Now, if SK8MAN makes x 1 Sportys and x 2 Fancys per week, that uses 5x 1 15x 2 minutes of shaping time. Thus, the shaping time constraint is 5x 1 15x There are also two not-so-obvious, but completely logical constraints. Since the production rate cannot be a negative number for either type of skateboard, x 1 0 and x 2 0. We call these last two inequalities the non-negativity constraints. Finally, the problem formulation written out all together looks like this: Let: x 1 the weekly production rate of Sporty boards, x 2 the weekly production rate of Fancy boards, and z the amount of profit SK8MAN, Inc earns per week. Maximize: z 15x 1 35x 2, subject to: 5x 1 15x and x 1, x 2 0. Copyright 2010 North Carolina State University: MINDSET 2-12

13 Now that the problem has been formulated, we will solve it graphically. To do so, we set up a coordinate plane with x 1 as the horizontal axis and x 2 as the vertical axis. Then, we graph the constraints, as shown in Figure x 2 (0, 160) 5x 15x (0, 0) 50 (480, 0) x 1 Figure 2.2.5: Graph of the system of constraints Every point in the shaded region satisfies all three constraints. Thus, every point in the shaded region is a solution to the system of linear inequalities, and there are an infinite number of points. This shaded region is called the feasible region. Each ordered pair in the feasible region represents a combination of Fancys and Sportys that SK8MAN, Inc., could produce without violating any of the constraints. The solution to our problem of maximizing profit requires us to pick the one mix of products that will generate the most profit, our objective function. If 5x 1 15x , then x x x 1 is an equivalent equation written in slopeintercept form, according to how we graphed the constraints. Keep in mind that our decision variables are the weekly production rates for both types of skateboards. Thus, the profit generated by a particular mix of products is not a variable. Let us suppose SK8MAN, Inc., generates $3,500 of profit each week x 1 35x 2 represents this situation algebraically, and the graph in Figure represents it geometrically. If $0 of profit were made, then the equation would be 0 15x 1 35x 2. A $7,000 weekly profit would mean x 1 35x 2. As you can see in the graph in Figure 2.2.7, all these lines are parallel; only their vertical intercepts are changing. Each equation represents a line of constant profit. For example, (0, 100), (120, 49), and (233.33, 10) are collinear, and each coordinate pair generates a profit of $3,500 when substituted into the objective function. Copyright 2010 North Carolina State University: MINDSET 2-13

14 x 2 z = 3500 (0, 160) 0, , 49 (0, 0) 233 1,0 (480, 0) 50 3 Figure 2.2.6: Feasible region with line of constant profit of $3,500 x 1 x 2 z = 0 z = 3500 z = 7000 z = 7200 z = 8750 (0, 160) Figure 2.2.7: Feasible region with several lines of constant profit The coordinates of every point on a particular line of constant profit represent a mix of products that generates that amount of profit. When the weekly profit is assumed to be $3,500, you can see there is an infinite number of points on that line that lie within the feasible region. If we were to continue to graph lines with increasingly large values for profit, we would eventually happen upon a line that intersects the feasible region at just one point. If the value of z were made any larger, none of points on the new line would intersect the feasible region. The maximum profit for SK8MAN, Inc., subject to its constraints, is $7,200 per week. To realize this maximum, SK8MAN, Inc., should produce 480 Sporty skateboards and 0 Fancy skateboards. Notice that the optimal product mix occurs at one of the three corners of the feasible region : Adding a New Constraint 50 Now, suppose the company that supplies the trucks for SK8MAN s boards announces that it can provide at most 2,800 trucks per month. Does this new information affect the optimal product mix? Remember that each skateboard needs two trucks, and consider a month to be four weeks. This new information represents another constraint. The decision variables, objective function, and earlier constraints still apply. Maximize: z 15x 1 35x 2, (0, 0) 50 (480, 0) x 1 Copyright 2010 North Carolina State University: MINDSET 2-14

15 subject to: 5x 1 15x , 2x 1 2x 2 700, and x 1, x 2 0. x 2 z = 0 z = 3500 z = 6550 z = x 2x (0, 160) 50 (285, 65) (0, 0) 50 (350, 0) Figure 2.2.8: The feasible region after adding the truck constraint By graphing the new constraint (see Figure 2.2.8), we can see that the feasible region changes. Our previous optimal solution is no longer included. Graphing several lines of constant profit reveals the optimal solution occurs at the point (285, 65). Notice that as the amount of constant profit increases, the lines are higher and further right in the first quadrant. Try to visualize a single line moving upward or to the right while its slope remains constant. The last point in the feasible region that such a moving line touches will be the optimal solution, because the profit is the greatest of any feasible point. Notice also that this point must be a corner point of the feasible region. In fact, this will generally be the case, and it is called the corner point principle: If there is a unique solution to a linear programming problem, it must occur at a corner point of the feasible region. The corner point principle allows us to simply evaluate the objective function at each corner point of the feasible region. Instead of having an infinite number of possibilities for the optimal solution, we have only as many possibilities as there are corners of the feasible region. Table shows those computations as well as the constraint boundaries that intersect to form each corner point. Now we can easily see that the maximum weekly profit SK8MAN, Inc., can earn is $6,550, and the company does so by manufacturing 285 Sporty skateboards and 65 Fancy skateboards each week. Constraint Boundaries Corner Point Objective Function Profit x 1 0, x 2 0 (0, 0) 15(0) + 35(0) $0 2x 1 2x 2 700, x 2 0 (350, 0) 15(350) + 35(0) $5,250 2x 1 2x 2 700, 5x 1 15x (285, 65) 15(285) + 35(65) $6,550 x 1 0, 5x 1 15x (0, 160) 15(0) + 35(160) $5,600 Table 2.2.1: Evaluating the objective function at each corner point of the feasible region x 1 Copyright 2010 North Carolina State University: MINDSET 2-15

16 2.2.3: Adding a Third Constraint The U.S. Congress recently enacted legislation regulating the consumption of North American maple by U.S. manufacturers. As a consequence, SK8MAN, Inc. s supplier has told the company that it can provide no more than 840 veneers per week. How does this law affect the optimal product mix? The law leads to a new constraint. Again, the decision variables, objective function, and previous constraints remain unchanged. Maximize: z 15x 1 35x 2, subject to: 5x 1 15x , 2x 1 2x 2 700, 7x 2 840, and x 1, x 2 0. x 2 (0, 120) 50 0,0 50 (120, 120) (285, 65) (350, 0) 7x2 840 x 1 Figure 2.2.9: The feasible region after adding the North American maple constraint When the new constraint is graphed (see Figure 2.2.9), we can see that the feasible region changes, but our previous optimal solution is still included. Applying the corner point principle confirms that the maximum profit is unchanged, because the optimal solution without the North American maple constraint remains in the feasible region after the North American maple constraint is added to the formulation. Table shows the corner point calculations with the new constraint added to the formulation. Constraint Boundaries Corner Point Profit Function Profit x 1 0, x 2 0 (0, 0) 15(0) + 35(0) $0 2x 1 2x 2 700, x 2 0 (350, 0) 15(350) + 35(0) $5,250 2x 1 2x 2 700, 5x 1 15x (285, 65) 15(285) + 35(65) $6,550 7x 2 840, 5x 1 15x (120, 120) 15(120) + 35(120) $6,000 x 1 0, 5x 1 15x (0, 120) 15(0) + 35(120) $4,200 Table 2.2.2: Evaluating the objective function at each corner point of the new feasible region Copyright 2010 North Carolina State University: MINDSET 2-16

17 Since the North American maple constraint has no affect on the optimal product mix, it is called a nonbinding constraint. Notice that the optimal product mix produces 285 Sportys and 65 Fancys per week. Since the Sporty boards do not use North American maple, and the Fancy boards use 7 North American maple veneers per board, the optimal product mix uses only 65(7) = 455 of the 840 available North American maple veneers. Because not all of the available resource is expended in producing the optimal solution, we say there is a slack of = : A Fourth Constraint Finally, SK8MAN, Inc. s Chinese maple supplier has decided to limit its exports and will deliver a maximum of 1,470 veneers per week. Now what mix of products will maximize weekly profit? As before, this information leads to a new constraint, but the decision variables, objective function, and previous constraints remain the same. Maximize: z 15x 1 35x 2, subject to: 5x 1 15x , 2x 1 2x 2 700, 7x 2 840, 7x 1 1,470, and x 1, x 2 0. x 2 7x1 1,470 (0, 120) 50 (120, 120) (210, 90) (0, 0) 50 (210, 0) x 1 Figure : The feasible region after adding the Chinese maple constraint As the graph in Figure shows, the feasible region again changes. The previous optimal solution, (285, 65), is no longer feasible, so we must test each corner point. Notice that the corner points created by the boundary of the Chinese maple constraint are new. Copyright 2010 North Carolina State University: MINDSET 2-17

18 Constraint Boundaries Corner Point Profit Function Profit x 1 0, x 2 0 (0, 0) 15(0) + 35(0) $0 7x , x 2 0 (210, 0) 15(210) + 35(0) $3,150 7x , 5x 1 15x (210, 90) 15(210) + 35(90) $6,300 7x 2 840, 5x 1 15x (120, 120) 15(120) + 35(120) $6,000 x 1 0, 5x 1 15x (0, 120) 15(0) + 35(1200) $4,200 Table 2.2.3: Evaluating the objective function after the last constraint is added Now SK8MAN, Inc. s maximum profit is $6,300 per week. The product mix that achieves that profit is 210 Sportys and 90 Fancys. Notice the tendency for maximum profit to decrease as the number of constraints increases : Adding a Third Decision Variable SK8MAN is introducing a new product, Pool-Runner, which is made from Chinese maple. It is wider and shorter compared to the Sporty so that it will be easy to use in a pool. It takes 4 minutes to shape a Pool-Runner, and SK8MAN, Inc., earns $20 for each one sold. What will be the new constraints, and what is the optimal product mix? 2.2.6: Problem Formulation with Three Decision Variables Let: x 1 the weekly production rate of Sportys, x 2 the weekly production rate of Fancys, x 3 the weekly production rate of Pool-Runners, and z the amount of profit SK8MAN earns per week. Maximize: z 15x 1 35x 2 20x 3, subject to: 5x 1 15x 2 4x (shaping time constraint), 2x 1 2x 2 2x (truck constraint), x (North American maple constraint), 7x 1 7x 3 1,470 (Chinese maple constraint), and Copyright 2010 North Carolina State University: MINDSET 2-18

19 x 1, x 2, x 3 0 (non-negativity constraints). Adding the third decision variable, x 3, makes it very difficult to solve this problem graphically. Three decision variables means that we need three dimensions in which to graph the feasible region. While it is possible to do so, visualizing such a feasible region is very difficult for most people. There are two other possible ways to solve linear programming problems involving three or more decision variables. The first way is to apply a paper-and-pencil algorithm called the Simplex Method. This algorithm is explained in the Enrichment section at the end of the chapter. Another way to solve this and similar problems is to use a spreadsheet solver, which applies a computer algorithm to solve linear programming problems. The following directions will walk you through the steps needed to use the Excel Solver to solve this problem : Using the Excel Solver Step 1: Open Excel and go to Tools on the menu bar. If the Solver option in the Tools drop-down menu is not available, we need to add it. To add Solver, we go to Add-Ins under the Tools menu and click on it. The Add-Ins window will appear, and we will check the Solver Add-In box and then click OK. We are now ready to set up a spreadsheet. Step 2: Setting up the spreadsheet is easy. We just type the following into the cells, as shown in Figure Notice that the coefficients for each decision variable are in the same column as the decision variable above them. Cells B5, C5, and D5 are empty. Empty cells are treated as zero values. These cells are where Solver will put the values it computes for the decision variables once Solver is run. Because the values in these cells are continually changing, Solver calls them changing cells. Figure : Setting up the problem formulation in an Excel spreadsheet Copyright 2010 North Carolina State University: MINDSET 2-19

20 Step 3: We need to define each of the constraints mathematically so that Solver will know what to compute. To do this we will go to cell E8 and type in: =B$5*B8+C$5*C8+D$5*D8 Note that this expression computes the sum total of the shaping time that is consumed by a particular set of values of the three decision variables. The dollar signs tell us that row 5 is a fixed row. In other words, the Solver will hold the exact values in that row and will not change them. The formula multiplies the value of each of the decision variables used by Solver by each of the coefficients for the shaping time constraint and computes a total (see Figure ). Notice we have not run Solver to find values for the decision variables, so the program assumes they are all zero. This is why a zero appears after the formula for the left-hand side of the constraint is typed in. Figure : Defining the constraints in the spreadsheet Next, we will set up a formula like this for the left-hand side of each of the remaining constraints. We will set up the non-negativity constraints later. We will type the following in each of the cells noted below: E9: =B$5*B9+C$5*C9+D$5*D9 E10: =B$5*B10+C$5*C10+D$5*D10 E11: =B$5*B11+C$5*C11+D$5*D11 Our spreadsheet should look like the one in Fig Copyright 2010 North Carolina State University: MINDSET 2-20

21 Figure : The spreadsheet with formulas for all four constraints added Step 4: Next, we need to define the objective function so that Solver will know what to optimize. The objective function will be typed into cell G7. Select cell G7 and type the following: =B$5*B7+C$5*C7+D$5*D7 Notice that a 0 appears when we are done. Right now there is no profit, since the values of the decision variables are 0. This equation will compute the maximum profit once we set up and run Solver. Our spreadsheet should now look like the one in Figure Figure : The spreadsheet with the objective function added Copyright 2010 North Carolina State University: MINDSET 2-21

22 Step 5: For convenience, we will add labels to our spreadsheet. This will help us when we set up Solver. We also need to add the right-hand side of each constraint, which is the amount of each resource that is available. We will add the following to cells F8 through F11 and G8 through G11 of our spreadsheet. F8: <= G8: 2400 F9: <= G9: 700 F10: <= G10: 840 F11: <= G11: 1470 Our spreadsheet should now look like the one in Figure Notice that the amount of each resource that is consumed for a particular set of values of the decision variables will be displayed in column E, and those amounts must be less than or equal to the amount of each resource available that appears in column G. Figure : The spreadsheet with the SK8MAN problem completely formulated Step 6: Before we can solve the problem, we have to set up parameters in the Solver program. These parameters include all of the parts of the problem formulation: the decision variables, objective function, and constraints. We need to tell Solver where in the spreadsheet each of these parameters is located. We need to be sure we are located on cell G7 before we do the following: Go to the Tools menu and choose Solver. A Solver Parameters window should come up with the target cell being $G$7 (see Figure ). Notice that the target cell is the cell in which we defined the objective function. The dollar signs merely indicate that specific cell. When the Solver Parameters window is opened, if cell G7, containing the value of the objective function, is not already selected, we can select it now. Copyright 2010 North Carolina State University: MINDSET 2-22

23 Figure : Beginning the Solver Parameters setup Recall that the subtitle of our spreadsheet is Maximization Problem. The reason for having the subtitle is to remind us that for this problem we are finding a maximum value. In the Solver Parameters window, we make sure the Max circle is filled in. Next, look at the By Changing Cells title. This is another way of saying variables or variable cells. We need to tell the Solver that our decision variable cells are B5, C5, and D5. We can type B5, C5, and D5 or use the shortcut B5:D5. When we are done, click inside the box labeled Subject to the Constraints. Solver will add dollar signs in the cell names, and you can leave them as they are. Now we will add the constraints, one at a time. Click Add. As shown in Figure , another window will appear titled Add Constraint. We want the value of the formula we put in Copyright 2010 North Carolina State University: MINDSET 2-23

24 Figure : The Add Constraint window cell E8 to be less than or equal to cell G8, or 2,400. To do this we type E8 into Cell Reference and G8 into Constraint. The inequality symbol can be changed by using the drop-down menu. In this case we want to leave it as is. Click Add and then continue to the next constraint. We want E9 to be less than or equal to G9, so we type E9 into Cell Reference and G8 into Constraint and then click Add. E10 should be less than or equal to G10, so we enter these cell addresses into the appropriate boxes and then click Add. Finally, E11 should be less than or equal to G11, so repeat the procedure for these cells and then click OK. When we finish, we close the window. Our constraints should be listed in the Subject to the Constraints box in the Solver Parameters window (see Figure below). Copyright 2010 North Carolina State University: MINDSET 2-24

25 Figure : Continuing to set problem parameters in Solver Step 7: We did not include the non-negativity constraints, because the Solver has a shortcut for doing so. Click on the Options button in the Solver Parameters window. A new window appears titled Solver Options. Check the box that says Assume Non-Negative. We also want to check the box that says Assume Linear Model. When you are done, click OK (see Figure ). Copyright 2010 North Carolina State University: MINDSET 2-25

26 Figure : Adding the Solver Options Step 8: Now we are ready to solve. Making sure that cell G7 is selected, as it is in Figure above, we click Solve, the Solver Results window pops up, and the results appear in the spreadsheet, as shown in Figure Copyright 2010 North Carolina State University: MINDSET 2-26

27 Figure : Solver has solved the three-decision-variable SK8MAN problem We can observe the optimal product mix that results in the greatest profit for SK8MAN. The program gives us the option of restoring our original values or keeping the Solver s solution. The program also gives us the option of creating one or all three types of reports. For this example we will create an Answer Report that will appear as a tab (see Figure ). The Answer Report summarizes the results. What does this report mean? Notice that the optimal product mix calls for producing 104 Fancys, 210 Pool-Runners, and 0 Sportys (x 1 has a final value of 0) per week. Notice also that two of the constraints are labeled binding, two are labeled nonbinding, and there is a slack amount reported for each constraint. What is the Solver telling us here? For each constraint, compare the cell value in the Answer Report with the amount of that resource available recorded in column G. Now consider the slack amount for each constraint. Notice that the cell values for shaping time and Chinese maple are equal to the corresponding numbers recorded in column G. That means all of those resources have been consumed, and the slack amount is 0. On the other hand, for the other two constraints, the slack amount equals the number in column G minus the cell value in the Answer Report. This tells us how much of those two resources is left over. Copyright 2010 North Carolina State University: MINDSET 2-27

28 Figure : The Answer Report for the three-decision-variable SK8MAN problem 2.2.8: Even More Decision Variables SK8MAN, Inc., wants to increase its product variety with different colors and decorations. SK8MAN decides to produce three more products in addition to Sporty, Fancy, and Pool- Runner. The new products will be named Pool-Beauty, Recluse, and Ringer. Each Pool-Beauty will earn $22 profit, is manufactured using North American maple, and requires 10 minutes of shaping time. Each Recluse will earn $17 profit, is made of Chinese maple, and requires 7 minutes of shaping time. Each Ringer will earn $19 profit, is made of Chinese maple, and uses 4 minutes of shaping time. Since SK8MAN only purchases trucks from a single supplier, the three new products are also subject to the truck availability constraint. Since the SK8MAN products will differ from one another in color and decoration, they have added a worker to do screen-printing, and we must take into account the time required for screen-printing each deck as well as the available time for doing so. The screen-printing times appear in Table 2.2.4, and we know that SK8MAN is open for 8 hours a day, 5 days a week. However, SK8MAN is now providing all of its workers with two 15-minute breaks each day, so Copyright 2010 North Carolina State University: MINDSET 2-28

29 the total time available for both the screen-printing and shaping operations must be adjusted accordingly. Product Sporty Fancy Pool- Pool- Recluse Ringer Runner Beauty Time (min.) Table 2.2.4: Screen-printing time for each skateboard 2.2.9: Problem Formulation with Six Decision Variables Let: x 1 the weekly production rate for Sporty boards, x 2 the weekly production rate for Fancy boards, x 3 the weekly production rate for Pool-Runner boards, x 4 the weekly production rate for Pool-Beauty boards, x 5 the weekly production rate for Recluse boards, x 6 the weekly production rate for Ringer boards, and z the amount of profit SK8MAN earns per week. Maximize: z 15x 1 35x 2 20x 3 22x 4 17x 5 19x 6, subject to: 5x 1 15x 2 4x 3 10x 4 7x 5 4x , 2x 1 2x 2 2x 3 2x 4 2x 5 2x 6 700, 7x 2 7x 4 840, 7x 1 7x 3 7x 5 7x , 7x 1 10x 2 8x 3 10x 4 5x 5 6x , and x i 0, for each i 1,2,K,6. This problem has six decision variables. We cannot even visualize a graphical solution, so we must employ Solver to find a solution. Figure displays the spreadsheet after Solver has been used to find a solution. Copyright 2010 North Carolina State University: MINDSET 2-29

30 SK8MAN, Inc. Maximization Problem Sporty Fancy Recluse Pool- Beauty Pool- Runner Ringer Decision Variables x1 x2 x3 x4 x5 x6 Dec. Variable Values Objective Function Shaping constraint <= 2250 Truck constraint <= 700 Am. Maple constraint <= 840 Chin. Maple constraint <= 1470 Screen-Print constraint <= 2250 Figure : Solver results for the SK8MAN problem having six decision variables The Solver Answer Report appears in Figure Notice that the optimal product mix is to produce 0 Sportys, 94 Fancys, 25 Pool-Runners, 0 Pool-Beautys, 0 Recluses, and 185 Ringers. Notice also that the profit realized in this case is less than in the previous example, which had only three possible products in the mix rather than six. In general, increasing the number of decision variables (products) should increase the profit. What characteristics of this six-decisionvariable problem do you think caused a lower profit? Looking at the Constraints section of the Solver Answer Report, three of the constraints are marked Binding, while the other two are marked Not Binding. Notice that for each of the binding constraints, the value of the cell containing the formula for the left-hand side of the constraint inequality is exactly equal to the right-hand side of the constraint. However, for the two nonbinding constraints, the cell value is less than the right-hand side of the constraint. There also is a nonzero number listed in the column labeled Slack. The slack value is the difference between the left-hand and right-hand sides of the constraint, and may be thought of as the amount of that particular resource that is not used up by the optimal solution. For example, SK8MAN could use 840 North American maple veneers per week, but the optimal solution to this problem uses only 658 of them, resulting in a slack amount of 182 veneers. On the other hand, SK8MAN can use only 2,250 hours of shaping time in this problem, and the optimal solution to this problem completely exhausts that resource. Thus, there is no slack in the shaping time constraint. Copyright 2010 North Carolina State University: MINDSET 2-30

31 Microsoft Excel 10.0 Answer Report Worksheet: [SK8MAN-6 rev.xls]sheet1 Report Created: 9/4/2007 2:57:05 PM Target Cell (Max) Cell Name Original Value Final Value $J$7 Objective Function Adjustable Cells Cell Name Original Value Final Value $B$5 Decision Variable x1 0 0 $C$5 Decision Variable x $D$5 Decision Variable x $E$5 Decision Variable x4 0 0 $F$5 Decision Variable x5 0 0 $G$5 Decision Variable x Constraints Cell Name Cell Value Formula Status Slack $H$8 Shaping constraint 2250 $H$8<=$J$8 Binding 0 $H$9 Truck constraint 608 $H$9<=$J$9 Not Binding 92 $H$10 Am. Maple constraint 658 $H$10<=$J$10 Not Binding 182 $H$11 Chin. Maple constraint 1470 $H$11<=$J$11 Binding 0 $H$12 Screen-Print constraint 2250 $H$12<=$J$12 Binding 0 Figure : The Solver Answer Report for the six-decision-variable SK8MAN problem Copyright 2010 North Carolina State University: MINDSET 2-31

32 2.2.10: The Simplex Method (Optional) New Concepts RHS, LHS Slack variables Basis Iteration Matrices o Augmented o Pivot o Canonical form o Row operations Simplex algorithm o Starting o Direction o Comparison o Stopping o Interpreting x 2 (0,350) (0,160) (0, 120) 50 (120, 120) (230,120) (285, 65) (0, 0) 50 (350, 0) (480,0) x 1 Figure : Graph of feasible region with two decision variables and three constraints showing path of the simplex method Copyright 2010 North Carolina State University: MINDSET 2-32

33 The simplex method is an algorithm used to solve linear programming problems. It can be used for solving complex problems, but we will demonstrate a case with just two decision variables in order to visualize the process more easily. Recall the situation from section 1 when we were maximizing a profit function with five constraints. The formulation was: Let: x 1 the number of Sporty boards produced per week, x 2 the number of Fancy boards produced per week, and z the amount of profit SK8MAN, Inc. earns per week. Maximize: z 15x 1 35x 2, subject to: 5x 1 15x , 2x 1 2x 2 700, 7x 2 840, and x 1, x 2 0. In the graph of the above system of equations, there are nine points of intersection between any two constraint lines. Although the feasible region has just five corner points, the simplex method considers all nine points of intersection. x 2 (0,350) (0,160) (0, 120) 50 (120, 120) (230,120) (285, 65) (0, 0) 50 (350, 0) (480,0) Figure : The feasible region for the SK8MAN problem with two decision variables and five constraints While this problem can be solved graphically, the simplex method lets us approach it algebraically. The process begins at one corner point. The origin is an ideal starting point, because there is zero profit when no products are produced. We evaluate the objective function there, and then we move along an edge of the feasible region to an adjacent corner point and evaluate the objective function there. We continue this process until it is impossible to move to an adjacent corner point where the objective function will be greater than the current corner point. Because this process involves repeating the same steps over and over, it is said to be iterative. The profit at the corner point whose associated profit is greater than that of all its neighbors will be the greatest profit possible. In other words, any local maximum is also the global maximum. x 1 Copyright 2010 North Carolina State University: MINDSET 2-33

34 Conceptual review of the simplex method for a profit maximization problem: 1. Evaluate the objective function at the origin. 2. Moving in the direction of greatest increase, evaluate the objective function at a neighboring corner point. 3. Continue moving to an adjacent corner point until an increase in the objective function is not possible. 4. The corner point where the objective function is greater than its neighbors is the maximum : The Algebra of the Simplex Method The simplex method relies on a matrix. Algebraic manipulation of a matrix is much simpler for equations than it is for inequalities. That being the case, we need to change our constraints from inequalities to equalities. The first three constraints from above: 5x115x2 2400, 2x 2x 700, and 1 2 7x represent the limitations of shaping time, available trucks, and North American maple, respectively. To change these inequalities into equations, we must introduce slack variables. A slack variable represents the amount of a resource left over after any particular mix of products has been produced. Let: s the number of excess minutes of shaping time, t the number of excess trucks, and m the number of excess North American maple veneers. We can now rewrite our constraints as equations. 5x 15x 1s0t0m 2400 (shaping time constraint), 1 2 2x 2x 0x1t0m 700 (truck availability constraint), and 1 2 0x 7x 0s0t1m 840 (North American maple constraint). 1 2 Our objective function can also be written to include the slack variables. z 15x 35x 0s0t 0m 1 2 Why are the coefficients of the slack variables in the above four equations the values they are? The format of all equations we include in the matrix needs to be consistent, with all of the coefficients of the variables on the left-hand side and the values that they generate on the righthand side. For our example, that means the right-hand side of the objective function needs to be a constant term, so we subtract all of the terms on the right-hand side from both sides of the equation. Copyright 2010 North Carolina State University: MINDSET 2-34

35 z 15x 35x 0s0t 0m 1 2 z 15x 35x 0s0t0m z15x 35x 0s0t0m With our objective function and constraint equations all in standard form, we are ready to create the matrix. Each column in the matrix will correspond to one of the variables in our system of equations. The top row of the matrix will always represent the objective function. The bottom three rows show which three variables are in our basis. The basis refers to the output of the current production mix. x 1 x 2 s t m Solution Basis 0 z s t m This matrix shows s, t, and m in the basis because our starting point for the simplex method is the origin. The origin represents a production mix of 0 Sportys (x 1 ) and 0 Fancys (x 2 ), so the output is merely leftover shaping time, trucks, and North American maple veneers. The solution column of the matrix shows that for that production mix, we make 0 profit and have 2,400 minutes of shaping time, 700 trucks, and 840 North American veneers left over. Why do these values make sense when starting at the origin? Notice the columns corresponding to the variables in the basis. The basis variables are s, t, and m, and those columns all contain a single 1, and every other number in the column is 0. When this is the case, those columns are said to be in canonical form. Mathematicians have proven that the simplex method always maintains the canonical form of the current basis. The next step in the simplex method calls for us to move in the direction of greatest increase. At the origin we are making 0 Sportys and 0 Fancys. Our next corner point to check will involve either building some Sportys or some Fancys. This means we are either going to add Sportys or Fancys to our basis, and whichever resource we run out of first will leave the basis. To determine which product will enter the basis, we compare the coefficients in the top row of the matrix. The negative coefficient of greatest absolute value, which is the most negative coefficient, represents the product that will generate the greater profit, so that is the one we pick. In our example, we will choose to start producing Fancys. x 1 x 2 s t m Solution Basis 0 z s t m Since we will be making Fancys, eventually we will run out of a resource necessary for their production. When that happens, we will not be able to produce any more. To determine which Copyright 2010 North Carolina State University: MINDSET 2-35

36 resource will leave the basis, we compare the ratios of the right-hand side (solution) and the coefficients from the column entering the basis (x 2 ). The ratio that is smallest shows us which resource we will run out of first and thus will leave the basis. x 1 x 2 s t m Solution Basis 0 z s t m In our example the ratios are as follows minutes shaping time 160 Fancys 15 minutes shaping time per fancy 700 trucks 350 Fancys 2 trucks per fancy 840 North American maple veneers 120 Fancys 7 North American veneers per Fancy These ratios show us that we will run out of North American maple veneers first, so it will be the resource to leave the basis as Fancys enter the basis. The column for Fancys was selected in the first step, and the row for North American maple veneers was selected in the second step. This corresponds to Fancys entering the basis and North American maple veneers leaving the basis. The element of the matrix where this column and row intersect is called the pivot element. x 1 x 2 s t m Solution Ratios Basis 0 z s /15 2 t /2 3 m /7 To pivot a matrix around a particular element means to make that element equal to 1, and all other elements in its column equal to 0. In other words, the pivot column changes to canonical form, with the pivot element being the element that is equal to 1. Pivoting a matrix requires elementary row operations. Just as addition, subtraction, multiplication, and division are basic operations with numbers, there are three basic row operations for matrices: row switching, row multiplication, and row addition. The first elementary row operation, row switching, is precisely what the name suggests: one row is switched with another row. Copyright 2010 North Carolina State University: MINDSET 2-36

37 R R The second elementary row operation, row multiplication, allows you to multiply an entire row by a single number. 3R 1 R The last elementary row operation, row addition, involves adding a multiple of one row to another row R 2 R 3 R The first step in pivoting our matrix will be to make the pivot element equal one. To do this, we multiply the pivot row by the reciprocal of the pivot element R 4 R Next, we will need to make all the other numbers in the pivot column equal to 0. To do this we will use row addition. Each row will require a separate operation. We will multiply the pivot row by the opposite of the number we are to make 0 and then add the product of the pivot row to the row in question. Keep in mind this operation affects the entire row, not just the element in the pivot column. For example, in the first row, there is a 35 in the pivot column. To make the 35 equal 0, we need to multiply the 1 in the pivot row by 35 and add the two together to replace the original first row. 35R R 1 R R R 2 R R 4 R 3 R Adding the row and column headings back to our matrix allows us to get a better picture of what we have accomplished algebraically. Geometrically, this is equivalent to moving from (0, 0) to (0, 120) on the boundary of the feasible region. Copyright 2010 North Carolina State University: MINDSET 2-37

38 x 1 x 2 s t m Solution Basis 0 z s / t / x /7 120 Now we can see that Fancys entered the basis and North American maple veneers left the basis. Notice that the columns for whatever variables are in the basis are also in canonical form. Focusing on the solution column, we can see the production mix represented by this matrix calls for us to make 120 Fancys. This would leave us with 600 excess minutes of shaping time and 460 excess trucks. We would earn a profit of $4,200. Now we go through the process again. Identify the pivot element: the most negative number in the profit row of our current matrix shows the pivot column. Selecting the smallest of the ratios of the right-hand side and the coefficients from the pivot column gives us the pivot row. Notice that one of these ratios is undefined. This occurs because it is the ratio associated with the variable x 2. If x 2 were to leave the basis while x 1 entered the basis, that is the geometric equivalent of moving to the corner point (350, 0). However, the current corner point (0, 120) and the corner point (350, 0) are not adjacent. Thus, there is no way to travel along just one edge of the feasible region to move from one to the other. x 1 x 2 s t m Solution Ratios Basis 0 z s / /5 2 t / /2 3 x / /0 Again we will use elementary row operations to make the pivot element equal to 1 and all other entries in the pivot column equal to R 2 R R R 1 R R 2 R 3 R Copyright 2010 North Carolina State University: MINDSET 2-38

39 As we did previously, we will add the row and column headings to interpret our new matrix. x 1 x 2 s t m Solution Basis 0 z / x /5 0 3/ t 0 0 2/5 1 4/ x /7 120 This production mix has both Sportys and Fancys in the basis. The solution column tells us that if we make 120 Sportys and 120 Fancys, we generate $6,000 of profit. The $6,000 of profit is greater than the $4,200 we would make with the production mix from the previous matrix. Now we go through another iteration of the process. We ll identify the pivot element the same as before and then pivot the matrix about that element. Notice, however, that one of the ratios is negative. This situation arises when you would have to move backward to reach the point of intersection, and doing that is equivalent to moving in the direction of decreasing profit. x 1 x 2 s t m Solution Ratios Basis 0 z / x /5 0 3/ /( 3/7) 2 t 0 0 2/5 1 4/ /(4/7) 3 x / /(1/7) R 3 R R 3 R 1 R R 3 R 2 R R 3 R 4 R Copyright 2010 North Carolina State University: MINDSET 2-39

40 x 1 x 2 s t m Solution Basis 0 z / x /10 3/ m 0 0 7/10 7/ x /10 1/ If we try to go through our process again, we get stuck identifying the pivot column. Since there are no longer any negative numbers in the top row of our matrix, we can stop. The simplex method makes it unnecessary for us to check any other corner points. Doing so would only show us a decrease in the objective function. Our maximum profit will be $6,550, which we earn by making 285 Sportys and 65 Fancys. The following graphs visually review the iterations of the simplex method we performed. We started our process at the origin and then moved in the direction of greatest increase of the objective function. We continued in that direction until we were unable to make a move that would further increase the objective function. Copyright 2010 North Carolina State University: MINDSET 2-40

41 x 2 (0, 120) 50 (120, 120) (285, 65) (0, 0) 50 (350, 0) x 1 Figure : Moving in the direction of greatest increase from the origin x 2 (0, 120) 50 (120, 120) (285, 65) (0, 0) 50 (350, 0) x 1 Figure : Moving to the next corner point of the feasible region x 2 (0, 120) 50 (120, 120) B A (285, 65) C (0, 0) 50 (350, 0) x 1 Figure : Increasing the objective function by moving to the next corner point Copyright 2010 North Carolina State University: MINDSET 2-41

42 At this point, let us investigate the elegance of the simplex method. We will rely on the graph of the feasible region for the discussion. Notice that the points A(250, 50), B(100, 120), and C(285, 65) all lie in the feasible region. Point A, the green point, is in the interior of the feasible region, while B, the red point, is on one of the edges, and C, the purple point, is a corner point. Using the coordinates for each point as the values for x 1 and x 2 and substituting those values into the constraint equations that are part of the simplex formulation, we obtain the following results. A(250, 50): s 400 t 100 m 490 B(100, 120): s 100 t 260 m 0 C(285, 65): s 0 t 0 m 385 Notice that when we compute the values of all the decision variables for a corner point, two of them are equal to 0. In the context of the problem, this tells us that when we make 285 Sportys and 65 Fancys, we will use up all our available shaping time and trucks, but we will have 385 North American maple veneers left over. Since the simplex method only considers corner points, it will always be the case that two of the five decision variables will be equal to 0. The three nonzero decision variables form the current basis. As the simplex method moves from corner point to corner point, it is evaluating a different basis each time. Moving from one corner point to the next changes the basis. As a new decision variable enters the basis, another one is forced to leave. The logic of the simplex method chooses which decision variable enters the basis. In our example, the choice was based on profitability. The mathematics of the problem formulation determines which decision variable leaves the basis. [FK Level: 9.5] Copyright 2010 North Carolina State University: MINDSET 2-42

43 Problem 2.3: The Pallas Sport Shoe Company Interpreting Results The Pallas Sport Shoe Company manufactures six different lines of sport shoes: High Rise, Max- Riser, Stuff It, Zoom, Sprint, and Rocket. Table displays the amount of profit generated by each pair of shoes for each of these six lines. The production manager of the company would like to determine the daily production rates for each line of shoes that will maximize profit. Product High Rise Max-Riser Stuff It Zoom Sprint Rocket Profit $18 $23 $22 $20 $18 $19 Table 2.3.1: Profit per pair for six lines of sport shoes As shown in Figure 2.3.1, there are six main steps in the production of a pair of sport shoes at Pallas. First, the parts that will go together to form the upper portion of the shoe are cut using patterns on a large stamping machine. This process resembles cutting dough with a cookie cutter. Next, these parts are stitched or cemented together to form an upper, and holes for the laces are punched. Then, an insole is stitched to the sides of the upper. The completed upper is then placed on a plastic mold to form the final shape of the shoe. After the upper has been molded, it is cemented to the bottom sole using heat and pressure. Finally, the shoe is inspected, and any excess cement is removed. MOLDING Figure 2.3.1: The steps in manufacturing a sport shoe The time it takes to complete each of these steps differs across the six lines, and the total time available for each process constrains the daily production rates. Table shows the time in Copyright 2010 North Carolina State University: MINDSET 2-43

44 minutes required per pair for each of the six production steps for each of the six lines of sport shoe produced by Pallas, as well as the total number of minutes available per day for each step. Cutting Upper Finishing Insole Stitching Molding Sole-to- Upper Joining Inspecting High Rise Max-Riser Stuff It Zoom Sprint Rocket Total Min. Available 420 1, ,100 2, Table 2.3.2: Time in minutes per step per pair by product line and total time available 2.3.1: Problem Formulation The linear programming formulation of the Pallas Sport Shoe Company problem appears below. Let: x 1 = the daily production rate of High Rise. x 2 = the daily production rate of Max-Riser. x 3 = the daily production rate of Stuff It. x 4 = the daily production rate of Zoom. x 5 = the daily production rate of Sprint. x 6 = the daily production rate of Rocket. Maximize: z = 18x x x x x x 6, subject to: 1.25x 1 + 2x x x 4 + x x 6 420, 3.5x x 2 + 5x 3 + 3x 4 + 4x x 6 1,260, 2x x x x 4 + 3x x 6 840, 5.5x 1 + 6x 2 + 7x x 4 + 8x 5 + 5x 6 2,100, 7.5x x 2 +6x 3 + 7x x x 6 2,100, and 2x 1 + 3x 2 +2x 3 + 3x 4 + 2x 5 + 3x Figure contains this formulation in an Excel spreadsheet format for use with Solver. Copyright 2010 North Carolina State University: MINDSET 2-44

45 Pallas Sport Shoes Maximization Problem Decision Variables x 1 x 2 x 3 x 4 x 5 x 6 Dec. Var. Values Objective Function Constraints: Cutting Time <= 420 Upper Finishing Time <= 1260 Insole Stitching Time <= 840 Molding Time <= 2100 Sole-to-Upper Joining Time <= 2100 Inspecting Time <= 840 Figure 1.3.2: An Excel spreadsheet formulation of the Pallas Shoe problem 2.3.2: Problem Solution Solver generated the Answer Report in Figure and the Sensitivity Report in Figure Examine the Answer Report for the Pallas Shoe Co. problem that appears in Figure It contains the optimal product mix. 1. Which of the six sport shoe lines should be produced, and at what daily rates, in order to maximize profit? (Express any fractions in the rates correct to two decimal places.) Looking at the Constraints section, notice that the first five constraints are binding and the sixth one is not. Recall that a constraint is binding if its constraining resource would be completely used up by producing the optimal solution. 2. What do the numbers in the column labeled Slack mean? Copyright 2010 North Carolina State University: MINDSET 2-45

46 Microsoft Excel 10.0 Answer Report Worksheet: [Pallas.xls]Sheet3 Report Created: 10/10/2007 4:22:42 PM Target Cell (Max) Cell Name Original Value Final Value $J$9 Objective Function Adjustable Cells Cell Name Original Value Final Value B$7 Dec. Var. Values x C$7 Dec. Var. Values x D$7 Dec. Var. Values x E$7 Dec. Var. Values x F$7 Dec. Var. Values x G$7 Dec. Var. Values x Constraints Cell Name Cell Value Formula Status Slack H11 Cutting 420 H11<=J11 Binding 0 H12 Upper Finishing 1260 H12<=J12 Binding 0 H13 Insole Stitching 840 H13<=J13 Binding 0 H14 Molding 2100 H14<=J14 Binding 0 H15 Sole-to-Upper Joining 2100 H15<=J15 Binding 0 H16 Inspecting H16<=J16 Not Binding Figure 1.3.3: Answer Report for Pallas Shoe Co. Copy the Excel spreadsheet from Figure 2.3.2, but change the entry for the RHS of the cutting time constraint from 420 to 425. Run Solver and obtain an Answer Report. 3. In terms of the problem, what does this change represent? 4. How does the Answer Report you obtained differ from the one in Figure 2.3.3? Is the first constraint still binding? 5. Change the RHS of the cutting time constraint to 450, 500, and 550. What is the effect of each of these changes on the Answer Report? 6. Change the RHS of the cutting time constraint to 415, 410, and 400. What is the effect of each of these changes on the Answer Report? 7. To what number could you change the RHS of the inspecting time constraint in order to make that constraint binding? Copyright 2010 North Carolina State University: MINDSET 2-46

47 8. What does the slack value for each constraint tell you about that constraint? Microsoft Excel 10.0 Sensitivity Report Worksheet: [Pallas.xls]Sheet3 Report Created: 10/10/2007 4:22:42 PM Adjustable Cells Final Reduced Objective Allowable Allowable Cell Name Value Cost Coefficient Increase Decrease B$7 Dec. Var. Values x E+30 C$7 Dec. Var. Values x D$7 Dec. Var. Values x E$7 Dec. Var. Values x F$7 Dec. Var. Values x G$7 Dec. Var. Values x Constraints Final Shadow Constraint Allowable Allowable Cell Name Value Price R.H. Side Increase Decrease H11 Cutting H12 Upper Finishing H13 Insole Stitching H14 Molding H15 Sole-to-Upper Joining H16 Inspecting E Figure 2.3.4: Sensitivity Report for Pallas Shoe Co. Recall that the decision variable x 1 is not in the optimal solution. A logical question to ask is whether increasing the profitability of x 1 could allow it to enter the optimal solution and, if so, how much of an increase would be necessary. Return again to the spreadsheet in Figure 2.3.2, reset the RHS of the cutting time constraint to its original value, and change the value of the objective function coefficient of x 1 from 18 to In terms of the problem, what does this change represent? 10. Run Solver and observe the optimal solution. Is anything different? The increase in the profitability of x 1 caused it to enter the optimal solution, and although other decision variables left the optimal solution, the total profit was increased. However, it was not necessary to increase the profitability of x 1 from 18 to 19. Examining the Sensitivity Report in Figure will tell us by how much the profitability must be increased in order to bring a particular decision variable that was outside the optimal solution into the optimal solution. Notice that for the decision variable x 1, the report shows an allowable increase for the objective coefficient of just over Now try changing the profitability of x 1 to Copyright 2010 North Carolina State University: MINDSET 2-47

48 11. Does anything about the optimal solution change? Now try changing the profitability of x 1 to What do you observe about the optimal solution? Can you explain what happened in these two instances? 13. If a decision variable is not part of the optimal solution, explain how the Sensitivity Report tells you by how much the coefficient of that variable in the objective function would have to change in order for that decision variable to enter the optimal solution. 14. Based on this example, what do you think will also happen if a new decision variable enters the optimal solution? Next, notice that the Sensitivity Report in Figure shows an allowable increase of just over 0.10 in the objective coefficient of x 3 and an allowable decrease of just over Suppose the coefficient of x 3 in the objective function were increased from 22 to Would that change affect which decision variables are in the optimal solution? 16. Would it affect the maximum profit generated? Suppose the objective coefficient of x 3 were increased instead to What would be the effect of this second change on the optimal solution? The decision variable that exhibits the smallest range between the allowable increase and the allowable decrease in its objective coefficient is the decision variable that is the most sensitive to change. 18. Which of the decision variables in the Pallas Shoe problem is most sensitive to change? Finally, the Sensitivity Report in Figure provides us with information about the constraints. Notice that for each of the binding constraints, its final value and the constraint right-hand side are identical, but for the nonbinding constraint, its final value is less than the constraint righthand side. Also, notice that there is an allowable increase and an allowable decrease provided for each of the six constraints. One at a time, for each of the constraints, change the value of its RHS to something within the allowable range of increase or decrease. Before you move from one decision variable to the next, be sure to restore the right-hand side of the constraint to its original value. 19. What effect do these changes have on the optimal solution? Copyright 2010 North Carolina State University: MINDSET 2-48

Chapter 4 Linear Programming

Chapter 4 Linear Programming Chapter Objectives Check off these skills when you feel that you have mastered them. From its associated chart, write the constraints of a linear programming problem as linear inequalities. List two implied

More information

Chapter 7. Linear Programming Models: Graphical and Computer Methods

Chapter 7. Linear Programming Models: Graphical and Computer Methods Chapter 7 Linear Programming Models: Graphical and Computer Methods To accompany Quantitative Analysis for Management, Eleventh Edition, by Render, Stair, and Hanna Power Point slides created by Brian

More information

Using Linear Programming for Management Decisions

Using Linear Programming for Management Decisions Using Linear Programming for Management Decisions By Tim Wright Linear programming creates mathematical models from real-world business problems to maximize profits, reduce costs and allocate resources.

More information

Chapter 15 Introduction to Linear Programming

Chapter 15 Introduction to Linear Programming Chapter 15 Introduction to Linear Programming An Introduction to Optimization Spring, 2015 Wei-Ta Chu 1 Brief History of Linear Programming The goal of linear programming is to determine the values of

More information

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology Madras.

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology Madras. Fundamentals of Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology Madras Lecture No # 06 Simplex Algorithm Initialization and Iteration (Refer Slide

More information

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology, Madras. Lecture No.

Fundamentals of Operations Research. Prof. G. Srinivasan. Department of Management Studies. Indian Institute of Technology, Madras. Lecture No. Fundamentals of Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture No. # 13 Transportation Problem, Methods for Initial Basic Feasible

More information

Linear Programming. ICM Unit 3 Day 1 Part 1

Linear Programming. ICM Unit 3 Day 1 Part 1 Linear Programming ICM Unit 3 Day 1 Part 1 Arrival: Tools of the Trade Pencils Grab a couple to SHARE with your partner. Graph Paper Two pieces per student for today. Ruler One per student. Get out a NEW

More information

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D.

BCN Decision and Risk Analysis. Syed M. Ahmed, Ph.D. Linear Programming Module Outline Introduction The Linear Programming Model Examples of Linear Programming Problems Developing Linear Programming Models Graphical Solution to LP Problems The Simplex Method

More information

Chapter 4. Linear Programming

Chapter 4. Linear Programming Chapter 4 Linear Programming For All Practical Purposes: Effective Teaching Occasionally during the semester remind students about your office hours. Some students can perceive that they are bothering

More information

STANDARDS OF LEARNING CONTENT REVIEW NOTES ALGEBRA I. 2 nd Nine Weeks,

STANDARDS OF LEARNING CONTENT REVIEW NOTES ALGEBRA I. 2 nd Nine Weeks, STANDARDS OF LEARNING CONTENT REVIEW NOTES ALGEBRA I 2 nd Nine Weeks, 2016-2017 1 OVERVIEW Algebra I Content Review Notes are designed by the High School Mathematics Steering Committee as a resource for

More information

Lesson 08 Linear Programming

Lesson 08 Linear Programming Lesson 08 Linear Programming A mathematical approach to determine optimal (maximum or minimum) solutions to problems which involve restrictions on the variables involved. 08 - Linear Programming Applications

More information

Review for Mastery Using Graphs and Tables to Solve Linear Systems

Review for Mastery Using Graphs and Tables to Solve Linear Systems 3-1 Using Graphs and Tables to Solve Linear Systems A linear system of equations is a set of two or more linear equations. To solve a linear system, find all the ordered pairs (x, y) that make both equations

More information

Essential Questions. Key Terms. Algebra. Arithmetic Sequence

Essential Questions. Key Terms. Algebra. Arithmetic Sequence Linear Equations and Inequalities Introduction Average Rate of Change Coefficient Constant Rate of Change Continuous Discrete Domain End Behaviors Equation Explicit Formula Expression Factor Inequality

More information

Unit 0: Extending Algebra 1 Concepts

Unit 0: Extending Algebra 1 Concepts 1 What is a Function? Unit 0: Extending Algebra 1 Concepts Definition: ---Function Notation--- Example: f(x) = x 2 1 Mapping Diagram Use the Vertical Line Test Interval Notation A convenient and compact

More information

MA30SA Applied Math Unit D - Linear Programming Revd:

MA30SA Applied Math Unit D - Linear Programming Revd: 1 Introduction to Linear Programming MA30SA Applied Math Unit D - Linear Programming Revd: 120051212 1. Linear programming is a very important skill. It is a brilliant method for establishing optimum solutions

More information

LINEAR PROGRAMMING INTRODUCTION 12.1 LINEAR PROGRAMMING. Three Classical Linear Programming Problems (L.P.P.)

LINEAR PROGRAMMING INTRODUCTION 12.1 LINEAR PROGRAMMING. Three Classical Linear Programming Problems (L.P.P.) LINEAR PROGRAMMING 12 INTRODUCTION ou are familiar with linear equations and linear inequations in one and two variables. They can be solved algebraically or graphically (by drawing a line diagram in case

More information

1 GIAPETTO S WOODCARVING PROBLEM

1 GIAPETTO S WOODCARVING PROBLEM 1 GIAPETTO S WOODCARVING PROBLEM EZGİ ÇALLI OBJECTIVES CCSS.MATH.CONTENT.HSA.REI.D.12: Graph the solutions to a linear inequality in two variables as a half-plane (excluding the boundary in the case of

More information

Solving linear programming

Solving linear programming Solving linear programming (From Last week s Introduction) Consider a manufacturer of tables and chairs. They want to maximize profits. They sell tables for a profit of $30 per table and a profit of $10

More information

Graphical Methods in Linear Programming

Graphical Methods in Linear Programming Appendix 2 Graphical Methods in Linear Programming We can use graphical methods to solve linear optimization problems involving two variables. When there are two variables in the problem, we can refer

More information

Graphing Linear Inequalities in Two Variables.

Graphing Linear Inequalities in Two Variables. Many applications of mathematics involve systems of inequalities rather than systems of equations. We will discuss solving (graphing) a single linear inequality in two variables and a system of linear

More information

CHAPTER 3 LINEAR PROGRAMMING: SIMPLEX METHOD

CHAPTER 3 LINEAR PROGRAMMING: SIMPLEX METHOD CHAPTER 3 LINEAR PROGRAMMING: SIMPLEX METHOD Linear programming is optimization problem where the objective function is linear and all equality and inequality constraints are linear. This problem was first

More information

I will illustrate the concepts using the example below.

I will illustrate the concepts using the example below. Linear Programming Notes More Tutorials at www.littledumbdoctor.com Linear Programming Notes I will illustrate the concepts using the example below. A farmer plants two crops, oats and corn, on 100 acres.

More information

Question 2: How do you solve a linear programming problem with a graph?

Question 2: How do you solve a linear programming problem with a graph? Question : How do you solve a linear programming problem with a graph? Now that we have several linear programming problems, let s look at how we can solve them using the graph of the system of inequalities.

More information

Building Concepts: Moving from Proportional Relationships to Linear Equations

Building Concepts: Moving from Proportional Relationships to Linear Equations Lesson Overview In this TI-Nspire lesson, students use previous experience with proportional relationships of the form y = kx to consider relationships of the form y = mx and eventually y = mx + b. Proportional

More information

Sample tasks from: Algebra Assessments Through the Common Core (Grades 6-12)

Sample tasks from: Algebra Assessments Through the Common Core (Grades 6-12) Sample tasks from: Algebra Assessments Through the Common Core (Grades 6-12) A resource from The Charles A Dana Center at The University of Texas at Austin 2011 About the Dana Center Assessments More than

More information

Chapter 13-1 Notes Page 1

Chapter 13-1 Notes Page 1 Chapter 13-1 Notes Page 1 Constrained Optimization Constraints We will now consider how to maximize Sales Revenue & Contribution Margin; or minimize costs when dealing with limited resources (constraints).

More information

AP Statistics Summer Math Packet

AP Statistics Summer Math Packet NAME: AP Statistics Summer Math Packet PERIOD: Complete all sections of this packet and bring in with you to turn in on the first day of school. ABOUT THIS SUMMER PACKET: In general, AP Statistics includes

More information

Linear Modeling Elementary Education 4

Linear Modeling Elementary Education 4 Linear Modeling Elementary Education 4 Mathematical modeling is simply the act of building a model (usually in the form of graphs) which provides a picture of a numerical situation. Linear Modeling is

More information

Using the Graphical Method to Solve Linear Programs J. Reeb and S. Leavengood

Using the Graphical Method to Solve Linear Programs J. Reeb and S. Leavengood PERFORMANCE EXCELLENCE IN THE WOOD PRODUCTS INDUSTRY EM 8719-E October 1998 $2.50 Using the Graphical Method to Solve Linear Programs J. Reeb and S. Leavengood A key problem faced by managers is how to

More information

Page 1 CCM6+ Unit 10 Graphing UNIT 10 COORDINATE PLANE. CCM Name: Math Teacher: Projected Test Date:

Page 1 CCM6+ Unit 10 Graphing UNIT 10 COORDINATE PLANE. CCM Name: Math Teacher: Projected Test Date: Page 1 CCM6+ Unit 10 Graphing UNIT 10 COORDINATE PLANE CCM6+ 2015-16 Name: Math Teacher: Projected Test Date: Main Concept Page(s) Vocabulary 2 Coordinate Plane Introduction graph and 3-6 label Reflect

More information

Systems of Inequalities and Linear Programming 5.7 Properties of Matrices 5.8 Matrix Inverses

Systems of Inequalities and Linear Programming 5.7 Properties of Matrices 5.8 Matrix Inverses 5 5 Systems and Matrices Systems and Matrices 5.6 Systems of Inequalities and Linear Programming 5.7 Properties of Matrices 5.8 Matrix Inverses Sections 5.6 5.8 2008 Pearson Addison-Wesley. All rights

More information

Section Graphs and Lines

Section Graphs and Lines Section 1.1 - Graphs and Lines The first chapter of this text is a review of College Algebra skills that you will need as you move through the course. This is a review, so you should have some familiarity

More information

DOWNLOAD PDF BIG IDEAS MATH VERTICAL SHRINK OF A PARABOLA

DOWNLOAD PDF BIG IDEAS MATH VERTICAL SHRINK OF A PARABOLA Chapter 1 : BioMath: Transformation of Graphs Use the results in part (a) to identify the vertex of the parabola. c. Find a vertical line on your graph paper so that when you fold the paper, the left portion

More information

UNIT 2 LINEAR PROGRAMMING PROBLEMS

UNIT 2 LINEAR PROGRAMMING PROBLEMS UNIT 2 LINEAR PROGRAMMING PROBLEMS Structure 2.1 Introduction Objectives 2.2 Linear Programming Problem (LPP) 2.3 Mathematical Formulation of LPP 2.4 Graphical Solution of Linear Programming Problems 2.5

More information

Econ 172A - Slides from Lecture 2

Econ 172A - Slides from Lecture 2 Econ 205 Sobel Econ 172A - Slides from Lecture 2 Joel Sobel September 28, 2010 Announcements 1. Sections this evening (Peterson 110, 8-9 or 9-10). 2. Podcasts available when I remember to use microphone.

More information

Linear Programming. L.W. Dasanayake Department of Economics University of Kelaniya

Linear Programming. L.W. Dasanayake Department of Economics University of Kelaniya Linear Programming L.W. Dasanayake Department of Economics University of Kelaniya Linear programming (LP) LP is one of Management Science techniques that can be used to solve resource allocation problem

More information

MAT 003 Brian Killough s Instructor Notes Saint Leo University

MAT 003 Brian Killough s Instructor Notes Saint Leo University MAT 003 Brian Killough s Instructor Notes Saint Leo University Success in online courses requires self-motivation and discipline. It is anticipated that students will read the textbook and complete sample

More information

AP Statistics Summer Review Packet

AP Statistics Summer Review Packet 60 NAME: PERIOD: AP Statistics Summer Review Packet Teacher(s): Ryan Oben Teacher(s) Contact Information: Ryan_Oben@mcpsmd.org Course: Purpose of the Summer Assignment: In general, AP Statistics includes

More information

Unit 2A: Systems of Equations and Inequalities

Unit 2A: Systems of Equations and Inequalities Unit A: Systems of Equations and Inequalities In this unit, you will learn how to do the following: Learning Target #1: Creating and Solving Systems of Equations Identify the solution to a system from

More information

CHAPTER 2 LINEAR PROGRAMMING: BASIC CONCEPTS

CHAPTER 2 LINEAR PROGRAMMING: BASIC CONCEPTS CHAPER 2 LINEAR PROGRAMMING: BASIC CONCEPS rue-alse Questions 2-1 Linear programming problems may have multiple goals or objectives specified. 2-2 Linear programming allows a manager to find the best mix

More information

Section 2.1 Graphs. The Coordinate Plane

Section 2.1 Graphs. The Coordinate Plane Section 2.1 Graphs The Coordinate Plane Just as points on a line can be identified with real numbers to form the coordinate line, points in a plane can be identified with ordered pairs of numbers to form

More information

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood

Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood PERFORMANCE EXCELLENCE IN THE WOOD PRODUCTS INDUSTRY EM 8720-E October 1998 $3.00 Using the Simplex Method to Solve Linear Programming Maximization Problems J. Reeb and S. Leavengood A key problem faced

More information

Note that ALL of these points are Intercepts(along an axis), something you should see often in later work.

Note that ALL of these points are Intercepts(along an axis), something you should see often in later work. SECTION 1.1: Plotting Coordinate Points on the X-Y Graph This should be a review subject, as it was covered in the prerequisite coursework. But as a reminder, and for practice, plot each of the following

More information

II. Linear Programming

II. Linear Programming II. Linear Programming A Quick Example Suppose we own and manage a small manufacturing facility that produced television sets. - What would be our organization s immediate goal? - On what would our relative

More information

Math 7 Notes - Unit 4 Pattern & Functions

Math 7 Notes - Unit 4 Pattern & Functions Math 7 Notes - Unit 4 Pattern & Functions Syllabus Objective: (3.2) The student will create tables, charts, and graphs to extend a pattern in order to describe a linear rule, including integer values.

More information

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1)

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1) WEEK 4 REVIEW Graphing Systems of Linear Inequalities (3.1) Linear Programming Problems (3.2) Checklist for Exam 1 Review Sample Exam 1 Graphing Linear Inequalities Graph the following system of inequalities.

More information

Excel Forecasting Tools Review

Excel Forecasting Tools Review Excel Forecasting Tools Review Duke MBA Computer Preparation Excel Forecasting Tools Review Focus The focus of this assignment is on four Excel 2003 forecasting tools: The Data Table, the Scenario Manager,

More information

Name Class Date. Using Graphs to Relate Two Quantities

Name Class Date. Using Graphs to Relate Two Quantities 4-1 Reteaching Using Graphs to Relate Two Quantities An important life skill is to be able to a read graph. When looking at a graph, you should check the title, the labels on the axes, and the general

More information

Quantitative Technique

Quantitative Technique Quantitative Technique Subject Course Code Number : MMAS 521 : Optimization Techniques for Managerial Decisions Instructor : Dr. Umesh Rajopadhyaya Credit Hours : 2 Main Objective : The objective of the

More information

16.410/413 Principles of Autonomy and Decision Making

16.410/413 Principles of Autonomy and Decision Making 16.410/413 Principles of Autonomy and Decision Making Lecture 16: Mathematical Programming I Emilio Frazzoli Aeronautics and Astronautics Massachusetts Institute of Technology November 8, 2010 E. Frazzoli

More information

Practices (1) 6.MP.2. Reason abstractly and quantitatively.

Practices (1) 6.MP.2. Reason abstractly and quantitatively. Common Core Scope and Sequence Sixth Grade Quarter 3 Unit 6: Coordinate Plane and Proportional Relationships Domain: The Number System, Geometry, Expressions and Equations, Ratios and Proportional Relationships

More information

Designed by Jason Wagner, Course Web Programmer, Office of e-learning NOTE ABOUT CELL REFERENCES IN THIS DOCUMENT... 1

Designed by Jason Wagner, Course Web Programmer, Office of e-learning NOTE ABOUT CELL REFERENCES IN THIS DOCUMENT... 1 Excel Essentials Designed by Jason Wagner, Course Web Programmer, Office of e-learning NOTE ABOUT CELL REFERENCES IN THIS DOCUMENT... 1 FREQUENTLY USED KEYBOARD SHORTCUTS... 1 FORMATTING CELLS WITH PRESET

More information

Chapter 2 An Introduction to Linear Programming

Chapter 2 An Introduction to Linear Programming Chapter 2 An Introduction to Linear Programming MULTIPLE CHOICE 1. The maximization or minimization of a quantity is the a. goal of management science. b. decision for decision analysis. c. constraint

More information

Math 3A Meadows or Malls? Review

Math 3A Meadows or Malls? Review Math 3A Meadows or Malls? Review Name Linear Programming w/o Graphing (2 variables) 1. A manufacturer makes digital watches and analogue (non-digital) watches. It cost $15 to make digital watch and $20

More information

Linear programming II João Carlos Lourenço

Linear programming II João Carlos Lourenço Decision Support Models Linear programming II João Carlos Lourenço joao.lourenco@ist.utl.pt Academic year 2012/2013 Readings: Hillier, F.S., Lieberman, G.J., 2010. Introduction to Operations Research,

More information

Name Period Date LINEAR FUNCTIONS STUDENT PACKET 2: MULTIPLE REPRESENTATIONS 2

Name Period Date LINEAR FUNCTIONS STUDENT PACKET 2: MULTIPLE REPRESENTATIONS 2 Name Period Date LINEAR FUNCTIONS STUDENT PACKET 2: MULTIPLE REPRESENTATIONS 2 LF2.1 LF2.2 LF2.3 Growing Shapes Use variables, parentheses, and exponents in expressions. Use formulas to find perimeter

More information

Chapter 2 - An Introduction to Linear Programming

Chapter 2 - An Introduction to Linear Programming True / False 1. Increasing the right-hand side of a nonbinding constraint will not cause a change in the optimal solution. TOPICS: Introduction 2. In a linear programming problem, the objective function

More information

Mathematics. Linear Programming

Mathematics. Linear Programming Mathematics Linear Programming Table of Content 1. Linear inequations. 2. Terms of Linear Programming. 3. Mathematical formulation of a linear programming problem. 4. Graphical solution of two variable

More information

Direct Variations DIRECT AND INVERSE VARIATIONS 19. Name

Direct Variations DIRECT AND INVERSE VARIATIONS 19. Name DIRECT AND INVERSE VARIATIONS 19 Direct Variations Name Of the many relationships that two variables can have, one category is called a direct variation. Use the description and example of direct variation

More information

SUMMER PACKET Answer Key

SUMMER PACKET Answer Key BELLEVUE SCHOOL DISTRICT SUMMER PACKET Answer Key FOR STUDENTS GOlNG lnto: GEOMETRY Section A1.1.A 1. s = 27 s = 2r + 7 2. a) A. f(n) = b) The number of dollars Julie will get on day 12 is $2048. If you

More information

Create your first workbook

Create your first workbook Create your first workbook You've been asked to enter data in Excel, but you've never worked with Excel. Where do you begin? Or perhaps you have worked in Excel a time or two, but you still wonder how

More information

Chapter II. Linear Programming

Chapter II. Linear Programming 1 Chapter II Linear Programming 1. Introduction 2. Simplex Method 3. Duality Theory 4. Optimality Conditions 5. Applications (QP & SLP) 6. Sensitivity Analysis 7. Interior Point Methods 1 INTRODUCTION

More information

Introduction. Linear because it requires linear functions. Programming as synonymous of planning.

Introduction. Linear because it requires linear functions. Programming as synonymous of planning. LINEAR PROGRAMMING Introduction Development of linear programming was among the most important scientific advances of mid-20th cent. Most common type of applications: allocate limited resources to competing

More information

3.1. 3x 4y = 12 3(0) 4y = 12. 3x 4y = 12 3x 4(0) = y = x 0 = 12. 4y = 12 y = 3. 3x = 12 x = 4. The Rectangular Coordinate System

3.1. 3x 4y = 12 3(0) 4y = 12. 3x 4y = 12 3x 4(0) = y = x 0 = 12. 4y = 12 y = 3. 3x = 12 x = 4. The Rectangular Coordinate System 3. The Rectangular Coordinate System Interpret a line graph. Objectives Interpret a line graph. Plot ordered pairs. 3 Find ordered pairs that satisfy a given equation. 4 Graph lines. 5 Find x- and y-intercepts.

More information

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to

Let s start by examining an Excel worksheet for the linear programming. Maximize P 70x 120y. subject to Excel is a useful tool for solving linear programming problems. In this question we ll solve and analyze our manufacturing problem with Excel. Although this problem can easily be solved graphically or

More information

Linear Programming: A Geometric Approach

Linear Programming: A Geometric Approach Chapter 3 Linear Programming: A Geometric Approach 3.1 Graphing Systems of Linear Inequalities in Two Variables The general form for a line is ax + by + c =0. The general form for a linear inequality is

More information

Mathematics Background

Mathematics Background Finding Area and Distance Students work in this Unit develops a fundamentally important relationship connecting geometry and algebra: the Pythagorean Theorem. The presentation of ideas in the Unit reflects

More information

Name Period Date MATHLINKS GRADE 8 STUDENT PACKET 3 PATTERNS AND LINEAR FUNCTIONS 1

Name Period Date MATHLINKS GRADE 8 STUDENT PACKET 3 PATTERNS AND LINEAR FUNCTIONS 1 Name Period Date 8-3 STUDENT PACKET MATHLINKS GRADE 8 STUDENT PACKET 3 PATTERNS AND LINEAR FUNCTIONS 1 3.1 Geometric Patterns Describe sequences generated by geometric patterns using tables, graphs, and

More information

Algebra II Notes Unit Two: Linear Equations and Functions

Algebra II Notes Unit Two: Linear Equations and Functions Syllabus Objectives:.1 The student will differentiate between a relation and a function.. The student will identify the domain and range of a relation or function.. The student will derive a function rule

More information

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture 16 Cutting Plane Algorithm We shall continue the discussion on integer programming,

More information

Chapter 2--An Introduction to Linear Programming

Chapter 2--An Introduction to Linear Programming Chapter 2--An Introduction to Linear Programming 1. The maximization or minimization of a quantity is the A. goal of management science. B. decision for decision analysis. C. constraint of operations research.

More information

NARROW CORRIDOR. Teacher s Guide Getting Started. Lay Chin Tan Singapore

NARROW CORRIDOR. Teacher s Guide Getting Started. Lay Chin Tan Singapore Teacher s Guide Getting Started Lay Chin Tan Singapore Purpose In this two-day lesson, students are asked to determine whether large, long, and bulky objects fit around the corner of a narrow corridor.

More information

These notes are in two parts: this part has topics 1-3 above.

These notes are in two parts: this part has topics 1-3 above. IEEM 0: Linear Programming and Its Applications Outline of this series of lectures:. How can we model a problem so that it can be solved to give the required solution 2. Motivation: eamples of typical

More information

Graphical Analysis. Figure 1. Copyright c 1997 by Awi Federgruen. All rights reserved.

Graphical Analysis. Figure 1. Copyright c 1997 by Awi Federgruen. All rights reserved. Graphical Analysis For problems with 2 variables, we can represent each solution as a point in the plane. The Shelby Shelving model (see the readings book or pp.68-69 of the text) is repeated below for

More information

5. 2 Too Big, or Not Too Big, That Is the Question. A Solidify Understanding Task

5. 2 Too Big, or Not Too Big, That Is the Question. A Solidify Understanding Task 6 SECONDARY MATH I // MODULE 5 That Is the Question A Solidify Understanding Task As Carlos is considering the amount of money available for purchasing cat pens and dog runs (see below) he realizes that

More information

Section 2.0: Getting Started

Section 2.0: Getting Started Solving Linear Equations: Graphically Tabular/Numerical Solution Algebraically Section 2.0: Getting Started Example #1 on page 128. Solve the equation 3x 9 = 3 graphically. Intersection X=4 Y=3 We are

More information

Math 7 Notes - Unit 4 Pattern & Functions

Math 7 Notes - Unit 4 Pattern & Functions Math 7 Notes - Unit 4 Pattern & Functions Syllabus Objective: (.) The student will create tables, charts, and graphs to etend a pattern in order to describe a linear rule, including integer values. Syllabus

More information

Activity One: Getting started with linear programming. This problem is based on a problem in the Algebra II Indicators for Goal 1.

Activity One: Getting started with linear programming. This problem is based on a problem in the Algebra II Indicators for Goal 1. Linear Programming Goals: 1. Describe graphically, algebraically, and verbally real-world phenomena as functions; identify the independent and dependent variables (3.01) 2. Translate among graphic, algebraic,

More information

(Refer Slide Time: 00:01:30)

(Refer Slide Time: 00:01:30) Digital Circuits and Systems Prof. S. Srinivasan Department of Electrical Engineering Indian Institute of Technology, Madras Lecture - 32 Design using Programmable Logic Devices (Refer Slide Time: 00:01:30)

More information

Mathematics for Business and Economics - I. Chapter7 Linear Inequality Systems and Linear Programming (Lecture11)

Mathematics for Business and Economics - I. Chapter7 Linear Inequality Systems and Linear Programming (Lecture11) Mathematics for Business and Economics - I Chapter7 Linear Inequality Systems and Linear Programming (Lecture11) A linear inequality in two variables is an inequality that can be written in the form Ax

More information

1.1 - Functions, Domain, and Range

1.1 - Functions, Domain, and Range 1.1 - Functions, Domain, and Range Lesson Outline Section 1: Difference between relations and functions Section 2: Use the vertical line test to check if it is a relation or a function Section 3: Domain

More information

7.5. Systems of Inequalities. The Graph of an Inequality. What you should learn. Why you should learn it

7.5. Systems of Inequalities. The Graph of an Inequality. What you should learn. Why you should learn it 0_0705.qd /5/05 9:5 AM Page 5 Section 7.5 7.5 Sstems of Inequalities 5 Sstems of Inequalities What ou should learn Sketch the graphs of inequalities in two variables. Solve sstems of inequalities. Use

More information

Sample: Do Not Reproduce QUAD4 STUDENT PAGES. QUADRATIC FUNCTIONS AND EQUATIONS Student Pages for Packet 4: Quadratic Functions and Applications

Sample: Do Not Reproduce QUAD4 STUDENT PAGES. QUADRATIC FUNCTIONS AND EQUATIONS Student Pages for Packet 4: Quadratic Functions and Applications Name Period Date QUADRATIC FUNCTIONS AND EQUATIONS Student Pages for Packet 4: Quadratic Functions and Applications QUAD 4.1 Vertex Form of a Quadratic Function 1 Explore how changing the values of h and

More information

Farming Example. Lecture 22. Solving a Linear Program. withthe Simplex Algorithm and with Excel s Solver

Farming Example. Lecture 22. Solving a Linear Program. withthe Simplex Algorithm and with Excel s Solver Lecture 22 Solving a Linear Program withthe Simplex Algorithm and with Excel s Solver m j winter, 2 Farming Example Constraints: acreage: x + y < money: x + 7y < 6 time: x + y < 3 y x + y = B (, 8.7) x

More information

GRAPHING LINEAR INEQUALITIES AND FEASIBLE REGIONS

GRAPHING LINEAR INEQUALITIES AND FEASIBLE REGIONS SECTION 3.1: GRAPHING LINEAR INEQUALITIES AND FEASIBLE REGIONS We start with a reminder of the smart way to graph a Linear Equation for the typical example we see in this course, namely using BOTH X- and

More information

NOTATION AND TERMINOLOGY

NOTATION AND TERMINOLOGY 15.053x, Optimization Methods in Business Analytics Fall, 2016 October 4, 2016 A glossary of notation and terms used in 15.053x Weeks 1, 2, 3, 4 and 5. (The most recent week's terms are in blue). NOTATION

More information

Design and Analysis of Algorithms (V)

Design and Analysis of Algorithms (V) Design and Analysis of Algorithms (V) An Introduction to Linear Programming Guoqiang Li School of Software, Shanghai Jiao Tong University Homework Assignment 2 is announced! (deadline Apr. 10) Linear Programming

More information

Giapetto s Woodcarving Problem

Giapetto s Woodcarving Problem MTE 503-1 Computer Technology in Mathematics Education TI Worksheet Ezgi ÇALLI Class level: 9-10 Objectives: IGCSE (0607-Extended, 2014): (Extension to) 7.7. Linear inequalities on the Cartesian plane

More information

Chapter 1 Polynomials and Modeling

Chapter 1 Polynomials and Modeling Chapter 1 Polynomials and Modeling 1.1 Linear Functions Recall that a line is a function of the form y = mx+ b, where m is the slope of the line (how steep the line is) and b gives the y-intercept (where

More information

Math 20 Practice Exam #2 Problems and Their Solutions!

Math 20 Practice Exam #2 Problems and Their Solutions! Math 20 Practice Exam #2 Problems and Their Solutions! #1) Solve the linear system by graphing: Isolate for in both equations. Graph the two lines using the slope-intercept method. The two lines intersect

More information

Experiment 1 CH Fall 2004 INTRODUCTION TO SPREADSHEETS

Experiment 1 CH Fall 2004 INTRODUCTION TO SPREADSHEETS Experiment 1 CH 222 - Fall 2004 INTRODUCTION TO SPREADSHEETS Introduction Spreadsheets are valuable tools utilized in a variety of fields. They can be used for tasks as simple as adding or subtracting

More information

CHAPTER 12: LINEAR PROGRAMMING

CHAPTER 12: LINEAR PROGRAMMING CHAPTER 12: LINEAR PROGRAMMING Previous Years Board Exam (Important Questions & Answers) MARKS WEIGHTAGE 06 marks 1. A cottage industry manufactures pedestal lamps and wooden shades, each requiring the

More information

Linear Programming Terminology

Linear Programming Terminology Linear Programming Terminology The carpenter problem is an example of a linear program. T and B (the number of tables and bookcases to produce weekly) are decision variables. The profit function is an

More information

I(g) = income from selling gearboxes C(g) = cost of purchasing gearboxes The BREAK-EVEN PT is where COST = INCOME or C(g) = I(g).

I(g) = income from selling gearboxes C(g) = cost of purchasing gearboxes The BREAK-EVEN PT is where COST = INCOME or C(g) = I(g). Page 367 I(g) = income from selling gearboxes C(g) = cost of purchasing gearboxes The BREAK-EVEN PT is where COST = INCOME or C(g) = I(g). PROFIT is when INCOME > COST or I(g) > C(g). I(g) = 8.5g g = the

More information

Chapter 2: Linear Equations and Functions

Chapter 2: Linear Equations and Functions Chapter 2: Linear Equations and Functions Chapter 2: Linear Equations and Functions Assignment Sheet Date Topic Assignment Completed 2.1 Functions and their Graphs and 2.2 Slope and Rate of Change 2.1

More information

a) Alternative Optima, b) Infeasible(or non existing) solution, c) unbounded solution.

a) Alternative Optima, b) Infeasible(or non existing) solution, c) unbounded solution. Unit 1 Lesson 5. : Special cases of LPP Learning Outcomes Special cases of linear programming problems Alternative Optima Infeasible Solution Unboundedness In the previous lecture we have discussed some

More information

EXCEL BASICS: MICROSOFT OFFICE 2007

EXCEL BASICS: MICROSOFT OFFICE 2007 EXCEL BASICS: MICROSOFT OFFICE 2007 GETTING STARTED PAGE 02 Prerequisites What You Will Learn USING MICROSOFT EXCEL PAGE 03 Opening Microsoft Excel Microsoft Excel Features Keyboard Review Pointer Shapes

More information

Linear Programming. You can model sales with the following objective function. Sales 100x 50y. x 0 and y 0. x y 40

Linear Programming. You can model sales with the following objective function. Sales 100x 50y. x 0 and y 0. x y 40 Lesson 9.7 Objectives Solve systems of linear inequalities. Solving Systems of Inequalities Suppose a car dealer nets $500 for each family car (F) sold and $750 for each sports car (S) sold. The dealer

More information

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras

Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Advanced Operations Research Prof. G. Srinivasan Department of Management Studies Indian Institute of Technology, Madras Lecture 28 Chinese Postman Problem In this lecture we study the Chinese postman

More information

AP Calculus. Extreme Values: Graphically. Slide 1 / 163 Slide 2 / 163. Slide 4 / 163. Slide 3 / 163. Slide 5 / 163. Slide 6 / 163

AP Calculus. Extreme Values: Graphically. Slide 1 / 163 Slide 2 / 163. Slide 4 / 163. Slide 3 / 163. Slide 5 / 163. Slide 6 / 163 Slide 1 / 163 Slide 2 / 163 AP Calculus Analyzing Functions Using Derivatives 2015-11-04 www.njctl.org Slide 3 / 163 Table of Contents click on the topic to go to that section Slide 4 / 163 Extreme Values

More information