Genetic Algorithm for generating weights for the artificial neural network