Optimal control policies for stochastic inventory systems with endogenous supply