Comments (8)
Should we just depend on Polyseter and make it the default here?
AutoPolyesterForwardDiff (if that package is loaded)
OrdinaryDiffEq.jl depends on Polyester, and so you might have an odd interaction that some codes work better or worse depending on whether you have the ODE solver loaded, and this might be a little invisible to many users.
For in-place problems, we default to AutoFiniteDiff. This is a really bad choice. We should default to: (conditional on the package being loaded)
Why not Forward? Are you talking about a specific size of the Jacobian?
from nonlinearsolve.jl.
I am still debating on the default as polyesterforwarddiff, for the bruss we see a clear improvement but for the battery problem there is a slowdown. I need to investigate this a bit to verify it is not my code that is problematic.
from nonlinearsolve.jl.
Why not Forward? Are you talking about a specific size of the Jacobian?
We could construct the full jacobian and then compute the VJP but the default was based on the implementations available in SparseDiffTools and was not updated after that. Currently we maintain the JacobianOperator in house so we can easily switch that as well.
from nonlinearsolve.jl.
The problem is that if there are any other threads then it's not going to be a speedup since you'll lock the threads. This makes it pretty unsafe unless the user knows it's going to be using Polyester. That is why in OrdinaryDiffEq.jl it's always an opt-in (and maybe something we can make into an extension), and I think the same would need to be done here.
I think we should highlight it in documentation and tutorials much better than we do now, since indeed for any large enough problem it's a good idea, but it's hard to make something that bypasses hierarchical threading into a default.
from nonlinearsolve.jl.
We could construct the full jacobian and then compute the VJP but the default was based on the implementations available in SparseDiffTools and was not updated after that. Currently we maintain the JacobianOperator in house so we can easily switch that as well.
Oh you're talking about the default vjp, for some line searches?
from nonlinearsolve.jl.
Oh you're talking about the default vjp, for some line searches?
For some of the line searches and if you use a krylov method like LSMR requiring both
from nonlinearsolve.jl.
That is why in OrdinaryDiffEq.jl it's always an opt-in (and maybe something we can make into an extension), and I think the same would need to be done here.
Do you have a link to the docs for that? We can have it be consistent here
from nonlinearsolve.jl.
It's not documented well, and it's used in a very different way. It's just in some methods you can set threads=PolyesterThreads()
. We should highlight it in the docs and make it into a package extension though.
from nonlinearsolve.jl.
Related Issues (20)
- EnsembleProblem for NonlinearProblem HOT 1
- `NonlinealSolve` does not precompile when `using OrdinaryDiffEq` HOT 6
- Nolinearsolve returns error for documentation example in Julia 1.10,1 HOT 13
- Trivial (length 0 state) NonlinearLeastSquaresProblem always returns success HOT 2
- Strongly Connected Component (SCC) Scheduled Nonlinear Problems HOT 2
- W4 method
- `reinit` cache for Forward Mode AD not working
- Adding capabilities of Roots.jl and HomotopyContinuation.jl with NonlinearSolve.jl HOT 1
- Reconsider the termination norm for NLLS problems
- Error when installing NonlinearSolve.jl v3.4.0 in Julia v1.9.4 HOT 3
- Muller's method HOT 3
- Add a tutorial on using SimpleNonlinearSolve inside kernels HOT 4
- Solving a nonlinear equation using NonlinearSolve.jl with AutoFiniteDiff() yields errors about dual number HOT 1
- Consolidate `stats` handling HOT 2
- Use LinearSolve return codes
- Start using DifferentiationInterface.jl
- Code optimization documentation HOT 1
- The precompilation of this package is likely excessive and not very useful
- Trust Region Reflective Algorithm
- Add autoscaling for trust region HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nonlinearsolve.jl.