Given a set of elements $S=\{a_1,a_2,\cdots,a_n\}$, my problem is to find a partition $P$, i.e., partition $S$ into $g$ subsets, the objective is to maximize a utility function $f(P)$, under the constraint that $d(P)\le D$, where $d(P)$ is a given function. Is this problem related to some known combinatorial problem?
A few words regarding $d(P)$: suppose $S$ is partitioned into $g$ subsets $S_1,\cdots,S_g$, $d(P)$ can be expressed as $d(P)=\sum_{i=1}^g z(S_i)$, where $z(S_i)$ is a positive real-valued function that is monotonous in each element in $S_i$. $f(P)$ has similar structure