Energy generation, distribution, and regulation