Using the Simplex Method for a Type of Allocation Problems