This document presents a study on optimizing connection weights in artificial neural networks (ANNs) using genetic algorithms, comparing its performance with the traditional gradient descent method. The proposed evolutionary ANN (EANN) demonstrates a greater ability to quickly achieve global minima and improved learning efficiency, particularly in complex classification tasks like XOR. Experimental results indicate that the genetic algorithm-based approach outperforms gradient descent in terms of convergence speed and accuracy, even with fewer hidden nodes.