With distributed generation on the rise, consumers now play dual roles as both energy producers and consumers, ...