Design optimization of material cost of water tank
4 次查看(过去 30 天)
显示 更早的评论
I tried several ways to address this problem. I failed so would like to ask you guys.
One way to improve engineering designs is by formulating the equations describing the design in the form of a minimization or maximization problem. This approach is called design optimization. Examples of quantities to be minimized are energy consumption and construction materials. Items to be maximized are useful life and capacity such as the vehicle weight that can be supported by a bridge. In this project, we consider the problem of minimizing the material cost associated with building a water tank. The water tank consists of a cylindrical part of radius r and height h, and a hemispherical top. The tank is to be constructed to hold 500 meter cubed when filled. The surface area of the cylindrical part is 2*pi*rh, and its volume is pi*r^2. The surface area of the hemispherical top is given by 2*pi*r^2, and is volume is given by 2*pi*r^3/3. The cost to construct the cylindrical part of the tank is $300 per square meter of surface area;the hemispherical part costs $400 per square meter. Use the fminbnd function to compute the radius that results in the least cost. Compute the corresponding height h.
1 个评论
Marc
2013-10-4
Please do not quote homework problems. You need to determine your function that you want to minimize/maximize. Since all of the Matlab functions minimize functions, to maximize, you simply take the negative of your objective function.
Take what you said and formulate it into some mathematical equations that give you cost as a function of radius.
If you can get that far, I'll help you with the rest.
Good luck
回答(2 个)
Walter Roberson
2013-10-5
You need to use either a function or script to call fminbnd and you need to use a function (possibly an anonymous one) that fminbnd will evaluate to determine the cost for any one proposed radius.
The homework problem directs you to always find the radius and corresponding height. It does not ask you to be able to find anything else, so there is no need for asking the user what kind of data they want to solve for.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Mathematics and Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!