generalized isoperimetric problem