The Rational Expectations Equilibrium Inventory Model