New developments on equivalent thermal in hydrothermal optimization: an algorithm of approximation