Comments (11)
What version of DelayDiffEq and DiffEqBase do you have?
from delaydiffeq.jl.
DelayDiffEq v4.6.1 and DifferentialEquations v5.3.1
from delaydiffeq.jl.
With the latest changes an hour ago the tests pass (both locally on my computer and on Travis). Nevertheless you have to modify your example since dependent_lags
has to be specified as a tuple of functions (u, p, t) -> lag
(see the documentation about DDE problems). The following snippet runs on my computer (using the latest master branch):
using DelayDiffEq
f(du,u,h,p,t) = du .= h(p,t-delay)
delay = 1.0
problem = DDEProblem(f,[1.0],(p,t)->[1.0],(0.0,1.0),dependent_lags = ((u,p,t) -> delay,))
sol = solve(problem,MethodOfSteps(RK4()))
from delaydiffeq.jl.
I would assume you have an older version of DiffEqBase then. What version of DiffEqBase do you have? On the latest versions, all of the callback handling functions are defined there, and that's where find_first_continuous_callback
should be.
from delaydiffeq.jl.
I have DiffEqBase v4.31.0. Above code (defining dependent_lags
as tuple) still does not work. I will try the latest master branch.
from delaydiffeq.jl.
Master on DiffEqBase matches v4.31.0. This seems like a packaging issue. Are you sure you have the right versions in your environment? Using Julia v1.0?
from delaydiffeq.jl.
I am on Julia v1.0. I removed the package and added the latest master branch.
(v1.0) pkg> add https://github.com/JuliaDiffEq/DelayDiffEq.jl
Updating git-repo `https://github.com/JuliaDiffEq/DelayDiffEq.jl`
Resolving package versions...
Installed DiffRules ─────── v0.0.7
Installed DiffEqDiffTools ─ v0.7.1
Installed DiffEqBase ────── v4.31.0
Installed DiffEqOperators ─ v3.4.0
Installed DiffBase ──────── v0.3.2
Installed DiffResults ───── v0.0.3
Updating `~/.julia/environments/v1.0/Project.toml`
[bcd4f6db] + DelayDiffEq v4.6.1+ #master (https://github.com/JuliaDiffEq/DelayDiffEq.jl)
Updating `~/.julia/environments/v1.0/Manifest.toml`
[bcd4f6db] + DelayDiffEq v4.6.1+ #master (https://github.com/JuliaDiffEq/DelayDiffEq.jl)
Building DiffEqBase → `~/.julia/packages/DiffEqBase/nW6r3/deps/build.log`
Test still fails and @devmotion's example does not work.
from delaydiffeq.jl.
OK. After installing Julia from scratch, now it works. I am not sure what was wrong with it but in any case thanks a lot!
from delaydiffeq.jl.
Out of curiosity, how was it installed before?
from delaydiffeq.jl.
Just downloaded from here "https://julialang.org/downloads/" for Mac and install it. I had (possibly older versions of) DifferentialEquation.jl and OrdinaryDiffEq.jl in the previous installation. Although I removed them, I wonder if they caused the problem
from delaydiffeq.jl.
Bizarre, but hey, you got it working so great!
from delaydiffeq.jl.
Related Issues (20)
- Event Handling Test Failure HOT 2
- Cache tests fail on master HOT 1
- behavior of step! with tstop HOT 6
- Discontinuity tracking can miss discontinuity at 0
- TagBot trigger issue HOT 58
- DDE too stiff? radau method required? HOT 6
- SavingCallback does not seem to save the right values HOT 1
- In DDEs constant_lags break PresetTimeCallback
- Performance regressions since Julia v1.4 HOT 1
- More efficient evaluation of the history function for multiple time points
- Significant allocations in DDE interpolation for multiple time points HOT 3
- Call to HistoryFunction gets replaced by call to ODEFunction HOT 5
- initial conditions not decaying according to dynamics function HOT 1
- missing cache.alg causing runtime dispatch in LinearSolve HOT 7
- Incorrect jacobian with Zygote + ReverseDiffAdjoint HOT 4
- Precompilation issue (DelayDiffEq v5.40.6) HOT 2
- `Dopri5` solver doesn't work for DDEs
- JuliaCon Proceedings Review: Example fails HOT 3
- DDE does not provide any solution (example from docs) HOT 6
- constant_lags contains 0.0 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 delaydiffeq.jl.