Thermodynamic Optimization of Complex Energy Systems by Eden Mamut