A genetic approach to the Hopfield neural network in the optimization problems