Stochastic algorithms in electromagnetic optimization | Synapse