pastas.solver.least_squares.LeastSquaresBase.solve#

abstractmethod pastas.solver.least_squares.LeastSquaresBase.solve() tuple[bool, pandas.DataFrame]#

Solve the optimization problem.

Abstract method that has to be implemented by all least squares solvers.

Returns:

  • tuple [bool, DataFrame]

  • success (bool) – Boolean indicating whether the optimization was successful.

  • result (pandas.DataFrame) – DataFrame with the optimal parameter values and their standard error. The index of the DataFrame corresponds to the parameter names, and it contains at least the following columns: “optimal”, “stderr”