pastas.solver.base.SolverBase#

class pastas.solver.base.SolverBase(name: str = 'solver', **kwargs: Any)#

All solver instances inherit from the SolverBase class.

name#

Name of the solver instance.

Type:

str

ml#

The Pastas Model instance that is being solved.

Type:

pastas.Model

parameters#

DataFrame with the initial parameters of the solver itself.

Type:

pd.DataFrame

Methods#

get_init_parameters(→ pandas.DataFrame)

Get initial parameters of the solver.

set_init_parameters(→ None)

Set the initial parameters (back) to their default values.

set_model(→ None)

Set the Pastas Model instance.

fit_report(→ str)

Abstract method that has to be implemented by all solvers.

solve(→ Any)

Solve method that has to be implemented by all solvers.

to_dict(→ dict[str, Any])

Return a dictionary representation of the solver instance.