Applications of nonnegative operators to a class of optimization problems