Resource allocation problem
Given
- T, total amount of resources
- N, targets of resource allocation
- T > 0; N > 1; T < N
Allocate resources amongst targets, s.t.
$$0 <= allocation_{i} < 1$$ $$allocation_{i+1} < allocation_{i}$$ $$\sum_{i=1}^N allocation_i <= T$$
$$minimize (T - \sum_{i=1}^N allocation_i)$$
An important freedom and a constraint is that the solution need not be the most optimal; however it must arrive within just a few iterations (like, say, < 10) because of runtime limitations.
I started with $$allocation_i = e^{-ki}$$ and locate k but that only led me to a problem with a numerical solution which can take long to solve. I want to explore if there are other monotonically decreasing functions that will solve faster and provide a reasonably good allocation.
Some illustrative values of T, N if it helps. N typically in (10, 1000); T/N typically in (0.05, 0.5)
EDIT: I rewrote the question taking into account the comments, and also reformatted it. I hope this is clearer. This is my first post here and I am just learning how-to form the question :-)
Thanks