Optimization of Safety Stock under Controllable Production Rate and Energy Consumption in an Automated Smart Production Management · Study