June 2025
Intermediate to advanced
515 pages
17h 5m
English
From school mathematics, we know the problem of how to calculate the smallest possible surface area for a tin can (cylinder) to minimize material consumption. SciPy provides the minimize(fun,x0,...) function from the optimize submodule for this kind of optimization task. This function must be passed an initial value x0 in addition to a mathematical function fun, which describes the optimization problem.
The following applies to the volume of a cylinder:
![]()
The surface is composed of the two flat surfaces and the curved surface:
The height h can be replaced by :
If you set the first derivative of the surface function to equal ...
Read now
Unlock full access