Comments (3)
This call
ContinuationPar{eltype(u₀),AbstractLinearSolver,EigenSolver}
is strange. You should never use AbstractLinearSolver
, it is used for dispatch. Looking at Newton.jl
, I understand why you where mislead.
Something like the following should be favoured:
u₀, _, stable = Cont.newton( u -> f(u,p₀), u₀, Cont.NewtonPar(verbose=false) )
optCont = Cont.ContinuationPar{eltype(u₀),typeof(DefaultLS()), typeof(DefaultEig())}(
pMin=kwargs[:pMin],pMax=kwargs[:pMax],ds=kwargs[:ds],
maxSteps=kwargs[:maxSteps])
from bifurcationinference.jl.
It seems they did not implement broadcasting:
u0 = param([-2.0,0.0])
u1 = copy(u0)
All of this fails except the last one:
u0 .= u0 .- u1
axpy!(2,u0,u1)
u0 = u0 .- u1
It comes from the fact that copyto!
is not implemented. This is troublesome because typeof(u0) <: AbstractArray
and hence, all my BorderedArrays methods will be called, like this one.
So you have to extend minus!(x::TrackedArray, y::TrackedArray) = x = x .- y
. However, in newton
, the return type of d
by the linear solver is not TrackedArray
. So I define:
minus!(x::TrackedArray, y) = x = x .- y
Now the code works but newton does not converge. At least it does not error!
from bifurcationinference.jl.
The branch errors because of finiteDifferences
. You can either import finiteDifferences
and redefine it for TrackedArrays
or use the function fdTracked
I put on master.
from bifurcationinference.jl.
Related Issues (11)
- apply kde to target distribution HOT 2
- narrative HOT 1
- symbolic complexity of analytical forms HOT 2
- bifurcation points pile up on same target location HOT 1
- optimise two-state model to produce pitchfork and saddle-node HOT 2
- hopf bifurcation targets
- sampling of optimal parameter basins HOT 2
- register package HOT 23
- TagBot trigger issue HOT 5
- check numerical stability properties when dG/d(u,p) is highly stiff HOT 2
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 bifurcationinference.jl.