Optimization and root finding (scipy.optimize) — SciPy v1.10.1 Manual
Optimization and root finding (scipy.optimize) SciPy optimize provides functions for minimizing (or maximizing) objective functions, possibly subject to constraints. It includes solvers for nonlinear problems (with support for both local and global optimiz
docs.scipy.org