Carson Witt
\documentclass{article}12% set font encoding for PDFLaTeX or XeLaTeX3\usepackage{ifxetex}4\ifxetex5\usepackage{fontspec}6\else7\usepackage[T1]{fontenc}8\usepackage[utf8]{inputenc}9\usepackage{lmodern}10\usepackage{pgfplots}11\usepgfplotslibrary{polar}12\usepgflibrary{shapes.geometric}13\usetikzlibrary{calc}14\fi1516% used in maketitle17\title{Optimization}18\author{Carson Witt}1920% Enable SageTeX to run SageMath code right inside this LaTeX file.21% documentation: http://mirrors.ctan.org/macros/latex/contrib/sagetex/sagetexpackage.pdf22% \usepackage{sagetex}2324\begin{document}25\maketitle2627\section*{Abstract}2829\noindent{\textbf{History of Cylinders and The 55-gallon Tight Head Steel Drum}} \par3031\vspace{0.2cm}{Circular cylinders have been used for hundreds of years as storage for transportation. Originally made out of wood, these cylinders held solid and liquid goods, such as oil. In 1900, the world had an increasing demand for oil, and drilling was taking place all over the world. But these wooden barrels were not a good mode of transportation for oil. There was a need for manageable-sized, durable, and leak-proof barrels.} \par3233Elizabeth J. Cochran Seaman, A.K.A Nellie Bly, manufactured the first 55-gallon steel drum and patented her design in 1905. This design is actually the same model that we use today. \par3435The use of these 55-gallon steel drums became widespread during World War II, where The Navy used these drums to store gasoline for its air crafts. \par3637\vspace{0.2cm}{\noindent{\textbf{But, There Is a Problem...}}} \par3839\vspace{0.2cm}{Though Bly's steel drum design was amazing and innovative for its time, it is actually not the most optimal cost effective design. This report will show that Bly's steel drum design does not meet the optimal requirements for reducing the manufacturing cost.} \par4041\vspace{0.2cm}{\noindent{\textbf{How Do We Solve this Problem? With Optimization}}} \par4243\vspace{0.2cm}{Optimization is the process of finding the maximum or minimum value of a function for some constraint, which has to be true regardless of the solution. In other words, we will be using Optimization to maximize the cost efficiency of the steel drum.} \par4445To conduct this kind of Optimization problem, we must first recognize that there are two unknowns. So, we will end up creating two equations with two unknowns, one will be a constraint (in this case, cost) function and one will be a volume function. We will write a cost equation and write it in terms of a single variable. Then we will plug in that variable into the volume equation, take the derivative of that volume equation to find critical points, and finally plug in the critical values into the second derivative to determine if it is a maximum, minimum , or neither. \par4647\vspace{0.2cm}{\noindent{\textbf{The Project}}} \par4849\vspace{0.2cm}{As well as proving that the dimensions of the 55-gallon Tight Head Steel Drum are not the best dimensions to minimize costs, a simpler cylinder optimization problem will be explained and solved to get the reader comfortable and familiarized with the optimization process.} \par5051\section*{Context/Work}5253\begin{center}54\textbf{Initial Cylinder Optimization Problem}55\end{center}5657To get comfortable with optimization, we were asked to solve the following cylinder optimization problem:5859\begin{quote}60A closed right circular cylinder (i.e. top and bottom included) has a surface area of 100 square centimeters. What should the radius and height be in order to provide the largest possible volume? Find the result if the surface area is $S$ square centimeters.61\end{quote}6263\noindent Below is a diagram to help you visualize the problem:6465\begin{center}66\begin{tikzpicture}67\node [draw, cylinder, shape aspect=2, rotate=90, minimum height=4cm,68minimum width=3cm] (c) {};69\coordinate(htop) at ($(c.before top)!-1*.1!(c.after top)$);70\coordinate(hbot) at ($(c.after bottom)!-1*.1!(c.before bottom)$);71\coordinate(hlab) at ($(htop)!.5!(hbot)+(c.north)!.9! (c.center)$);72\draw[<->] (hbot)--(htop);73\path (hlab) node {$h$}; %Modify height label here74\coordinate (center) at ($(c.before top)!0.5!(c.after top)$);75\coordinate (rlab) at ($(center) !0.5!(c.after top)$);76\coordinate (rtop) at ($(center)!-1*.1!(c.after top)$);77\draw[<->] (rtop) -- (c.after top);78\path (rlab) node[above] {$r$}; %Modify radius label here79\end{tikzpicture}80\end{center}8182To begin, we will be using the surface area and volume equations shown below to solve for the height and radius that will provide the largest possible volume:8384$$85SA = 2(\pi r^2) + 2 \pi rh = 10086$$87$$88V = \pi r^2 h89$$9091\newpage9293In order to continue, we must solve the surface area equation for one variable. In this case, I chose to solve for $h$:9495$$962(\pi r^2) + 2 \pi rh = 10097$$98$$992(\pi r^2) -100 = -2 \pi rh100$$101$$102\frac{2(\pi r^2) -100}{-2 \pi r} = h103$$104$$105\frac{2(\pi r^2)}{-2 \pi r} - \frac{100}{-2 \pi r} = h106$$107$$108\frac{100}{2 \pi r} - r = h109$$110$$111h = \frac{50}{\pi r} - r112$$113$$114V = 50r - 3 \pi r^2115$$116117Now, we plug $h$ into the volume equation, giving us volume in terms of $r$ only:118119$$120V = \pi r^2 h121$$122$$123V = \pi r^2 (\frac{50}{\pi r} - r)124$$125$$126V = 50r - 3 \pi r^3127$$128129Now, we must take the first derivative, $\frac{dV}{dr}$, to find the critical points, which will then allow us to determine the maximum/minimum height and radius after taking the second derivative, $\frac{d^2 V}{dr^2}$:130131$$132\frac{dV}{dr} = 50 - 3 \pi r^2133$$134$$1350 = 50 - 3 \pi r^2136$$137$$1383 \pi r^2 = 50139$$140$$141r^2 = \frac{50}{3 \pi}142$$143$$144r = \pm \sqrt{\frac{50}{3 \pi}}145$$146147We will only use the positive value of $r$, since a radius cannot be negative:148149$$150r = \sqrt{\frac{50}{3 \pi}}151$$152153\newpage154155Now, we can take the second derivative of the volume equation to confirm if it has a maximum or minimum:156157$$158\frac{d^2 V}{dr^2} = -6 \pi r159$$160161If we plug in $r$ for $\frac{d^2 V}{dr^2}$, it will produce a negative value, confirming that the function is concave down and therefore has a maximum volume at $r = \sqrt{\frac{50}{3 \pi}}$. \par162163Now that we have found $r$, we can plug it into the surface area equation to obtain the optimal height:164165$$166SA = 2(\pi r^2) + 2 \pi rh = 100167$$168$$1692(\pi r^2) + 2 \pi rh = 100170$$171$$1722 \pi (\sqrt{\frac{50}{3 \pi}})^2 + 2 \pi (\sqrt{\frac{50}{3 \pi}})h = 100173$$174$$1752 \pi \cdot \frac{50}{3 \pi} - 100 = -2 \pi (\sqrt{\frac{50}{3 \pi}})h176$$177$$178\frac{100}{3} - 100 = -2 \pi (\sqrt{\frac{50}{3 \pi}})h179$$180$$181h = \frac{\frac{100}{3} - 100}{-2 \pi (\sqrt{\frac{50}{3 \pi}})}182$$183184So, the optimal dimensions for this cylinder are:185\begin{itemize}186\item radius: $\sqrt{\frac{50}{3 \pi}}$ \\187\item height: $\frac{\frac{100}{3} - 100}{-2 \pi (\sqrt{\frac{50}{3 \pi}})}$188\end{itemize}189190To find the same result if the surface area is S centimeters, we must remember that S and $100$ are the same element of the equation and are interchangeable if we replace $100$ with S using the un-simplified (meaning that you don't divide by $2$ and reduce $100$ to $50$) versions of the two equations, or $\frac{\frac{100}{3} - 100}{-2 \pi (\sqrt{\frac{100}{6 \pi}})}$ and $\sqrt{\frac{100}{6 \pi}}$. \par191192So, the optimal dimensions for this cylinder with a surface area of S are:193\begin{itemize}194\item radius: $\sqrt{\frac{S}{6 \pi}}$ \\195\item height: $\frac{\frac{S}{3} - S}{-2 \pi (\sqrt{\frac{S}{6 \pi}})}$196\end{itemize}197198\newpage199200\begin{center}201\textbf{The 55-gallon Tight Head Steel Drum Problem} \par202203The specification diagram from The American National Standards Institute (ANSI) document is given below:204\end{center}205206207\begin{center}208\begin{tikzpicture}[scale=0.2]209% the sides210\draw (0,0) -- (0,34);211\draw (1,33) -- (22,33);212\draw (23,34) -- (23,0);213\draw (22,1) -- (1,1);214\draw[dotted] (0,34) -- (23,34);215\draw[dotted] (0,0) -- (23,0);216217% the offset top and bottom curves218\draw (0,34) .. controls (0.5,33) and (0,33) .. (1,33) ;219\draw (22,33) .. controls (23,33) and (22.5,33) .. (23,34);220\draw (23,0) .. controls (22.5,1) and (23,1) .. (22,1);221\draw (1,1) .. controls (0,1) and (0.5,1) .. (0,0);222223% the dimensions224\draw[<->] (0,17) -- (23,17);225\node[font=\tiny,fill=white] at (11.5,17) {$22\frac{1}{2}$ inches};226227\draw[<->] (30,0) -- (30,34);228\node[font=\tiny,fill=white] at (30,17) {$34\frac{3}{8}$ inches};229\draw (25,0) -- (35,0);230\draw (25,34) -- (35,34);231232\draw[->] (11.5,3) -- (11.5,1);233\draw[->] (11.5,-1) -- (11.5,0);234\draw[->] (11.5,35) -- (11.5,34);235\draw[->] (11.5,31) -- (11.5,33);236\draw (11.5,3) -- (12.5,3);237\draw (11.5,31) -- (12.5,31);238\node[font=\tiny] at (15,31) {$\frac{5}{8}$ inches};239\node[font=\tiny] at (15,3) {$\frac{5}{8}$ inches};240241\end{tikzpicture}242\end{center}243244\noindent{\textbf{Cost and Material Parameters and Specifications to Account For:}} \par245246\begin{itemize}247\item 18 gauge steel is 45 cents per square foot ($\frac{45}{144}$ cents per square inch)248\item 20 gauge steel is 45 cents per square foot ($\frac{34}{144}$ cents per square inch)249\item Welding and pressing/sealing cost is 10 cents per foot ($\frac{10}{12}$ cents per inch)250\item Cutting steel costs 2 cents per foot ($\frac{2}{12}$ cetns per inch)251\end{itemize}252253\noindent{\textbf{Other Parameters and Specifications:}} \par254255\begin{itemize}256\item The vertical seam on the cylinder is welded together257\item The top and bottom are attached by a pressing/sealing machine. The pressing/sealing process requires approximately $\frac{13}{16}$ inches from the cylinder and $\frac{3}{4}$ inches from the disk to be curled together. Hence, these inches are lost in the final dimensions258\item The top and bottom are set down $\frac{5}{8}$ inches into the cylinder.259\end{itemize}260261\newpage262263\noindent{\textbf{Work:}} \par264265Some equations and variables must first be defined before solving this problem. In this problem, $h$ will be the height that contributes to the volume of the drum and $r$ will be the radius of the circle that contributes to the volume of the drum. \par266267\begin{itemize}268\item Area of the circle (top/bottom) that contributes to the volume: $\pi r^2$269\item Area of the circle that must be used: $\pi (r + \frac{5}{8})^2$270\item Area of the sheet that must be bought per circle: $[2(r + \frac{5}{8})]^2$271\item Area of the cylinder (using the rectangular sheet): $2 \pi r \cdot A = (h + \frac{13}{8})$272\item Vertical seam of the cylinder: $h + \frac{13}{8}$273\item Circumference of each circle: $2 \pi (r + \frac{5}{8})$274\item Volume of the drum:275\end{itemize}276277\begin{center}278$V = 55$ gallons $\cdot \frac{231 in^3}{1 gallon} = \pi r^2 h$ \par279\end{center}280281$$282\pi r^2 h = 12705283$$284$$285h = \frac{12705}{\pi r^2 h}286$$287288Now, we can create a cost function: \par289290$$291C = \frac{34}{144} [2 \pi r(h + \frac{13}{8})] + \frac{45}{144} \cdot 2[2(r + \frac{5}{8})]^2 + \frac{10}{12} [2 \cdot 2 \pi(r + \frac{5}{8})] + \frac{2}{12} [2 \cdot 2 \pi(r + \frac{5}{8})] + \frac{10}{12} (h + \frac{13}{8})292$$293294Which can be simplified to: \par295296$$297C = \frac{17 \pi r}{36} (h + \frac{13}{8}) + \frac{5}{2}(r + \frac{5}{8})^2 + 4 \pi (r + \frac{5}{8}) + \frac{5}{6} (h + \frac{13}{8})298$$299300Now we can substitute $\frac{12705}{\pi r^2}$ for $h$ and can define $C$ in terms of $r$: \par301302$$303C = \frac{17 \pi r}{36} (\frac{12705}{\pi r^2} + \frac{13}{8}) + \frac{5}{2}(r + \frac{5}{8})^2 + 4 \pi (r + \frac{5}{8}) + \frac{5}{6} (\frac{12705}{\pi r^2} + \frac{13}{8})304$$305306Which can be simplified to: \par307308$$309C = \frac{5}{2} r^2 + \frac{221 \pi}{288} r + \frac{25}{8} r + 4 \pi r + \frac{4235 \cdot 17}{12r} + \frac{4235 \cdot 5}{2 \pi r^2} + \frac{125}{128} + \frac{65}{48} + \frac{20 \pi}{8}310$$311312\newpage313314To continue, we must take $\frac{dC}{dr}$ and set it to zero to find the critical points. We must also take the second derivative to determine which critical point is a maximum: \par315316$$317\frac{dC}{dr} = 5r + \frac{1373 \pi}{288} + \frac{25}{8} - \frac{4235 \cdot 17}{12r^2} - \frac{4235 \cdot 5}{\pi r^3}318$$319$$320\frac{d^2 C}{dr^2} = \frac{4235 \cdot 17}{6r^3} + \frac{3 \cdot 4235 \cdot 5}{\pi r^4}321$$322323The critical points of $\frac{dC}{dr}$ are at $r = -1.126, 0,$ and $9.929$. By plugging these numbers into $\frac{d^2C}{dr^2}$, the minimum cost is found to be achieved at $r = 9.929$ inches. We can then plug $r$ into the original function to find $h$: \par324325$$326h = \frac{12705}{\pi r^2}327$$328$$329h = \frac{12705}{\pi (9.929)^2}330$$331$$332h = 41.02333$$334335But due to the way the variables are defined, the height of the optimal cylinder is actually $h + \cdot \frac{5}{8} = 41.02 + \cdot \frac{5}{8} = 42.27$ inches. \par336337\vspace{0.2cm}{\noindent{So, the optimal dimensions of the cylinder are:}} \par338339\begin{itemize}340\item $r = 9.929$ inches341\item $h = 42.27$ inches342\end{itemize}343344\noindent{However, the actual dimensions of the 55-gallon Tight Head Steel Drum are:} \par345346\begin{itemize}347\item $r = 12$ inches348\item $h = 35$ inches349\end{itemize}350351\noindent{As you can see, the actual dimensions of the 55-gallon Tight Head Steel Drum are not the most cost effective.} \par352353\section*{Conclusion}354355This has been the most difficult project for me to solve all year. I got stumped many times and often got frustrated with the problem. It took a lot of peer collaboration and discussion to finally figure out the solution. While the initial cylinder surface area problem was not too difficult, the cost parameter and dimensions of the 55-gallon Tight Head Steel Drum made the problem very confusing. I found keeping track of all the specifications and dimensions to be very difficult for me. \par356I honestly don't think that I could have done this project alone. I collaborated with many people to get a final answer. However, the collaboration was very effective and I enjoyed hearing other people's ideas, answers, and opinions. \par357358\vspace{0.2cm}{\noindent{\textbf{People I Collaborated With}}} \par359360\begin{itemize}361\item Hector Cantu362\item Vicki Curtin363\item Fletcher Barnhill364\item Jackie Smith365\end{itemize}366367\end{document}368369370