A methodology to phase-out diesel gensets by replacing them with distributed renewable energy systems (DRE) smaller than 15MW. The DRE alternatives encompass both off-grid battery linked systems and grid connected modular DRE systems e.g., household solar PV.