A global optimization method for the solution of a magnetic field synthesis problem | Synapse