Addressing water supply issues through the modeling, analysis and optimization of renewable hybrid systems for water and electricity production