Abstract: A mathematic model, which takes minimal heat radiation as object function, cylinder diameter and piston travel as variables is established through analyzing cylinder diameter and piston travel for intermediatespeed and highspeed internal combustion engines Moreover, the optimum ratio of piston travel to cylinder diameter is got by using the simulated Annealing Algorithm with practical example The efficiency of the internal combustion engines is improved The method of design can also be used as reference in similar design