Questions tagged [jitcode-jitcdde-jitcsde]

Use this tag for questions on JiTCODE, JiTCDDE, or JiTCSDE.

For most questions, it makes sense to also tag them with and . You usually should not use the tags or , as these are about delays in a computing context and not in a model. It also rarely makes sense to use , unless you are asking about the details of just-in-time compilation as opposed to simply using the modules.

15 questions
5
votes
1 answer

Unexpected solution using JiTCDDE

I'm trying to investigate the behavior of the following Delayed Differential Equation using Python: y''(t) = -y(t)/τ^2 - 2y'(t)/τ - Nd*f(y(t-T))/τ^2, where f is a cut-off function which is essentially equal to the identity when the absolute value…
1
vote
1 answer

Extracting derivatives for delay differential equations with JiTCDDE

I'm simulating the time-delayed Kuramoto model using JiTCDDE and I am having some issues using get_state() to extract the derivatives through the time evolution. I'm modelling the time-delayed Kumamoto model on a digraph encoded by an adjacency…
1
vote
1 answer

Lyapunov exponents with JiTCODE

I am using JiTCODE to calculate the Lyapunov exponents of the Lorenz oscillator. Here is the simple script following the documentation: import numpy as np import pylab as plt from jitcode import jitcode_lyap, y p, r, b = 10.0, 28.0, 8.0/3.0 x0 =…
Abolfazl
  • 1,047
  • 2
  • 12
  • 29
0
votes
1 answer

Why the attribute "provide_basic_symbols" is not recognized in jitcode?

I am trying to solve a DAE in a python code on a Windows visual studio code. However, I cannot import some attributes of the module jitcode receiving the following error message: AttributeError: module 'jitcode' has no attribute…
Roosha
  • 89
  • 3
  • 10
0
votes
1 answer

Getting derivative value from JiTCDDE instance

I'm using the JiTCDDE module to solve delayed differential equations. My work requires me to let the model evolve for a while and then perturb it. To that end I'm trying to use jitcdd.purge_past() followed by jitcdde.add_past_points(). Issue is, the…
Puff
  • 503
  • 1
  • 4
  • 14
0
votes
1 answer

JiTCODE: How to implement if condition?

I'm trying to solve a dynamic food web with JiTCODE. One aspect of the network is that populations which undergo a threshold are set to zero. So I'm getting a not differentiable equation. Is there a way to implement that in JiTCODE? Another similar…
DerOzean
  • 31
  • 2
0
votes
0 answers

JiTCDDE not giving expected output

I have been trying to solve the following system of delay differential equations using JiTCDDE: Model equations And this is my code: from jitcdde import y, t from jitcdde import jitcdde import matplotlib.pyplot as plt import numpy as np from pylab…
0
votes
1 answer

How to get a smooth array with JiTCDDE

I'm integrating the following differential equation with this code using JiTCDDE: def model(p, q, r, alpha, T, tau, tmax, ci, step): f = [(p*y(0)+alpha*y(1, t-tau)), (r*y(0)+q*y(1))] DDE = jitcdde(f) DDE.constant_past(ci) …
0
votes
1 answer

JiTCDDE problems with integration

I'm trying to solve a 2D delay differential equation with some parameters. The problem is that I can’t get the right solution (which I know) and I suspect that it comes from the integration step, but I'm not sure and I don't really understand how…
0
votes
1 answer

Is there a proper way to get past derivative when using JiTCDDE?

I would like to use JiTCDDE to solve system of DDE which has a past derivative ẏ(t−τ) on the RHS. Should I use the get_state function or is there a more suitable way?
0
votes
2 answers

Is there a way to supply a numerical function to JiTCODE’s function argument instead of symbolic one?

I am getting a function (a learned dynamical system) through a neural network and want to pass it to JiTCODE to calculate trajectories, Lyapunov exponents, etc. As per the JiTCODE documentation, the function f has to be a symbolic function. Is there…
0
votes
1 answer

Plotting the graphs of many differential equations using JiTCODE in Python

I would like to plot the graphs of a system of differential equations for individuals connected in a network in Python 3.6. The system of equations is as follows: dx_i/dt = omega_i - mu_i * x_i + epsilon_i * x_i * y_i dy_i/dt = r_i * y_i - gamma *…
0
votes
1 answer

Limit solutions to a positive value using JiTCDDE

I am using JiTCDDE to solve DDE's on a modified Oregantor model. The issue I am having is near the bifurcation point it will return negative values. While I know these are mathematically valid solutions, the Oregantor represents a chemical system. …
0
votes
1 answer

How to implement a multidimensional delay differential equation with JiTCDDE?

I'm a student coding in Python and trying to solve the folowing delayed differential equation:
-2
votes
1 answer

I would like to solve a system of network-based differential equations using python 3.6

I would like to solve a system of network-based differential equations using python 3.6. The system of equations is as follows: dx_i/dt = omega_i - epsilon_i * y_i * x_i - mu_i * x_i, dy_i/dt = epsilon_i * y_i * x_i - zeta_i * y_i - rho_i * y_i…