Mathematical programming formulations for approximate simulation of multistage production systems