Skip to content

Commit

Permalink
Switch to bounded BFGS and a smaller error tolerance.
Browse files Browse the repository at this point in the history
  • Loading branch information
d-cogswell committed Feb 24, 2025
1 parent dc3f2df commit 9422888
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, name="ElectrodeSOH model"):
@property
def default_solver(self):
# Use AlgebraicSolver as CasadiAlgebraicSolver gives unnecessary warnings
return pybamm.AlgebraicSolver(method="minimize BFGS")
return pybamm.AlgebraicSolver(method="minimize L-BFGS-B", tol=1e-7)


def get_initial_stoichiometry_half_cell(
Expand Down

0 comments on commit 9422888

Please sign in to comment.