Numerical Method for engineers-chapter 15

April 6, 2018 | Author: Mrbudakbaek | Category: Mathematical Optimization, Linear Programming, Microsoft Excel, Spreadsheet, Matlab
Share Embed Donate


Short Description

Download Numerical Method for engineers-chapter 15...

Description

1

CHAPTER 15 15.1 (a) Define xa = amount of product A produced, and xb = amount of product B produced. The objective function is to maximize profit, P = 45 x a + 20 xb Subject to the following constraints 20 x a + 5 xb ≤ 9500 0.04 x a + 0.12 xb ≤ 40 x a + x b ≤ 550 x a , xb ≥ 0

{raw materials} {production time} {storage} {positivity}

(b) To solve graphically, the constraints can be reformulated as the following straight lines xb = 1900 − 4 x a xb = 333.3333 − 0.333333 x a xb = 550 − x a

{raw materials} {production time} {storage}

The objective function can be reformulated as xb = (1 / 20) P − 2.25 x a The constraint lines can be plotted on the xa-xb plane to define the feasible space. Then the objective function line can be superimposed for various values of P until it reaches the boundary. The result is P ≅ 22,250 with xa ≅ 450 and xb ≅ 100. Notice also that material and storage are the binding constraints and that there is some slack in the time constraint.

ial mater

00 15,0

0 7,50

100

optimum

P=

P=

200

00 22,5

e

300

P=

time

ag or st

xb

xa

0 0

200

400

600

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

2 (c) The simplex tableau for the problem can be set up and solved as Basis P S1 S2 S3

P 1 0 0 0

Basis P xa S2 S3 Basis P xa S2 xb

xa -45 20 0.04 1

xb -20 5 0.12 1

S1 0 1 0 0

S2 0 0 1 0

S3 0 0 0 1

Solution 0 9500 40 550

Intercept

P 1 0 0 0

xa xb 0 -8.75 1 0.25 0 0.11 0 0.75

S1 2.25 0.05 -0.002 -0.05

S2 0 0 1 0

S3 0 0 0 1

Solution 21375 475 21 75

Intercept

P 1 0 0 0

xa 0 1 0 0

S1 1.666667 0.066667 0.005333 -0.06667

S2 0 0 1 0

S3 11.66667 -0.33333 -0.14667 1.333333

Solution 22250 450 10 100

Intercept

xb 0 0 0 1

475 1000 550

1900 190.9091 100

(d) An Excel spreadsheet can be set up to solve the problem as

The formulas in column D are

The Solver can be called and set up as

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

3

Before depressing the Solve button, depress the Options button and check the boxes to “Assume Linear Model” and “Assume Non-Negative.”

The resulting solution is

In addition, a sensitivity report can be generated as

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

4

(e) The high shadow price for storage from the sensitivity analysis from (d) suggests that increasing storage will result in the best increase in profit. 15.2 (a) The LP formulation is given by Maximize Z = 150 x1 + 175x 2 + 250 x 3

{Maximize profit}

subject to 7 x1 + 11x 2 + 15x 3 ≤ 154 10 x1 + 8 x 2 + 12 x 3 ≤ 80 x1 ≤ 9 x2 ≤ 6 x3 ≤ 5 x1 , x 2 , x 3 ≥ 0

{Material constraint} {Time constraint} {“Regular” storage constraint} {“Premium” storage constraint} {“Supreme” storage constraint} {Positivity constraints}

(b) The simplex tableau for the problem can be set up and solved as Basis Z S1 S2 S3 S4 S5

Z 1 0 0 0 0 0

x1 x2 x3 -150 -175 -250 7 11 15 10 8 12 1 0 0 0 1 0 0 0 1

S1

Basis Z S1 S2 S3 S4

Z 1 0 0 0 0

x1 x2 -150 -175 7 11 10 8 1 0 0 1

S1

x3 0 0 0 0 0

S2 0 1 0 0 0 0

S3 0 0 0 1 0 0

S4

0 0 1 0 0 0

S3 0 0 0 1 0

S4

0 0 1 0 0

S2 0 1 0 0 0

S5 0 0 0 0 1 0

0 0 0 0 1

Solution 0 154 80 9 6 5

Intercept

S5 Solution 250 1250 -15 79 -12 20 0 9 0 6

Intercept

0 0 0 0 0 1

10.2667 6.66667 ∞ ∞ 5

7.18182 2.5 ∞ 6

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

5 x3

0

0

0

Basis Z S1 x2 S3 S4 x3

Z 1 0 0 0 0 0

x1 68.75 -6.75 1.25 1 -1.25 0

x2

Basis Z S1 x2 S3 S5 x3

Z 1 0 0 0 0 0

x1 58.3333 -5.5 0 1 -0.8333 0.83333

x2

1 x3

0 0 1 0 0 0

0

0 1 0 0 0 0

S2 S3 21.88 0 -1.375 0 0.125 0 0 1 -0.125 0 0 0

0 1 0 0 0 0

S2 S3 S4 20.83 0 8.33 -1.25 0 -1 0 0 1 0 1 0 -0.083 0 0.67 0.083 0 -0.67

S1 0 0 0 0 0 1

x3 0 0 1 0 0 0

0

S1 0 0 0 0 0 1

0

0 S4

1

5

S5 Solution 0 -12.5 1687.5 0 1.5 51.5 0 -1.5 2.5 0 0 9 1 1.5 3.5 0 1 5 S5 0 0 0 0 1 0

∞ Intercept 34.3333 -1.66667 ∞ 2.33333 5

Solution 1716.7 48 6 9 2.3333 2.6667

(c) An Excel spreadsheet can be set up to solve the problem as

The formulas in column E are

The Solver can be called and set up as

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

6

The resulting solution is

In addition, a sensitivity report can be generated as

(d) The high shadow price for time from the sensitivity analysis from (c) suggests that increasing time will result in the best increase in profit. 15.3 (a) To solve graphically, the constraints can be reformulated as the following straight lines PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

7

y = 6.22222 − 0.53333 x y = 7.2727 − 0.90909 x y = 9 − 2.5 x The objective function can be reformulated as y = 0.8P − 1.4 x The constraint lines can be plotted on the x-y plane to define the feasible space. Then the objective function line can be superimposed for various values of P until it reaches the boundary. The result is P ≅ 9.30791 with x ≅ 1.4 and y ≅ 5.5.

y 10 optimum

8 6

P=

4 P=

2

08

5

x

0 -2

9.3

P=

0

1

1

2

3

4

(b) The simplex tableau for the problem can be set up and solved as Basis P S1 S2 S3

P 1 0 0 0

x y -1.75 -1.25 1.2 2.25 1 1.1 2.5 1

Basis P S1 S2 x

P 1 0 0 0

x 0 0 0 1

Basis P y S2 x

P 1 0 0 0

x 0 0 0 1

S1 0 1 0 0

S2 0 0 1 0

S3 0 0 0 1

Solution 0 14 8 9

Intercept

y -0.55 1.77 0.7 0.4

S1 0 1 0 0

S2 0 0 1 0

S3 0.7 -0.48 -0.4 0.4

Solution 6.3 9.68 4.4 3.6

Intercept

y 0 1 0 0

S1 0.310734 0.564972 -0.39548 -0.22599

S2 0 0 1 0

S3 0.550847 -0.27119 -0.21017 0.508475

Solution 9.30791 5.468927 0.571751 1.412429

Intercept

11.66667 8 3.6

5.468927 6.285714 9

(c) An Excel spreadsheet can be set up to solve the problem as

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

8

The formulas in column D are

The Solver can be called and set up as

The resulting solution is

15.4 (a) To solve graphically, the constraints can be reformulated as the following straight lines y = 20 − 2.5 x y = 10 − 10 x y = 8 − 0.5 x The objective function can be reformulated as

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

9 y = 0.125P − 0.75 x The constraint lines can be plotted on the x-y plane to define the feasible space. Then the objective function line can be superimposed for various values of P until it reaches the boundary. The result is P ≅ 72 with x ≅ 4 and y ≅ 6. y

10 optimum

8 6 P=

4 P=

2

50

P=

20

72

x

0 -2

0

5

10

(b) The simplex tableau for the problem can be set up and solved as Basis P S1 S2 S3

P 1 0 0 0

x -6 5 6 2

y -8 2 6 4

S1 0 1 0 0

S2 0 0 1 0

S3 0 0 0 1

Solution 0 40 60 32

Intercept

Basis P S1 S2 y

P 1 0 0 0

x -2 4 3 0.5

y 0 0 0 1

S1 0 1 0 0

S2 0 0 1 0

S3 2 -0.5 -1.5 0.25

Solution 64 24 12 8

Intercept

Basis P S1 x y

P 1 0 0 0

x 0 0 1 0

y 0 0 0 1

S1 0 1 0 0

S2 0.666667 -1.33333 0.333333 -0.16667

S3 1 1.5 -0.5 0.5

Solution 72 8 4 6

Intercept

20 10 8

6 4 16

(c) An Excel spreadsheet can be set up to solve the problem as

The formulas in column D are

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

10

The Solver can be called and set up as

The resulting solution is

15.5 An Excel spreadsheet can be set up to solve the problem as

The formulas are

The Solver can be called and set up as PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

11

The resulting solution is

15.6 An Excel spreadsheet can be set up to solve the problem as

The formulas are

The Solver can be called and set up as

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

12

The resulting solution is

15.7 (a) The function and the constraint can be plotted and as shown indicate a solution of x = 2 and y = 1.

y

(3, 3)

(2, 1)

x

(b) An Excel spreadsheet can be set up to solve the problem as

The formulas are PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

13

The Solver can be called and set up as

The resulting solution is

15.8 This problem can be solved with a variety of software tools. Excel: An Excel spreadsheet can be set up to solve the problem as

The formulas are

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

14 The Solver can be called and set up as

The resulting solution is

MATLAB: Set up an M-file to hold the negative of the function function f=fxy(x) f = -(2.25*x(1)*x(2)+1.75*x(2)-1.5*x(1)^2-2*x(2)^2);

Then, the MATLAB function fminsearch can be used to determine the maximum: >> x=fminsearch(@fxy,[0,0]) x = 0.5676

0.7568

>> fopt=-fxy(x) fopt = 0.6622

15.9 This problem can be solved with a variety of software tools. Excel: An Excel spreadsheet can be set up to solve the problem as

The formulas are PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

15

The Solver can be called and set up as

The resulting solution is

MATLAB: Set up an M-file to hold the negative of the function function f=fxy(x) f = -(4*x(1)+2*x(2)+x(1)^2-2*x(1)^4+2*x(1)*x(2)-3*x(2)^2);

Then, the MATLAB function fminsearch can be used to determine the maximum: >> x=fminsearch(@fxy,[1,1]) x =

0.9676

0.6559

>> fopt=-fxy(x) fopt = 4.3440

15.10 (a) This problem can be solved graphically by using a software package to generate a contour plot of the function. For example, the following plot can be developed with Excel. As can be seen, a minimum occurs at approximately x = 3.3 and y = −0.7. PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

16

2 1.6 1.2 0.8 0.4 0 -0.4 -0.8 -1.2

-2

0

2

4

6

8

-1.6 -2

(b) We can use a software package like MATLAB to determine the minimum by first setting up an M-file to hold the function as function f=fxy(x) f = -8*x(1)+x(1)^2+12*x(2)+4*x(2)^2-2*x(1)*x(2);

Then, the MATLAB function fminsearch can be used to determine the location of the minimum as: >> x=fminsearch(@fxy,[0,0]) x = 3.3333

-0.6666

Thus, x = 3.3333 and y = −0.6666. (c) A software package like MATLAB can then be used to evaluate the function value at the minimum as in >> fopt=fxy(x) fopt = -17.3333

(d) We can verify that this is a minimum as follows ∂2 f =2 ∂x 2

∂2 f =8 ∂y 2

∂  ∂f  ∂  ∂f    =   = −2 ∂y  ∂x  ∂x  ∂y 

H =  2 − 2 − 2 8  H = 2 × 8 − ( −2)(−2) = 12 PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

17

Therefore the result is a minimum because H > 0 and ∂ 2 f / ∂x 2 > 0. 15.11 The volume of a right circular cone can be computed as V=

πr 2 h 3

where r = the radius and h = the height. The area of the cone’s side is computed as As = πrs where s = the length of the side which can be computed as s = r 2 + h2 The area of the circular cover is computed as Ac = πr 2 (a) Therefore, the optimization problem with no side slope constraint can be formulated as minimize C = 100V + 50 As + 25 Ac subject to V ≥ 50 A solution can be generated in a number of different ways. For example, using Excel

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

18 The underlying formulas can be displayed as

The Solver can be implemented as

The result is

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

19

(b) The optimization problem with the side slope constraint can be formulated as minimize C = 100V + 50 As + 25 Ac subject to V ≥ 50 h ≤1 r A solution can be generated in a number of different ways. For example, using Excel

The underlying formulas can be displayed as

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

20 The Solver can be implemented as

The result is

15.12 Assuming that the amounts of the two-door and four-door models are x1 and x2, respectively, the linear programming problem can be formulated as Maximize: z = 13,500 x1 + 15,000 x 2 subject to

15 x1 + 20 x 2 ≤ 8,000 700 x1 + 500 x 2 ≤ 240,000 x1 ≤ 400 x 2 ≤ 350 x1 , x 2 ≥ 0

(a) To solve graphically, the constraints can be reformulated as the following straight lines x 2 = 400 − 0.75 x1 PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

21 x 2 = 480 − 1.4 x1 x1 = 400 x 2 = 350 The objective function can be reformulated as x 2 = (1 / 15,000) z − 0.9 x1 The constraint lines can be plotted on the x1-x2 plane to define the feasible space. Then the objective function line can be superimposed for various values of z until it reaches the boundary. The result is z ≅ $6,276,923 with x1 ≅ 123.08 and x2 ≅ 307.69.

x2 500 optimum

400

4-door storage

200

z= z=

100 0 0

2,0 0

4,0 00, 000

z=

nd

0,0 00

100

tim e

6 de ,276,9 23 m a

200

300

2-door storage

300

x1 400

(b) The solution can be generated with Excel as in the following worksheet

The underlying formulas can be displayed as

The Solver can be implemented as PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

22

Notice how, along with the other constraints, we have specified that the decision variables must be integers. The result of running Solver is

Thus, because we have constrained the decision variables to be integers, the maximum profit is slightly smaller than that obtained graphically in part (a). 15.13 (a) First, we define the decision variables as x1 = number of clubs produced x2 = number of axes produced The damages can be parameterized as damage/club = 2(0.45) + 1(0.65) = 1.55 maim equivalents damage/axe = 2(0.70) + 1(0.35) = 1.75 maim equivalents The linear programming problem can then be formulated as maximize Z = 1.55 x1 + 1.75 x 2 subject to

5.1x1 + 3.2 x 2 ≤ 240 2.1x1 + 4.3 x 2 ≤ 200 x1 , x 2 ≥ 0

(materials) (time) (positivity)

(b) and (c) To solve graphically, the constraints can be reformulated as the following straight lines PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

23 x 2 = 75 − 1.59375 x1 x 2 = 46.51163 − 0.488372 x1 The objective function can be reformulated as x 2 = (1 / 1.75) Z − 0.885714 x1 The constraint lines can be plotted on the x1-x2 plane to define the feasible space. Then the objective function line can be superimposed for various values of Z until it reaches the boundary. The result is Z ≅ 99.3 with x1 ≅ 25.8 and x2 ≅ 33.9.

x2

80

60

Z=

optimum (25.8, 33.9)

99 .3

40 Z

20

Z

feasible

=7 0

infeasible

=3 5

x1

0 0

20

40

60

80

100

(d) The solution can be generated with Excel as in the following worksheet

The underlying formulas can be displayed as

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

24

The Solver can be implemented as

Notice how, along with the other constraints, we have specified that the decision variables must be integers. The result of running Solver is

Thus, because we have constrained the decision variables to be integers, the maximum damage is slightly smaller than that obtained graphically in part (c).

PROPRIETARY MATERIAL. © The McGraw-Hill Companies, Inc. All rights reserved. No part of this Manual may be displayed, reproduced or distributed in any form or by any means, without the prior written permission of the publisher, or used beyond the limited distribution to teachers and educators permitted by McGraw-Hill for their individual course preparation. If you are a student using this Manual, you are using it without permission.

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF