Renewable energies: modeling and optimization of production cost. (October 2017)