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

solving inversed problem with newton optimizer will be quiet slow #8

Open
kangbeicai opened this issue Nov 21, 2024 · 1 comment
Open

Comments

@kangbeicai
Copy link

When using newton optimizer , solving a inversed problem will be quiet slow and allocate more memory compared with a forward problem . I try to change "permc_spec" in scipy.sparse.linalg.spsolve to default ”COLAMD“, and found that it can significantly increase speed and reduce memory usage.

@pkarnakov
Copy link
Collaborator

Thanks for sharing this observation! I haven't tried COLAMD myself, but it's good if that makes the linear solver more efficient. The option I normally use for linear system is the multigrid solver from pyamg, called with --linsolver multigrid

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