Simulation and optimization of continuous-flow production systems with a finite buffer by using mathematical programming. (4th March 2017)