Carson Witt
\documentclass[landscape]{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:22% http://mirrors.ctan.org/macros/latex/contrib/sagetex/sagetexpackage.pdf23% \usepackage{sagetex}242526%% ADDED PREAMBLE27\usepackage{todonotes}28\usepackage[displaymath, mathlines]{lineno}29\usepackage{hyperref}30\usepackage{pagecolor}31\usepackage{tabularx}3233\newcommand{\sg}[1]{\todo[color=red!40,fancyline]{#1}}34\newcommand{\good}[1]{\todo[color=blue!40,fancyline]{#1}}35\newcommand{\comm}[1]{\todo[color=orange!40,fancyline]{#1}}36%%373839\begin{document}4041%% ADDED FEEDBACK42\pagecolor{yellow!30!white}43\mbox{\LARGE Optimization }\hfill Carson Witt4445\vspace{1cm}4647\hrule4849\vspace{1cm}5051Grade: 1005253\vspace{1cm}5455\begin{tabularx}{15cm}{ |p{6cm} | p{8cm}|}56\hline57Approriate Introduction &58Great intro with the leading questions to help the reader along. I like59how you used LaTeX formatting to help with this part.60\\61\hline62Explanation of calculating the cost &63Good job here breaking the cost into pieces, although some of those64pieces did look a little long...65\\66\hline67Constraints required for optimization &68Yes.69\\70\hline71Finding the optimum dimensions for least cost &72Yes.73\\74\hline75Reflections of how ANSI compares &76Interesting that you thought you wouldn't have been able to do this alone.77I think you would have been able to figure it out. Talking with others78can always provide interesting insights, but that doesn't necessarily79mean you wouldn't be able to find an answer alone.80\\81\hline82Proper formatting &83Yes. Good job learning LaTeX this year!84\\85\hline86\end{tabularx}8788\newpage8990\listoftodos[List of Comments]9192\newpage9394\maketitle9596\linenumbers97\pagecolor{white}98%%99100101102\section*{Abstract}103104\noindent{\textbf{History of Cylinders and The 55-gallon Tight Head Steel Drum}}105\par106107\vspace{0.2cm}{Circular cylinders have been used for hundreds of years as108storage for transportation. Originally made out of wood, these cylinders held109solid and liquid goods, such as oil. In 1900, the world had an increasing demand110for oil, and drilling was taking place all over the world. But these wooden111barrels were not a good mode of transportation for oil. There was a need for112manageable-sized, durable, and leak-proof barrels.} \par113114Elizabeth J. Cochran Seaman, A.K.A Nellie Bly, manufactured the first 55-gallon115steel drum and patented her design in 1905. This design is actually the same116model that we use today. \par117118The use of these 55-gallon steel drums became widespread during World War II,119where The Navy used these drums to store gasoline for its air crafts. \par120121\vspace{0.2cm}{\noindent{\textbf{But, There Is a Problem...}}} \par122123\vspace{0.2cm}{Though Bly's steel drum design was amazing and innovative for its124time, it is actually not the most optimal cost effective design. This report125will show that Bly's steel drum design does not meet the optimal requirements126for reducing the manufacturing cost.} \par127128\vspace{0.2cm}{\noindent{\textbf{How Do We Solve this Problem? With129Optimization}}} \par130131\vspace{0.2cm}{Optimization is the process of finding the maximum or minimum132value of a function for some constraint, which has to be true regardless of the133solution. In other words, we will be using Optimization to maximize the cost134efficiency of the steel drum.} \par135136To conduct this kind of Optimization problem, we must first recognize that there137are two unknowns. So, we will end up creating two equations with two unknowns,138one will be a constraint (in this case, cost) function and one will be a volume139function. We will write a cost equation and write it in terms of a single140variable. Then we will plug in that variable into the volume equation, take the141derivative of that volume equation to find critical points, and finally plug in142the critical values into the second derivative to determine if it is a maximum,143minimum , or neither. \par144145\vspace{0.2cm}{\noindent{\textbf{The Project}}} \par146147\vspace{0.2cm}{As well as proving that the dimensions of the 55-gallon Tight148Head Steel Drum are not the best dimensions to minimize costs, a simpler149cylinder optimization problem will be explained and solved to get the reader150comfortable and familiarized with the optimization process.} \par151152\section*{Context/Work}153154\begin{center}155\textbf{Initial Cylinder Optimization Problem}156\end{center}157158To get comfortable with optimization, we were asked to solve the following159cylinder optimization problem:160161\begin{quote}162A closed right circular cylinder (i.e. top and bottom included) has a surface163area of 100 square centimeters. What should the radius and height be in order to164provide the largest possible volume? Find the result if the surface area is $S$165square centimeters.166\end{quote}167168\noindent Below is a diagram to help you visualize the problem:169170\begin{center}171\begin{tikzpicture}172\node [draw, cylinder, shape aspect=2, rotate=90, minimum height=4cm,173minimum width=3cm] (c) {};174\coordinate(htop) at ($(c.before top)!-1*.1!(c.after top)$);175\coordinate(hbot) at ($(c.after bottom)!-1*.1!(c.before bottom)$);176\coordinate(hlab) at ($(htop)!.5!(hbot)+(c.north)!.9!177(c.center)$);178\draw[<->] (hbot)--(htop);179\path (hlab) node {$h$}; %Modify height label here180\coordinate (center) at ($(c.before top)!0.5!(c.after top)$);181\coordinate (rlab) at ($(center) !0.5!(c.after top)$);182\coordinate (rtop) at ($(center)!-1*.1!(c.after top)$);183\draw[<->] (rtop) -- (c.after top);184\path (rlab) node[above] {$r$}; %Modify radius label here185\end{tikzpicture}186\end{center}187188To begin, we will be using the surface area and volume equations shown below to189solve for the height and radius that will provide the largest possible volume:190191$$192SA = 2(\pi r^2) + 2 \pi rh = 100193$$194$$195V = \pi r^2 h196$$197198\newpage199200In order to continue, we must solve the surface area equation for one variable.201In this case, I chose to solve for $h$:202203$$2042(\pi r^2) + 2 \pi rh = 100205$$206$$2072(\pi r^2) -100 = -2 \pi rh208$$209$$210\frac{2(\pi r^2) -100}{-2 \pi r} = h211$$212$$213\frac{2(\pi r^2)}{-2 \pi r} - \frac{100}{-2 \pi r} = h214$$215$$216\frac{100}{2 \pi r} - r = h217$$218$$219h = \frac{50}{\pi r} - r220$$221$$222V = 50r - 3 \pi r^2223$$224225Now, we plug $h$ into the volume equation, giving us volume in terms of $r$226only:227228$$229V = \pi r^2 h230$$231$$232V = \pi r^2 (\frac{50}{\pi r} - r)233$$234$$235V = 50r - 3 \pi r^3236$$237238Now, we must take the first derivative, $\frac{dV}{dr}$, to find the critical239points, which will then allow us to determine the maximum/minimum height and240radius after taking the second derivative, $\frac{d^2 V}{dr^2}$:241242$$243\frac{dV}{dr} = 50 - 3 \pi r^2244$$245$$2460 = 50 - 3 \pi r^2247$$248$$2493 \pi r^2 = 50250$$251$$252r^2 = \frac{50}{3 \pi}253$$254$$255r = \pm \sqrt{\frac{50}{3 \pi}}256$$257258We will only use the positive value of $r$, since a radius cannot be negative:259260$$261r = \sqrt{\frac{50}{3 \pi}}262$$263264\newpage265266Now, we can take the second derivative of the volume equation to confirm if it267has a maximum or minimum:268269$$270\frac{d^2 V}{dr^2} = -6 \pi r271$$272273If we plug in $r$ for $\frac{d^2 V}{dr^2}$, it will produce a negative value,274confirming that the function is concave down and therefore has a maximum volume275at $r = \sqrt{\frac{50}{3 \pi}}$. \par276277Now that we have found $r$, we can plug it into the surface area equation to278obtain the optimal height:279280$$281SA = 2(\pi r^2) + 2 \pi rh = 100282$$283$$2842(\pi r^2) + 2 \pi rh = 100285$$286$$2872 \pi (\sqrt{\frac{50}{3 \pi}})^2 + 2 \pi (\sqrt{\frac{50}{3 \pi}})h = 100288$$289$$2902 \pi \cdot \frac{50}{3 \pi} - 100 = -2 \pi (\sqrt{\frac{50}{3 \pi}})h291$$292$$293\frac{100}{3} - 100 = -2 \pi (\sqrt{\frac{50}{3 \pi}})h294$$295$$296h = \frac{\frac{100}{3} - 100}{-2 \pi (\sqrt{\frac{50}{3 \pi}})}297$$298299So, the optimal dimensions for this cylinder are:300\begin{itemize}301\item radius: $\sqrt{\frac{50}{3 \pi}}$ \\302\item height: $\frac{\frac{100}{3} - 100}{-2 \pi (\sqrt{\frac{50}{3 \pi}})}$303\end{itemize}304305To find the same result if the surface area is S centimeters, we must remember306that S and $100$ are the same element of the equation and are interchangeable if307we replace $100$ with S using the un-simplified (meaning that you don't divide308by $2$ and reduce $100$ to $50$) versions of the two equations, or309$\frac{\frac{100}{3} - 100}{-2 \pi (\sqrt{\frac{100}{6 \pi}})}$ and310$\sqrt{\frac{100}{6 \pi}}$. \par311312So, the optimal dimensions for this cylinder with a surface area of S are:313\begin{itemize}314\item radius: $\sqrt{\frac{S}{6 \pi}}$ \\315\item height: $\frac{\frac{S}{3} - S}{-2 \pi (\sqrt{\frac{S}{6 \pi}})}$316\end{itemize}317318\newpage319320\begin{center}321\textbf{The 55-gallon Tight Head Steel Drum Problem} \par322323The specification diagram from The American National Standards Institute (ANSI)324document is given below:325\end{center}326327328\begin{center}329\begin{tikzpicture}[scale=0.2]330% the sides331\draw (0,0) -- (0,34);332\draw (1,33) -- (22,33);333\draw (23,34) -- (23,0);334\draw (22,1) -- (1,1);335\draw[dotted] (0,34) -- (23,34);336\draw[dotted] (0,0) -- (23,0);337338% the offset top and bottom curves339\draw (0,34) .. controls (0.5,33) and (0,33) .. (1,33) ;340\draw (22,33) .. controls (23,33) and (22.5,33) .. (23,34);341\draw (23,0) .. controls (22.5,1) and (23,1) .. (22,1);342\draw (1,1) .. controls (0,1) and (0.5,1) .. (0,0);343344% the dimensions345\draw[<->] (0,17) -- (23,17);346\node[font=\tiny,fill=white] at (11.5,17) {$22\frac{1}{2}$ inches};347348\draw[<->] (30,0) -- (30,34);349\node[font=\tiny,fill=white] at (30,17) {$34\frac{3}{8}$ inches};350\draw (25,0) -- (35,0);351\draw (25,34) -- (35,34);352353\draw[->] (11.5,3) -- (11.5,1);354\draw[->] (11.5,-1) -- (11.5,0);355\draw[->] (11.5,35) -- (11.5,34);356\draw[->] (11.5,31) -- (11.5,33);357\draw (11.5,3) -- (12.5,3);358\draw (11.5,31) -- (12.5,31);359\node[font=\tiny] at (15,31) {$\frac{5}{8}$ inches};360\node[font=\tiny] at (15,3) {$\frac{5}{8}$ inches};361362\end{tikzpicture}363\end{center}364365\noindent{\textbf{Cost and Material Parameters and Specifications to Account366For:}} \par367368\begin{itemize}369\item 18 gauge steel is 45 cents per square foot ($\frac{45}{144}$ cents per370square inch)371\item 20 gauge steel is 45 cents per square foot ($\frac{34}{144}$ cents per372square inch)373\item Welding and pressing/sealing cost is 10 cents per foot ($\frac{10}{12}$374cents per inch)375\item Cutting steel costs 2 cents per foot ($\frac{2}{12}$ cetns per inch)376\end{itemize}377378\noindent{\textbf{Other Parameters and Specifications:}} \par379380\begin{itemize}381\item The vertical seam on the cylinder is welded together382\item The top and bottom are attached by a pressing/sealing machine. The383pressing/sealing process requires approximately $\frac{13}{16}$ inches from the384cylinder and $\frac{3}{4}$ inches from the disk to be curled together. Hence,385these inches are lost in the final dimensions386\item The top and bottom are set down $\frac{5}{8}$ inches into the cylinder.387\end{itemize}388389\newpage390391\noindent{\textbf{Work:}} \par392393Some equations and variables must first be defined before solving this problem.394In this problem, $h$ will be the height that contributes to the volume of the395drum and $r$ will be the radius of the circle that contributes to the volume of396the drum. \par397398\begin{itemize}399\item Area of the circle (top/bottom) that contributes to the volume: $\pi r^2$400\item Area of the circle that must be used: $\pi (r + \frac{5}{8})^2$401\item Area of the sheet that must be bought per circle: $[2(r + \frac{5}{8})]^2$402\item Area of the cylinder (using the rectangular sheet): $2 \pi r \cdot A = (h403+ \frac{13}{8})$404\item Vertical seam of the cylinder: $h + \frac{13}{8}$405\item Circumference of each circle: $2 \pi (r + \frac{5}{8})$406\item Volume of the drum:407\end{itemize}408409\begin{center}410$V = 55$ gallons $\cdot \frac{231 in^3}{1 gallon} = \pi r^2 h$ \par411\end{center}412413$$414\pi r^2 h = 12705415$$416$$417h = \frac{12705}{\pi r^2 h}418$$419420Now, we can create a cost function: \par421422$$423C = \frac{34}{144} [2 \pi r(h + \frac{13}{8})] + \frac{45}{144} \cdot 2[2(r +424\frac{5}{8})]^2 + \frac{10}{12} [2 \cdot 2 \pi(r + \frac{5}{8})] + \frac{2}{12}425[2 \cdot 2 \pi(r + \frac{5}{8})] + \frac{10}{12} (h + \frac{13}{8})426$$427428Which can be simplified to: \par429430$$431C = \frac{17 \pi r}{36} (h + \frac{13}{8}) + \frac{5}{2}(r + \frac{5}{8})^2 + 4432\pi (r + \frac{5}{8}) + \frac{5}{6} (h + \frac{13}{8})433$$434435Now we can substitute $\frac{12705}{\pi r^2}$ for $h$ and can define $C$ in436terms of $r$: \par437438$$439C = \frac{17 \pi r}{36} (\frac{12705}{\pi r^2} + \frac{13}{8}) + \frac{5}{2}(r +440\frac{5}{8})^2 + 4 \pi (r + \frac{5}{8}) + \frac{5}{6} (\frac{12705}{\pi r^2} +441\frac{13}{8})442$$443444Which can be simplified to: \par445446$$447C = \frac{5}{2} r^2 + \frac{221 \pi}{288} r + \frac{25}{8} r + 4 \pi r +448\frac{4235 \cdot 17}{12r} + \frac{4235 \cdot 5}{2 \pi r^2} + \frac{125}{128} +449\frac{65}{48} + \frac{20 \pi}{8}450$$451452\newpage453454To continue, we must take $\frac{dC}{dr}$ and set it to zero to find the455critical points. We must also take the second derivative to determine which456critical point is a maximum: \par457458$$459\frac{dC}{dr} = 5r + \frac{1373 \pi}{288} + \frac{25}{8} - \frac{4235 \cdot46017}{12r^2} - \frac{4235 \cdot 5}{\pi r^3}461$$462$$463\frac{d^2 C}{dr^2} = \frac{4235 \cdot 17}{6r^3} + \frac{3 \cdot 4235 \cdot4645}{\pi r^4}465$$466467The critical points of $\frac{dC}{dr}$ are at $r = -1.126, 0,$ and $9.929$. By468plugging these numbers into $\frac{d^2C}{dr^2}$, the minimum cost is found to be469achieved at $r = 9.929$ inches. We can then plug $r$ into the original function470to find $h$: \par471472$$473h = \frac{12705}{\pi r^2}474$$475$$476h = \frac{12705}{\pi (9.929)^2}477$$478$$479h = 41.02480$$481482But due to the way the variables are defined, the height of the optimal cylinder483is actually $h + \cdot \frac{5}{8} = 41.02 + \cdot \frac{5}{8} = 42.27$ inches.484\par485486\vspace{0.2cm}{\noindent{So, the optimal dimensions of the cylinder are:}} \par487488\begin{itemize}489\item $r = 9.929$ inches490\item $h = 42.27$ inches491\end{itemize}492493\noindent{However, the actual dimensions of the 55-gallon Tight Head Steel Drum494are:} \par495496\begin{itemize}497\item $r = 12$ inches498\item $h = 35$ inches499\end{itemize}500501\noindent{As you can see, the actual dimensions of the 55-gallon Tight Head502Steel Drum are not the most cost effective.} \par503504\section*{Conclusion}505506This has been the most difficult project for me to solve all year. I got stumped507many times and often got frustrated with the problem. It took a lot of peer508collaboration and discussion to finally figure out the solution. While the509initial cylinder surface area problem was not too difficult, the cost parameter510and dimensions of the 55-gallon Tight Head Steel Drum made the problem very511confusing. I found keeping track of all the specifications and dimensions to be512very difficult for me. \par513I honestly don't think that I could have done this project alone. I collaborated514with many people to get a final answer. However, the collaboration was very515effective and I enjoyed hearing other people's ideas, answers, and opinions.516\par517518\vspace{0.2cm}{\noindent{\textbf{People I Collaborated With}}} \par519520\begin{itemize}521\item Hector Cantu522\item Vicki Curtin523\item Fletcher Barnhill524\item Jackie Smith525\end{itemize}526527\end{document}528529530