The Thermodynamics of Economic Engineering