The application of the data mining in the integration of RES in the smart grid