Optimization of process parameter for energy efficiency in manufacturing process