Renewable sources integration through the optimization of the load for residential applications. (December 2017)