How do I balance tech upgrades with energy use?

How do I balance tech upgrades with energy use?