A combined strategy for optimization in nonlinear magnetic problems using simulated annealing and search techniques