Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Equalising Final available quantity-demand percentage for all stores

  1. Aug 8, 2010 #1
    I encountered a problem related to merchandise allocation. We are given the present available quantity of an item and its demand for every store. Quantity to be allocated is also given. The requirement is to allocate units in such a way that the "final available quantity-Demand%" is the same for maximum number of stores.

    I initially found with great ease a formula for the final percentage.

    Final Quantity-Demand% = (Quantity to be allocated+sum of existing quantities from all stores)/(sum of demands for all stores)

    But when i tried different sets of data, i found to my utter dismay that in the process of making all the quantity-Demand% same, the formula is removing existing units from some of the stores which shouldn't be done.

    Is there a logic that can make this simple? Please refer the template excel sheet below, that could make the problem still simpler if you haven't got a clear idea yet.

    See the attached sheet--> View attachment problem.xls
  2. jcsd
  3. Aug 9, 2010 #2
    can someone give it a thought please? I am breaking my head on this! :)
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook