In this study, we propose a simulated annealing algorithm (SA) to train an adaptive neurofuzzy inference system (ANFIS). We performed different types of optimization algorithms such as genetic algorithm (GA), SA and artificial bee colony algorithm on two different problem types. Then, we measured the performance of these algorithms. First, we applied optimization algorithms on eight numerical benchmark functions which are sphere, axis parallel hyper-ellipsoid, Rosenbrock, Rastrigin, Schwefel, Griewank, sum of different powers and Ackley functions. After that, the training of ANFIS is carried out by mentioned optimization algorithms to predict the strength of heat-treated fine-drawn aluminium composite columns defeated by flexural bending. In summary, the accuracy of the proposed soft computing model was compared with the accuracy of the results of existing methods in the literature. It is seen that the training of ANFIS with the SA has more accuracy.