Optimization and root finding (scipy.optimize) — SciPy v1.18.0.dev Manual