Optimization procedure based on a statistical cooling method applied to scattering by bounded nonlinear objects