Let $u(x):R\rightarrow{}R$ a real function. And a vector of integer numbres $\mathbf x =(x_1,x_2,...x_n)$ with $x_1\geq{}x_2\geq{}...\geq{}x_i\geq{}0\geq x_{i+1}\geq...\geq{}x_n.$
Let $S=\left\{{\mathbf y_1, \mathbf y_2, ..., \mathbf y_t}\right\}$ the set of partitions of vector $\mathbf x$.
Define $v(\mathbf x)=\displaystyle\sum_{i=1}^n{u(x_i)}.$
I want to find $\mathbf y_i \in S$ that maximizes $v(\mathbf y_i)$ for all $\mathbf y_i \in S$.