Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add max_failed_iter option to steadystate_ptc solvers #66

Merged
merged 1 commit into from
Aug 20, 2023

Conversation

sjdaines
Copy link
Member

Default value max_failed_iter=20

Added to implicit-Euler solvers (usually used for PTC to steady-state):

  • steadystate_ptc, steadystate_ptcForwardDiff
  • steadystate_ptc_splitdae

Exit after max_failed_iter iterations that make no progress (either due to a failed iteration, or to an iteration that didn't change the solution ie already within tolerance)

This forces an exit when a solution reaches the convergence limit of the solver (typically cycles through a repeating sequence of increasing and then decreasing timesteps, from iterations that don't change solution and iterations that fail to converge)

Default value max_failed_iter=20

Added to implicit-Euler solvers (usually used for PTC to steady-state):
- steadystate_ptc, steadystate_ptcForwardDiff
- steadystate_ptc_splitdae

Exit after max_failed_iter iterations that make no progress (either due to a failed iteration,
or to an iteration that didn't change the solution ie already within tolerance)

This forces an exit when a solution reaches the convergence limit of the solver (typically
cycles through a repeating sequence of increasing and then decreasing timesteps, from
iterations that don't change solution and iterations that fail to converge)
@sjdaines sjdaines merged commit 0facd81 into main Aug 20, 2023
3 checks passed
@sjdaines sjdaines deleted the solver_robustness branch August 20, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant