Circumventing FutureWarning: comparison to `None` will result in an elementwise
object comparison in the future.
  assert None not in (f, ftol, xbounds, xtols)