I am working on maximizing the polynomial $f:\mathbb{R}^N \rightarrow \mathbb{R}$ $$f(v):=\prod_{i=1}^{N}( v_i+\alpha_i^2)$$ over integer $n$-partitions of $P$, $n\leq N$: $$\left\{v \left|\, v_i \in \{0,1,2,\dots, N\} \ ; \sum_i v_i = P \right. \right\}$$
This can be done by brute-force in application, but that seems very awful for even moderate $P, N$.
An implicit form for the continuous case is done in Lemma II of this paper: http://ee.ucd.ie/~mark/papers/ISSC_Water_Pouring.pdf
If you find the continuous solution and round it, the error will be less than I think $(0.5+A)^N$, $A$ being the largest of all the $\alpha^2$s corresponding to a nonzero weight. (Haven't looked very closely yet but this is what I got after some algebra). This is a very rough bound. Is it possible to get closer in general?
Can anyone suggest any reading on the topic?
If $N$ and $P$ are not too large, and @Macavity is correct about the solution minimizing the largest deviation of $v_i+\alpha_i^2$, the problem appears to be rather easily solved using mixed-integer linear programming. However, I do not always get the correct solution.
I've developed a test below in the MATLAB Toolbox YALMIP (disclaimer, developed by me) using Gurobi to solve the MILPs.
To check if the solution is correct (for very small $N$), I use a much more expensive approach and create a binary expansion of each integer, i.e, $v_1 = b_{01} + 2b_{11}+4b_{21}...$. With that, we can exploit the fact that a product of expressions involving binaries, can be linearized by introducing a large amount of new variables and constraints (that is why I limit this to $N=4$). Hence, a MILP is obtained again. This linearization is available in YALMIP in the command
binmodel. The code runs for a while and then terminates with a counter example, typically for $P=2$Hopefully I've missed something simple, as the MILP model with deviation of $v_i+\alpha_i^2$ is really fast and terminates in 0s for $N=200$. The known correct method with the binary expansion is intractable for $N>5$ or something like that. Obviously, a problem is that the distance measure leads to non-unique solutions here
Here is one of the problematic cases