Distributed generation and distributed resources