Mathematical programming formulations for approximate simulationof multistage production systems