do several restarts and take best minimum
ignore deprecation warnings (got those from matplotlib)