GithubHelp home page GithubHelp logo

Comments (11)

ChrisRackauckas avatar ChrisRackauckas commented on June 7, 2024

What version of DelayDiffEq and DiffEqBase do you have?

from delaydiffeq.jl.

aharoun avatar aharoun commented on June 7, 2024

DelayDiffEq v4.6.1 and DifferentialEquations v5.3.1

from delaydiffeq.jl.

devmotion avatar devmotion commented on June 7, 2024

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.

ChrisRackauckas avatar ChrisRackauckas commented on June 7, 2024

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.

aharoun avatar aharoun commented on June 7, 2024

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.

ChrisRackauckas avatar ChrisRackauckas commented on June 7, 2024

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.

aharoun avatar aharoun commented on June 7, 2024

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.

aharoun avatar aharoun commented on June 7, 2024

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.

ChrisRackauckas avatar ChrisRackauckas commented on June 7, 2024

Out of curiosity, how was it installed before?

from delaydiffeq.jl.

aharoun avatar aharoun commented on June 7, 2024

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.

ChrisRackauckas avatar ChrisRackauckas commented on June 7, 2024

Bizarre, but hey, you got it working so great!

from delaydiffeq.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.