A remark on minimization of an energy type functional