In the production of electronic products, how to optimize the furnace temperature curve of the rewelding furnace has become a hot issue in the industry. For the production process, we first set up the differential equations under different temperatures in different temperature zones according to the settings of different temperatures in different temperature zones of the reflow oven and use particle swarm optimization algorithm to obtain the thermal conductivity of the circuit board in the heating process and the thermal conductivity of the circuit board in the cooling process k_0. Finally, we obtained the temperature of small area 3, 6, 7 and the right margin of zone 8. On this basis, aiming at the specific temperature conditions, we first establish the constraint equations, and then, under the condition of constraints, we use Monte Carlo simulation to get the value of the maximum velocity of the conveyor belt transmission element.