A dynamical newsboy-type inventory problem - Machado, Hilton (International Centre for Theoretical Physics, 1991)