pastas.solver.LeastSquares.__init__#

LeastSquares.__init__(ml, pcov=None, nfev=None, **kwargs)[source]#

Solver based on Scipy’s least_squares method.

Notes

This class is the default solve method called by the pastas Model solve method. All kwargs provided to the Model.solve() method are forwarded to the solver. From there, they are forwarded to Scipy least_squares solver.

Examples

>>> ml.solve(solver=ps.LeastSquares)

Notes

https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.least_squares.html