1 / 17

5. Linear Programming

5. Linear Programming. Objectives :. Problem formulation Solving an LP problem graphically Bounded regions and corner points. Refs: B&Z 5.2. Example 1. See handout for description. Our first task is to formulate a mathematical model of this problem.

rudolf
Download Presentation

5. Linear Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 5. Linear Programming Objectives: Problem formulation Solving an LP problem graphically Bounded regions and corner points Refs: B&Z 5.2.

  2. Example 1 See handout for description. Our first task is to formulate a mathematical model of this problem. In this example, we are asked to determine the number of ads to place in two different newspapers. So let xbe the number of ads placed in Yarra News ybe the number of ads placed in Sun City Paper The variables x and y are called decision variables.

  3. Our objective is to maximize the number of people who see our ad. The exposure depends on the number of people who read each newspaper. For each ad we place in Yarra News, we can guarantee that 50,000 people see it. As the number of ads placed in Yarra News is represented by x we see that 50,000x people see our ad.

  4. For each ad we place in Sun City Paper we can guarantee that 20,000 people see it. As the number of ads placed in Sun City Paper is represented by ywe can see that 20,000y people see this ad. So our exposure statement can be written as P=50,000x+20,000y This is called the objective function.

  5. number of ads cost per ad total cost of ads in Yarra News Obviously, making x and y as large as possible will increase the value of P. But there are bounds (or constraints) on the values of x and y. The first constraint concerns the total amount of money which the company can spend on advertising. We are told that there is an upper limit of$9,000. So we need to formulate an equation which represents the cost of advertising. 1. Each ad in Yarra News will cost $300. Since x represents the number of ads we place in Yarra News, we can represent this part of our cost by 300x

  6. number of ads cost per ad total cost of ads in Sun City Paper 2. Similarly, each ad in Sun City Paper will cost us $100. Since y represents the number of ads we place in Sun City Paper, we can represent this component of cost by 100y So in total, the cost of advertising is 300x + 100y.

  7. total number of ads not less than 30. number of ads in Y.N. number of ads in S.C.P. To satisfy the conditions of our problem, we must ensure that 300x + 100y ≤ 9,000. The second constraint concerns the number of ads we place each month. This can be described as x+y≥30

  8. A final obvious (but necessary) constraint is that the number of ads we place in each paper cannot be negative. So x ≥ 0, y ≥ 0. These are called non-negativity constraints. We are now ready to give a mathematical description of our problem. maximize P=50,000x + 20,000y Subject to 300x + 100y ≤ 9,000 x + y ≥ 30 x ≥ 0 y ≥ 0

  9. To solve such a problem we must firstly determine which pairs of points (x, y) satisfy all of the above constraints. 300x + 100y = 9,000 y 90 Any point in this region will satisfy all of our constraints. 30 30 x y = 0 x = 0 x + y = 30

  10. Let’s sketch the line 50,000x + 20,000y = P for various values of P. This region is called the feasible region and any point in it is called a feasible point. A feasible region is either bounded (which means it can be enclosed within a circle) or unbounded (it cannot be enclosed within a circle). Each point (x,y) in the feasible region will give us a value for P. Our task is to determine which point, or points, gives the maximum value of P on the feasible region. **remember this is our objective function

  11. y 90 30 x 30 1. P = 800,000 50,000x + 20,000y = 800,000 2. P = 1,200,000 50,000x + 20,000y = 1,200,000 3. P = 1,600,000 50,000x + 20,000y = 1,600,000 4. P = 2,000,000 50,000x + 20,000y = 2,000,000

  12. Notice that we can write the equation y = P - 50,000x as 20,000 20,000 P = 50,000x + 20,000y So we see that changing the value of P does not change the slope of the lines - they are parallel. Also note that as P increases the y-intercept increases.

  13. Notice that the line 50,000x + 20,000y = 2,000,000 does not intersect the feasible region. Since increasing P will move the line further from the feasible region, we can see that our solution must have P< 2,000,000. The line50,000x + 20,000y = 1,600,000 does intersect The feasible region - any point in the feasible region which is on this line will give P = 1,600,000. Since there are feasible points to the right of this line we conclude that we can find an (x, y) which will give us a value of P > 1,600,000.

  14. So now we have 1,600,000 < P* < 2,000,000 but how do we find P* - the maximum value of P ? Place a ruler on the line 50,000x + 20,000y = P (any P will do) and slide it along, parallel to this line (in the direction of increasing P) until you are just touching the edge of the feasible region. Draw the line. What has happened?

  15. y 90 30 x 30 (x, y) = (0, 90) This line determines the maximum value of P and intersects The feasible region at one point only. To determine this value of P we simply evaluate the objective function at the point of intersection (x, y).

  16. Point of intersection. x = 0, y = 90. Easy in this case because it is on the axis. At this point P = 50,000x + 20,000y = 50,000(0) + 20,000(90) =1,800,000. So the optimal solution is (x, y) = (0,90)and max P = 1,800,000.

  17. You may now do Questions 1, 2 and 3 Example Sheet 2 From the Orange Book.

More Related