Minimization of energy consumptions by means of an intelligent production scheduling