Loop Issue for Simulation

I want to simulate a inventory policy (sQ) where Inventory positioning and costs are calculated based on each possible combination of defined parameters.