..........[1]

..........[2]

Solve [1] for, say, h and sub into [2]:

This is what is to be minimized. Differentiate, set to 0 and solve for r. Then h will follow.

I believe you will find that the minimum is achieved when the diameter equals the height.