To maximize the log likelihood of my parameters, I need to find the argument that maximizes the following function: $$\sum_{\substack{i,\,j\\ i \neq j}} n_i \log(x_i) + n_j \log(x_j) - (n_i + n_j) \log(x_i+x_j) $$
The $n_i$ have a known value, the unknowns are the $x_i$
I don't think there will be a closed formula, I think it needs an iterative approach.
This is a practical problem, so the use of optimizer is fine. I tried using the optimizer of scipy in Python, but it did not converge.
Any help much appreciated, thanks.