Optimizing inventory control through a data-driven and model-independent framework