Finding the Minimum Cost
Show older comments
Hey everyone,
I have a problem to solve...
I have to find the dimensions of a cylindrical tank that holds a specific volume at the lowest cost. It consists of a cylinder with 2 plates at either end.
Parameters are:
tank volume = 0.8 m^3
tank thickness = 3 cm
tank material density = 8000 kg/m^3
max diameter = 1.5 m
max cylinder length = 2 m
material cost = 4.5 $/kg
welding cost = 20 $/m
I know how to calculate any specific volume of material from the radius and the length for the material cost.
I also know how to calculate all the weld lengths for that too.
What I need help with is how could I make an IF ELSE statement that generates all the possible values of the radius and length of the cylinder where the volume = 0.8m^3 so that I can then sub those values into my cost evaluation formula.
Any help is greatly appreciated even if just a link to something I should read, Im really stuck.
2 Comments
Walter Roberson
on 4 May 2012
There are an infinite number of radius / length combinations that meet the volume requirements. You cannot generate all of them individually.
Anthony James
on 29 Apr 2013
Thanks for taking the time out to give us a hand. Have a good starting point and can improve on the user friendliness of my program. Then hopefully get a few pictures in for top marks.
Accepted Answer
More Answers (1)
Walter Roberson
on 4 May 2012
0 votes
Construct the cost formula in one parameter and use one of the minimizers on it. Or if you have the symbolic toolbox, do minimization the calculus way (differentiate, find the zeros of that, etc.)
Categories
Find more on Elementary Math in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!