Docsity

Linear Programming Homework - Discrete Math Model | MATH 381, Assignments of Mathematics

Toggle sidebar
bg1
Math 381 Chartier
Solutions for Homework #4 Winter 2008
Linear Programming Homework
1. Recall the problem of life vests and life boats from Chapter 1 of the class notes. For simplicity
consider smaller boats with the parameters
C1= 1 (capacity of each vest)
C2= 2 (capacity of each boat)
C= 10 (total capacity needed)
V1= 1 (volume of each vest)
V2= 5 (volume of each boat)
V= 15 (total volume available)
(a) As an initial model, we will ignore the constraints that x1and x2should be integers. Also,
we will ignore the constraint that x2should be an even number. Given these assumptions,
set up the problem of maximizing the number of life boats that can be carried as a linear
programming problem. Write the LP for this problem.
Solution For this problem the LP becomes:
max x2
such that x1+ 2x2≥10
x1+ 5x2≤15
x1, x2≥0
(b) Use the “graphical method” to find the solution to the LP found above. Draw the feasible
region in the x1-x2plane and draw several contour lines of the objective function. (That
is, draw several of the lines perpendicular to a line that is parallel to the gradient vector of
the objective function.) Draw the contour line that intersects the corner(s) of the feasible
set at which the optimum occurs. At what point(s) in the feasible region does the ob jective
function attain its optimum?
Solution
0 5 10 15
0
0.5
1
1.5
2
2.5
3
3.5
4
4.5
5
x1
x2
lifeboats LP part (b)
x1 + 2x2 = 10
x1 + 5x2 = 15
pf3
pf4

Partial preview of the text

Download Linear Programming Homework - Discrete Math Model | MATH 381 and more Assignments Mathematics in PDF only on Docsity!

Math 381 Chartier Solutions for Homework #4 Winter 2008

Linear Programming Homework

  1. Recall the problem of life vests and life boats from Chapter 1 of the class notes. For simplicity consider smaller boats with the parameters

C 1 = 1 (capacity of each vest) C 2 = 2 (capacity of each boat) C = 10 (total capacity needed) V 1 = 1 (volume of each vest) V 2 = 5 (volume of each boat) V = 15 (total volume available)

(a) As an initial model, we will ignore the constraints that x 1 and x 2 should be integers. Also, we will ignore the constraint that x 2 should be an even number. Given these assumptions, set up the problem of maximizing the number of life boats that can be carried as a linear programming problem. Write the LP for this problem. Solution For this problem the LP becomes:

max x 2 such that x 1 + 2x 2 ≥ 10 x 1 + 5x 2 ≤ 15 x 1 , x 2 ≥ 0

(b) Use the “graphical method” to find the solution to the LP found above. Draw the feasible region in the x 1 - x 2 plane and draw several contour lines of the objective function. (That is, draw several of the lines perpendicular to a line that is parallel to the gradient vector of the objective function.) Draw the contour line that intersects the corner(s) of the feasible set at which the optimum occurs. At what point(s) in the feasible region does the objective function attain its optimum? Solution

(^00 5 10 )

1

2

3

4

5

x

x

lifeboats LP part (b) x1 + 2x2 = 10 x1 + 5x2 = 15

(c) Now, let us take another step in the modeling process and introduce the constraint that x 1 and x 2 must be integers. This means only a finite number of discrete points from the previous feasible set are still feasible (points for which x 1 and x 2 are both integers). For the feasible region found above, plot all feasible points that meet this integer constraint on x 1 and x 2. Solve this integer programming problem. Explicitly list the point(s) that attain the optimum. Solution The feasible points are (10, 0), (11, 0), (12, 0), (13, 0), (14, 0), (15, 0), (8, 1), (9, 1), and (10, 1). Note that the points (8, 1), (9, 1), and (10, 1) are all optimal for our LP. (d) Suppose the life boats are smaller and only require volume V 2 = 2.5. Repeat part (b) for this case. Solution

(^00 5 10 )

1

2

3

4

5

6

x

x

lifeboats LP part (d)

x1 + 2x2 = 10 x1 + 2.5x2 = 15

(e) Verify your solution in (b) using Excel. Submit a print-out of your Excel worksheet and the Answer Report that Excel produces. Solution See Excel document on course webpage.

  1. A manufacturing firm has discontinued the production of a certain unprofitable product line. This act created considerable excess production capacity. Management is considering devoting this excess capacity to one or more of three products; call them products 1, 2, and 3. The available capacity on the machines that might limit output is summarized in the following table:

Machine Available time type (in machine hours per week) Mailing machine 500 Lathe 350 Grinder 150

The number of machine hours required for each unit of the respective products is:

Machine type Product 1 Product 2 Product 3 Mailing machine 9 3 5 Lathe 5 4 0 Grinder 3 0 2

Note that the productivity coefficient in machine hours per unit. A coefficient of 0 indicates that the corresponding product does not require the particular machine type to be produced.

(^00 5 10 15 20 25 30 35 40 45 50 )

5

10

15

20

25

30

35

40

45

50

55

x

x

LP for Mariko x1 + x2 = 55 10x1 − 3x2 = 200

optimal solution

(b) The solution lies on the intersection of two constraints; list the two constraints. Further, find the solution by hand. That is, don’t solve the problem using linear programming software, although you may do so, if you wish to check your answer. Solution The solution lies on the intersection of x 1 + x 2 = 55 and 10x 1 − 3 x 2 = 200. Therefore, the solution is the solution to the linear system: ( 1 1 10 − 3

x =

⇒ x =

x 1 x 2

(c) Now, we introduce that added constraint that x 2 must be a multiple of 5. This will allow us to solve the actual problem to determine the number of classes that Mariko can take. Note that we have the additional constraint on x 2 but will allow x 1 to take any value. Is there a unique solution? If not, how many solutions exist and how might Mariko decide between the possible solutions? Solution Again, the gradient is easy to find for such an objective function. As such, we can see that the optimal solutions lie along the line segment in the feasible region for which x 2 = 25. This line segment is red in the graph below.

(^00 10 20 30 40 )

5

10

15

20

25

30

35

40

45

50

55

x

x

LP for Mariko x1 + x2 = 55 10x1 − 3x2 = 200

constraint x^ solutions for additional 2 is a multiple of 5

Therefore, there are infinitely many solutions since x 1 is real. There are a variety of ways Mariko could look at how to choose an answer. One option is for her to pick the largest x 1 to make more money. She may also wish to pick the smallest x 1 in order to have more spare time.