Thermodynamic Integration Discrete Systems