Discrete-event simulation for on-line production control under uncertainty: a case study