The combined use of flue gas waste heat resources and thermoelectric generators (TEGs) is considered to be a relatively reliable method to generate electricity. The focus of this study is on the optimization and improvement of the hot‐end heat collection pipe. This paper aims to increase the temperature difference between hot and cold ends of TEG and enhance uniformity of temperature distribution, thereby improving the output power of the TEG system. To balance the temperature difference between the cold and hot ends of the TEG, the pressure drop from the inlet to the outlet and the mass of TEG hot end pipes, a finite element simulation model is constructed. Meanwhile, a multi‐objective genetic algorithm is applied to optimize the structure of four dimensions: fin bottom length, fin height, fin thickness, and outlet diameter. Three optimization objectives, namely, average temperature difference, total pressure drop from inlet to outlet, and pipeline mass are globally optimized to determine the best size, based on which the accuracy of the simulation model is verified by conducting experiments.