Maximizing energy injections of distributed generation in rural areas