Modeling and Optimization of production processes