A mathematical programming based algorithm for the optimization of production systems.