pastas.model.Model.add_solver#
- Model.add_solver(solver)[source]#
Method to add a solver to the model.
- Parameters
solver (pastas.solver.Solver) – Instance of a pastas Solver class used to solve the model. Options are: ps.LeastSquares(), ps.LmfitSolve() or ps.EmceeSolve(). An instance (e.g. ps.LeastSquares()) is needed as of Pastas 0.23, not a class (e.g. ps.LeastSquares)!
- Return type
None
See also
pastas.solver
Different solver objects are available to estimate parameters.