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

Bordered solvers [BifurcationKit jacobian-free methods optimization] #560

Open
rveltz opened this issue Nov 29, 2024 · 3 comments
Open

Bordered solvers [BifurcationKit jacobian-free methods optimization] #560

rveltz opened this issue Nov 29, 2024 · 3 comments
Labels
question Further information is requested

Comments

@rveltz
Copy link
Contributor

rveltz commented Nov 29, 2024

Hi,

In BifurcationKit, we repeatedly solve bordered linear solvers (see https://bifurcationkit.github.io/BifurcationKitDocs.jl/dev/borderedlinearsolver/), also with Jacobian-free solvers. At the moment, BifurcationKit does not take advantage of LinearSolve.

I could combine the bordered linear solvers of BK with LinearSolve.jl for example to take advantage of the Krylov space re-use between continuation steps.

Should it be another package like BorderedLinearSolve.jl, should I PR to LinearSolve.jl or keep the infrastructure in BifurcationKit.jl?

@rveltz rveltz added the question Further information is requested label Nov 29, 2024
@ChrisRackauckas
Copy link
Member

I think this would need a separate package because it would be a substantial amount of code for the new solvers? I would be fine maintaining it in SciML if someone put it together but I haven't had a particular need for it so it just never came about. It does seem a bit specialized though.

@j-fu
Copy link
Contributor

j-fu commented Dec 1, 2024

I have something like this on my task list, outside of the bifurcation context, coming from a semiconductor laser model. I would be interested in wide bordered systems.

I did some experiments with BlockArrays.jl to handle mixed sparse/dense situations which played out quite well. Used GMRES directly from Krylov.jl for that.

There could also be an implementation of
Govaerts/Pryce: Mixed block elimination for linear systems with wider borders, IMA Journal of Numerical Analysis (1993) 13, 161-180

So yes, such a package would be an interesting effort. I might participate in that.

@rveltz
Copy link
Contributor Author

rveltz commented Dec 3, 2024

For BifurcationKit, this must run on GPU. Hence, in order to avoid using scalar indexing to solve a system bordered by a scalar, I introduced a type BorderedArray. Otherwise, all this is relatively straightforward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants