This paper presents an inverse problem in heat conduction, namely the determination of thicknesses of three materials of known heat capacities and thermal conductivities inside a rod of given length subjected to periodic heat flows from measurements of temperatures at both ends. The unknowns are, therefore, the positions of the two interior frontiers between the three materials. Classically, they can be obtained by minimizing the least-squares, non-linear criterion, between the measured and calculated temperatures. Nevertheless, we show that the global minimum providing the solution is close to three local minima that act as traps for a descent algorithm. After providing theoretical justification of the complex temperature method, a method based in this case on the periodicity of boundary fluxes, we suggest a new criterion allowing the global characterization or not of an a priori local minimizer to be tested. It is a criterion of topological nature based on the identification of a singularity.