Simulated annealing algorithm in pattern recognition algorithm (with data)