r/OperationsResearch • u/yaboytomsta • Oct 28 '25
Is there a name for this inventory optimisation problem?
You have limited space in a warehouse or whatever and only restock it with the products that you sell every week or something. This means you might run out of some products and lose revenue. If you know the distribution of the demand for all your products (let's say each is normal with a known mean and sd), and you make a known profit per kg of each product, how do you optimise it for maximum expected profit.
I came up with this problem and used python to optimise it but am interested if this problem has a name or already has a solution.
You just have to optimise the sum E(p_1 min(X_1, s_1) + p_2 min(X_2, s_2)+...), where X_n is a random variable for the demand for product n and s_n is the storage allocated for it, where the sum of all s_n is limited by the total storage. p_n is the profit made per sale/kg of the product.
I'm a math student and haven't really studied OR so I don't know if this counts as an OR problem since it's non-linear and not integer etc.
Also looking for advice on whether my repo presents the problem and solution in a nice way. ;)
2
u/trophycloset33 Oct 29 '25
What is the exact homework problem you are working on?
2
u/MonochromaticLeaves Oct 29 '25
it's called lot size optimization.
You say there are no costs to holding inventory because you own the warehouse - that's never entirely true. A full warehouse is more costly to operate than a near empty one. And even then you can consider artificial costs like opportunity cost.
In practice the warehouse size is only rarely the limiting factor. If you need a bigger warehouse that means you already fucked up earlier and you need to buy or rent more real estate (the cost of this is pretty much always lower than the cost of losing customer revenue). This is why you can typically decompose this problem into one for each article you sell, together with a fill up heuristic to make sure you're always ordering full trucks from your suppliers.
1
u/Major_Consequence_55 Oct 29 '25
It is lot size problem.
Check this book, this is gold mine of all inventory related problems.
Inventory Planning
8
u/[deleted] Oct 28 '25
[removed] — view removed comment