Chapter 3: Applications of Differentiation
Section 3.8: Optimization
|
Example 3.8.11
|
|
A can in the shape of a right-circular cylinder, fashioned from a rectangle rolled into a cylinder and disks welded at the top and bottom, must have volume . What are the dimensions of the least-cost can if the side costs per square inch and the top and bottom cost per square inch?
|
|
|
|
Solution
|
|
|
Analysis
|
|
•
|
Figure 3.8.11(a) animates rolling a rectangular sheet of material into a cylinder.
|
•
|
If the radius of the resulting cylinder is , then the circumference (and hence, the width of the sheet) is .
|
•
|
Of course, the height of the cylinder is the height of the rectangle, say, .
|
•
|
The volume of the cylinder is then , which is a constraint on the objective function, itself the total cost of construction.
|
|
>
|
use plots, plottools in
ex3811:=module()
export F;
F:=proc(a)
local p1,p2;
p1:=plottools[polygon]([[cos(a),sin(a),0],[cos(a)-(2*Pi-a)*sin(a),sin(a)+(2*Pi-a)*cos(a),0],[cos(a)-(2*Pi-a)*sin(a),sin(a)+(2*Pi-a)*cos(a),3],[cos(a),sin(a),3]],color=green);
p2:=plot3d(1,theta=0..a,z=0..3,coords=cylindrical,color=red):
display(p1,p2,scaling=constrained);
end proc:
end module:
end use:
plots:-animate(ex3811:-F,[a],a=0..2*Pi,paraminfo=false,orientation=[-160,75,0],axes=none,lightmodel=none);
|
|
Figure 3.8.11(a) Animation: rectangle to cylinder
|
|
|
|
|
|
•
|
The objective function is the total cost, .
|
•
|
Solve the constraint equation for so that the cost function is then or
|
|
|
Analytic Solution
|
|
Initialize and define the cost function
|
•
|
Tools≻Load Package: Real Domain
|
|
Loading RealDomain
|
•
|
Control-drag
Context Panel: Assign Function
|
|
|
Obtain the critical number
|
•
|
Write and press the Enter key.
|
•
|
Context Panel: Solve≻Obtain Solutions for≻
|
•
|
Context Panel: Assign to a Name≻
|
|
|
Unload the Real Domain package
|
•
|
Tools≻Unload Package: Real Domain
|
|
Unloading RealDomain
|
Apply the Second-Derivative test
|
•
|
Write
Context Panel: Evaluate and Display Inline
Context Panel: Evaluate at a Point≻
( ⇒ is a relative minimum)
|
|
=
|
Obtain the minimum cost
|
•
|
Write and press the Enter key.
|
•
|
Context Panel: Simplify≻Assuming Positive
|
|
|
|
|
Define so that the dimensions minimizing cost are
= =
and
= = =
Figure 3.8.11(b) shows how the shape of a can with varies as the relative costs vary. For , the can looks like a mailing tube, so for the sake of the image all such values of are set to .
|
=
|
Figure 3.8.11(b) How relative cost affects shape of can
|
|
|
|
|
|
<< Previous Example Section 3.8
Next Example >>
© Maplesoft, a division of Waterloo Maple Inc., 2024. All rights reserved. This product is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation.
For more information on Maplesoft products and services, visit www.maplesoft.com
|