Finding the Minimum Cost
古いコメントを表示
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 件のコメント
Walter Roberson
2012 年 5 月 4 日
There are an infinite number of radius / length combinations that meet the volume requirements. You cannot generate all of them individually.
Anthony James
2013 年 4 月 29 日
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.
採用された回答
その他の回答 (1 件)
Walter Roberson
2012 年 5 月 4 日
0 投票
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.)
カテゴリ
ヘルプ センター および File Exchange で Elementary Math についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!