Feb 08 2022 02:45 AM
Feb 08 2022 02:45 AM
Am trying to solve a task I was issued by a client yesterday. Am basically trying to solve for what is the best selling price for each unit and how much quantity can one sell in order to reach the target amount that was set. Am not coming from an economics background but an amateur learning through the community. I've checked you tube for the best possible example to help me solve it but no juice. Your assistance will be highly appreciated.
|Product Name*||Cost Price||Selling Price||Quantity|
|Spinach Bunch||30||1||Target Amount||62500|
|Potatoes Sack 50 Kg||2500||1|
|Fresh Beef Bones||400||1|
|Boneless Fresh Beef||450||1|
|Green Peas (Shelled)||200||1|
Feb 08 2022 06:13 AM
Your problem has no well-defined optimum. For example, if your selling price were 50% higher than the cost price, you could meet your target by selling 4000 spinach bunches and a sack of spuds. Somewhat improbable, but not ruled out by your model.
What is missing is the link between selling price and volume sold. The latter normally falls as the former increases, giving a maximum somewhere along the line.
Feb 08 2022 07:09 AM - edited Feb 08 2022 09:00 AM
@alvinro wrote: ``what is the best selling price for each unit and how much quantity``
First, you need to understand that this is not a simple problem. It falls into the category called "linear programming". And it often difficult to set up the constraints of the problem so that it can be solved.
Second, to that end, you need to define what you mean by "best". For example, do you require a minimum of 1 of each quantity? What is the maximum of each quantity? Do you have a minimum and maximum for the selling price of each item sold?
(Cost is not always the minimum selling price, unless of course you want to make that a constraint.)
(It seems odd that you can vary both. As a consumer, usually the selling price is out of our control. As a seller, usually the quantity is out of our control.)
For use with Solver, you might set up a target cell with a formula of the form
=(H2 - SUMPRODUCT(C2:C14, D2:D14))^2 , then specify Set ... To: Min in Solver.
Essentially, we want to minimize the absolute value of the difference -- unless you do not want to exceed the target amount. But Solver does not always work well with the ABS function. Squaring the difference is a way to accomplish the same thing without using ABS.
PS.... I might add that in my experience, Solver does not do well with min-max problems with more than two variables. First, I can usually demonstrate with a counter-example that the result is __not__ a min or max. Second, often I just get an error from Solver -- either a complaint about the set-up, or a failure to find a solution. But both issues might simply be due to my ineffectiveness at setting up LP problems, in the first place.
Feb 08 2022 07:26 AM
To illustrate the idea, I have assumed a volume of sales at cost and applied an exponential drop-off in volume as the price increases. I am not an economist so how good these assumptions may be is out of my area. I have allowed non-integer sales volumes to avoid unnecessary discontinuities that will upset Solver.
Feb 08 2022 09:43 AM
Feb 08 2022 09:58 AM
Feb 08 2022 10:57 AM - edited Feb 09 2022 07:30 AM
@alvinro wrote: ``I accepted the job offer thinking I would find a quick easy solution to accomplish the task.``
And perhaps there is. See the attached file for some simple models.
In the first model (worksheet "orig"), I allow both selling price and quantity to vary, with a minimum of constraints. I assume that quantity must be integers; but it is unclear if that constraint is valid for all items (e.g. if quantity is a measure of weight). This is the result.
Note that I changed the objective formula in I2. Based on the assumption that the actual amount should not exceed the target amount, the formula in I2 is simply:
Also note that the Solver objective formula in I2 depends on the unrounded selling price (column C), whereas the actual amount in H3 depends on the rounded selling price (column E). We should not reference column E in I2 because often, Solver cannot tolerate rounded amounts.
(It is "dumb luck" when Solver works despite the use of rounded amounts and other functions that cause "discontinuities" -- non-smooth variations as variables are changed.)
However, considering how close the derived selling prices are to "cost", I reiterate that I suspect that "cost" should really be the selling price. So, in the second model (worksheet "quant only"), I allow only quantity to vary. This is the result:
Note the significant difference.
Disclaimer: There might be multiple solutions that are either the same or "good enough". I have not made any effort to explore that.
Feb 09 2022 05:57 AM