Comments (3)
Yes, it is possible. The function finaliseSolution
in the options of continuation
allows to stop the continuation.
You can pass something like (not tested)
finaliseSolution = (z, tau, step, contResult; kwargs...) -> begin
# contResult is the current branch
# number of fold points
nbfold = sum(x -> x.type==:fold, contResult.specialpoint)
return nbfold < 3 # condition to continue the computation of the branch
end
from bifurcationkit.jl.
Thanks. I managed to get it work with the above code after making some slight modifications:
finaliseSolution = (z, tau, step, contResult; kwargs...) -> begin
if length(contResult.specialpoint) > 0 # next line throws error if it is empty
nbfold = sum(x -> x.type==:fold, contResult.specialpoint)
return nbfold < 2 # I want to stop right after finding the 2nd fold point
else
return true
end
end
from bifurcationkit.jl.
great!
from bifurcationkit.jl.
Related Issues (20)
- Continuation of LPC from Bautin/GH point HOT 2
- Out of memory for 1D periodic non-linear system HOT 8
- Plotting with Makie HOT 3
- Getting print statements despite `verbosity=0` HOT 6
- BifurcationKit not working with ArrayPartitions ? HOT 1
- getperiod vs. getPeriod HOT 3
- _isinplace causes incorrect dispatch when both out of place and in place versions of a function is defined HOT 9
- Add `BifurcationProblem` dispatch for ModelingToolkit problems (possibly in an extension?) HOT 8
- BifurcationKit incompatible with latest ModelingToolkit version HOT 8
- record from solution title looks werid in docs HOT 2
- Incorrect calls to `EventSpecialPoint` HOT 2
- Problems with event detection HOT 5
- using `ContinuationPar` directly as input to `bifurcationdiagram` (rather than `(args...) -> opts_br`) HOT 2
- Custom BorderedLinearSolver interface requirements for PALC are missing HOT 4
- Generated function error HOT 2
- record_from_solution shoud have acces to the entire set of parameters HOT 2
- BK question HOT 8
- Problem with plotting a periodic orbit HOT 2
- (potentially long-term) Complete integration with ModelingTookit's nonlinear problem HOT 9
- Issue with passing the `record_from_solution` to the mimally augmented codim 2 continuation HOT 1
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 bifurcationkit.jl.