Solving inventory problems by simulation