An algorithm for reliability assessment of distribution systems in presence of distributed generators.