I am looking for MILP modeling code with stochastic/deterministic demand for Inventory ordering policy (e.g. (q,r) or (s,S) policy) with pyomo or gurobi or cplex or GAMS. Any link?
One example I know of: https://yetanothermathprogrammingconsultant.blogspot.com/2020/11/optimal-qr-inventory-policy-as-mip.html (and its Pyomo version: https://sysid.github.io/inventory_management/).
You may find some useful ideas in this paper on s,S policies.
IYER, A. V. AND L. SCHRAGE (1992)
ANALYSIS OF THE DETERMINISTIC (s, S) INVENTORY PROBLEM
MANAGEMENT SCIENCE Vol. 38, No. 9,
Part of the abstract is:
The traditional or textbook approach for finding an (s, S) inventory policy is to take a demand distribution as given and then find a reorder point s and order up to point S that are optimal for this demand distribution. In contrast, the deterministic (s, S) inventory problem is to directly determine the (s, S) pair that would have been optimal for the original demand stream, bypassing the distribution fitting step. The deterministic (s, S) inventory problem thus chooses parameters s and S which minimize setup, holding and backorder costs when the corresponding (s, S) policy is implemented over n periods with known demands d1, d2, . . ., d,,. Our contributions are two: (a) a polynomial time algorithm for finding an optimal (s, S) for the deterministic problem, and (b) an empirical comparison of the two approaches. In (b) we compare the long term average costs of the two approaches as a function of the amount of data available, distributional assumptions, and order lead time.