I have a problem of allocating x between p entities, each entity has a constant $\rho_i$ such that the allocated part should be proportionnal.
Without loss of generality we can divide the ressources by x and normalise the $\rho_i$ by $\Sigma_i\rho_i$ to see the unconstrained problem has a simple solution:
$$x_i = n \frac{\rho_i}{\Sigma_i\rho_i} $$
My problem is to solve a constrained problem, such that:
$$ a_i \leq x_i \leq b_i $$
I have an iterative algorithm, starting at $x_i = n \frac{\rho_i}{\Sigma_i\rho_i} $ at each iteration we reallocate the ressources that excess the constraint. Theoretically this works because $\Sigma b_i > 1$ and $\Sigma a_i < 1$.
I have the feeling that it could be reformulated as an optimization problem but can't figure out what the objective function would be.