Solution Step 2:
Compute the new resource allocations s.t.
1)  the deviation computed in the first step is achieved, and
2)  the computed resource allocations are close to the ideal
allocation (D) (different from paper, to see which is
better)
                    N   S
     Minimize sum sum(R_ij - D_j)^2  (2)
              i=l j=1