A simplified analytical approach for optimal planning of distributed generation in electrical distribution networks