Skip to content

Support for affine functions to bypass nonlinear solver if applicable #2685

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
termi-official opened this issue Apr 23, 2025 · 1 comment

Comments

@termi-official
Copy link
Contributor

Is your feature request related to a problem? Please describe.

We have support for linear functions (via LinearOperator) to partially bypass some of the nonlinear solver logic. Affine functions (via AffineOperator) currently do not bypass this logic.

Describe the solution you’d like

For linear and affine ODE problems we can completely skip the Newton logic for a large variety of stiff solvers. This can save us some memory for large problems coming from e.g. PDE semidiscretizations.

Describe alternatives you’ve considered

Right now the only way I see is to go with a custom integrator+custom solver type similar to https://github.com/SciML/SimpleDiffEq.jl/ . We can probably setup some benchmarks on this matter to explore how much the gains are.

Additional context

Nope.

@termi-official termi-official changed the title Support for affine functions to bypass nonlinear solver Support for affine functions to bypass nonlinear solver if applicable Apr 23, 2025
@ChrisRackauckas
Copy link
Member

I swear I had an issue on this in here somewhere but I can't find it. But yes, this needs to be done.

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

No branches or pull requests

2 participants