With currently available technology, grid power, if available at less than about $0.75 kWh (give or take), is the most cost effective way to go. Batteries (and a generator which is needed when there isn't enough sunshine) are very expensive, and only make monetary sense if the grid is not...