In this thesis, two main subjects have been dealt with, both connected to heat transfer, that is optimization and inverse problems. After a thorough theoretical illustration, some practical examples have been analyzed. For the first topic, a CFD-coupled shape optimization of a tube bundle is presented, while for the second one, apart from some basic tests problem handled with different methods, a practical application in steel industry is illustrated