Skip to content

Add options to terminate early when there's little progress #57

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

MarcBerliner
Copy link
Member

Adds an optional method to fail the simulation if the solver is not making progress. This is useful when the parameters are ill-conditioned and the solver is making very slow progress, such as in optimization

@MarcBerliner MarcBerliner requested a review from a team as a code owner August 22, 2025 19:21
@@ -518,16 +525,21 @@ SolutionData IDAKLUSolverOpenMP<ExprSet>::solve(
i_eval++;
t_eval_next = t_eval[i_eval];
CheckErrors(IDASetStopTime(ida_mem, t_eval_next));

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @MarcBerliner! I will approve this, assuming that it helps facilitate the release.

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.

2 participants