# \#diffeq

**URL:** https://discourse.julialang.org/tag/diffeq/37.md?page=3

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 4

---

## [Postdoc position on Geoscientific Machine Learning](https://discourse.julialang.org/t/postdoc-position-on-geoscientific-machine-learning/117100)

<div class="topic-metadata">

**Author:** [@JordiBolibar](https://discourse.julialang.org/u/JordiBolibar)\
**Replies:** 4\
**Last updated:** [August 23, 2024, 3:46pm UTC](https://discourse.julialang.org/t/postdoc-position-on-geoscientific-machine-learning/117100 "2024-08-23T15:46:05Z")

</div>

We are advertising a 2-year fully funded postdoc position to work at IGE - Université Grenoble Alpes , in Grenoble (France), on physics-informed machine learning modelling of glaciers. The goal will be to contribute to t…

---

## [Modelingtoolkit odeproblem solution vector length 1](https://discourse.julialang.org/t/modelingtoolkit-odeproblem-solution-vector-length-1/118194)

<div class="topic-metadata">

**Author:** [@aavogt](https://discourse.julialang.org/u/aavogt)\
**Replies:** 4\
**Last updated:** [August 17, 2024, 12:07pm UTC](https://discourse.julialang.org/t/modelingtoolkit-odeproblem-solution-vector-length-1/118194 "2024-08-17T12:07:51Z")

</div>

I try to solve a Modelingtoolkit ODEProblem. Apparently it runs, but I can only access the initial condition. @mtkbuild m = Setup() prob = ODEProblem(m, \[\], (0.,100.), \[\]) sol = solve(prob) print(sol\[m.c.w\]) # get: \[0.0…

---

## [How to locate singularities in a DiffEq system?](https://discourse.julialang.org/t/how-to-locate-singularities-in-a-diffeq-system/118155)

<div class="topic-metadata">

**Author:** [@rcorless](https://discourse.julialang.org/u/rcorless)\
**Replies:** 10\
**Last updated:** [August 16, 2024, 4:51pm UTC](https://discourse.julialang.org/t/how-to-locate-singularities-in-a-diffeq-system/118155 "2024-08-16T16:51:22Z")

</div>

Hello. New to Julia, so my question is tentative (and might be being posted in the wrong place). I am looking for singularity detection features in the solvers in DifferentialEquations.jl, and I am not seeing any. The…

---

## [PSA: How to help yourself debug differential equation solving issues](https://discourse.julialang.org/t/psa-how-to-help-yourself-debug-differential-equation-solving-issues/62489)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [June 7, 2021, 4:16am UTC](https://discourse.julialang.org/t/psa-how-to-help-yourself-debug-differential-equation-solving-issues/62489 "2021-06-07T04:16:54Z")

</div>

Debugging differential equation solver issues almost always boils down to doing the same thing, so this is a summary to help you out. For more information on specific issues, check out the FAQ section of the Differential…

---

## [ODE-BVP's with Unknown Parameter](https://discourse.julialang.org/t/ode-bvps-with-unknown-parameter/28873)

<div class="topic-metadata">

**Author:** [@anodos](https://discourse.julialang.org/u/anodos)\
**Replies:** 9\
**Last updated:** [August 12, 2024, 9:50am UTC](https://discourse.julialang.org/t/ode-bvps-with-unknown-parameter/28873 "2024-08-12T09:50:59Z")

</div>

Matlab’s bvp4c allows the user to specify ODE-BVP problems which contain an unknown parameter, and then to specify the problem by providing an extra boundary condition. E.g. for a second order ODE, we might have an extra…

---

## [Help Needed for Simulating Renewal Equation with DifferentialEquations.jl](https://discourse.julialang.org/t/help-needed-for-simulating-renewal-equation-with-differentialequations-jl/117989)

<div class="topic-metadata">

**Author:** [@bachrathyd](https://discourse.julialang.org/u/bachrathyd)\
**Replies:** 3\
**Last updated:** [August 9, 2024, 12:57pm UTC](https://discourse.julialang.org/t/help-needed-for-simulating-renewal-equation-with-differentialequations-jl/117989 "2024-08-09T12:57:14Z")

</div>

Hello everyone, I need some help with simulating a renewal equation, as described in this paper. Here’s a minimal example of the equation I’m working with: x(t) = a \* x(t - 1) + b \* x(t - √2) I want to solve this usin…

---

## [ContinuousCallback for early termination of ODE fails to trigger](https://discourse.julialang.org/t/continuouscallback-for-early-termination-of-ode-fails-to-trigger/116910)

<div class="topic-metadata">

**Author:** [@apazo](https://discourse.julialang.org/u/apazo)\
**Replies:** 1\
**Last updated:** [July 25, 2024, 11:02am UTC](https://discourse.julialang.org/t/continuouscallback-for-early-termination-of-ode-fails-to-trigger/116910 "2024-07-25T11:02:42Z")

</div>

Hi all, I’m new to Julia, and I’m trying to simulate a simple ODE problem with some callbacks. My model consists of one single equation with two terms, one positive for growth, and one negative for decrease. However, th…

---

## [Best way to implement and solve an ODE with a linearized RHS?](https://discourse.julialang.org/t/best-way-to-implement-and-solve-an-ode-with-a-linearized-rhs/117297)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 2\
**Last updated:** [July 21, 2024, 4:33pm UTC](https://discourse.julialang.org/t/best-way-to-implement-and-solve-an-ode-with-a-linearized-rhs/117297 "2024-07-21T16:33:22Z")

</div>

Say, I have a system \\dot{u} = f(u(t),t). I want to linearize the RHS at u(t\_{n}) and have \\dot{u} = f(u(t\_n),t\_n) + f\_{u}'(u(t\_n),t\_n)\\cdot(u(t)-u(t\_{n})). In terms of DifferentialEquations.jl I can define f(u,p,t) whe…

---

## [Slow performance when solving SDE for a large number of functions in a loop](https://discourse.julialang.org/t/slow-performance-when-solving-sde-for-a-large-number-of-functions-in-a-loop/116337)

<div class="topic-metadata">

**Author:** [@DavidBerghaus](https://discourse.julialang.org/u/DavidBerghaus)\
**Replies:** 3\
**Last updated:** [June 28, 2024, 2:56pm UTC](https://discourse.julialang.org/t/slow-performance-when-solving-sde-for-a-large-number-of-functions-in-a-loop/116337 "2024-06-28T14:56:03Z")

</div>

I have the following use case: I have a large dataset of 1 million drift and diffusion functions (stored as strings of the symbolic expressions) for which I want to solve the corresponding SDEs. This is my current appr…

---

## [Issue with StaticArrays in Boundary Value Problems](https://discourse.julialang.org/t/issue-with-staticarrays-in-boundary-value-problems/115024)

<div class="topic-metadata">

**Author:** [@RafaelDHR](https://discourse.julialang.org/u/RafaelDHR)\
**Replies:** 2\
**Last updated:** [June 28, 2024, 10:36am UTC](https://discourse.julialang.org/t/issue-with-staticarrays-in-boundary-value-problems/115024 "2024-06-28T10:36:11Z")

</div>

Greetings, Recently I’ve been using the amazing DifferentialEquations package. However, few days ago I noticed that the package used for Boundary Value Problems BoundaryValueDiffEq has some issues when using Static Arra…

---

## [Using \`similar\` with ArrayPartitions](https://discourse.julialang.org/t/using-similar-with-arraypartitions/115802)

<div class="topic-metadata">

**Author:** [@dbox](https://discourse.julialang.org/u/dbox)\
**Replies:** 2\
**Last updated:** [June 20, 2024, 11:11am UTC](https://discourse.julialang.org/t/using-similar-with-arraypartitions/115802 "2024-06-20T11:11:18Z")

</div>

Hi, I’m trying to solve an ODE with variables of different types using an ArrayPartition. I have tried several solvers but they all get stuck on performing similar(ArrayPartition, Type). The code executed in the ODE so…

---

## [Hybrid ODE with ContinuousCallback for models of changing sizes?](https://discourse.julialang.org/t/hybrid-ode-with-continuouscallback-for-models-of-changing-sizes/115198)

<div class="topic-metadata">

**Author:** [@natalieisenberg](https://discourse.julialang.org/u/natalieisenberg)\
**Replies:** 25\
**Last updated:** [June 17, 2024, 3:39pm UTC](https://discourse.julialang.org/t/hybrid-ode-with-continuouscallback-for-models-of-changing-sizes/115198 "2024-06-17T15:39:24Z")

</div>

I am solving a system of ODEs with a ContinuousCallback where once a condition!() is met, certain members of the state vector are removed (i.e., elements disappear during simulation). I would like to solve this system us…

---

## [Unstable ODE within Turing model](https://discourse.julialang.org/t/unstable-ode-within-turing-model/115419)

<div class="topic-metadata">

**Author:** [@caesoma](https://discourse.julialang.org/u/caesoma)\
**Replies:** 8\
**Last updated:** [June 17, 2024, 10:18am UTC](https://discourse.julialang.org/t/unstable-ode-within-turing-model/115419 "2024-06-17T10:18:39Z")

</div>

I have a fairly complicated ODE system I am using within Turing for HMC sampling. Sampling seems to work fine: traces and metrics look good in general. However, when I extract a few random samples from the chain and run …

---

## [How to decipher SciMLBase OptimizationBase OptimizationForwardDiffExt warnings?](https://discourse.julialang.org/t/how-to-decipher-scimlbase-optimizationbase-optimizationforwarddiffext-warnings/115225)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 12:45pm UTC](https://discourse.julialang.org/t/how-to-decipher-scimlbase-optimizationbase-optimizationforwarddiffext-warnings/115225 "2024-06-05T12:45:28Z")

</div>

When fitting a DE params to data, I get warnings like this one: ┌ Warning: dt(2.842170943040401e-14) \<= eps(t)(218.2272500679591) , and step error estimate = 2.359923922574841. Aborting. There is either an error in yo…

---

## [Wrap Parameter of ODE in struct with automatic differentiation](https://discourse.julialang.org/t/wrap-parameter-of-ode-in-struct-with-automatic-differentiation/114647)

<div class="topic-metadata">

**Author:** [@jgsimard](https://discourse.julialang.org/u/jgsimard)\
**Replies:** 5\
**Last updated:** [May 25, 2024, 7:50pm UTC](https://discourse.julialang.org/t/wrap-parameter-of-ode-in-struct-with-automatic-differentiation/114647 "2024-05-25T19:50:38Z")

</div>

Hi, I would like to learn the parmeters of an ode, I can do it when the parameters to learn are a vector of floats64, but it doesn’t work if I wrap them in a struct. I am using the SIR model to test it and I get this e…

---

## [JuliaCall setup script not working (Ubuntu)](https://discourse.julialang.org/t/juliacall-setup-script-not-working-ubuntu/114328)

<div class="topic-metadata">

**Author:** [@Rohit](https://discourse.julialang.org/u/Rohit)\
**Replies:** 0\
**Last updated:** [May 15, 2024, 10:30pm UTC](https://discourse.julialang.org/t/juliacall-setup-script-not-working-ubuntu/114328 "2024-05-15T22:30:54Z")

</div>

Hi, I installed the latest version of Julia 1.10.3 in my AWS Ubuntu and I’m now trying to set it up in R. I tried using JuliaCall’s setup function but it shows me the following error: \> library(JuliaCall) \> julia \<- ju…

---

## [Installing DiffEqBase on Windows fails](https://discourse.julialang.org/t/installing-diffeqbase-on-windows-fails/114148)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [May 12, 2024, 10:07am UTC](https://discourse.julialang.org/t/installing-diffeqbase-on-windows-fails/114148 "2024-05-12T10:07:36Z")

</div>

I am using Windows 10.0 home, freshly installed. rm -rf .julia mkdir tmp cd tmp julia --project="." and then in Julia using Pkg pkg"add DiffEqBase" ... Installed ManualMemory ───────────────────── v0.1.8 Insta…

---

## [Challenges in Estimating Wind Turbine Controller Using Universal Differential Equations (UDE) Approach](https://discourse.julialang.org/t/challenges-in-estimating-wind-turbine-controller-using-universal-differential-equations-ude-approach/113890)

<div class="topic-metadata">

**Author:** [@Alvaro98](https://discourse.julialang.org/u/Alvaro98)\
**Replies:** 5\
**Last updated:** [May 12, 2024, 5:05pm UTC](https://discourse.julialang.org/t/challenges-in-estimating-wind-turbine-controller-using-universal-differential-equations-ude-approach/113890 "2024-05-12T17:05:56Z")

</div>

Hello all, As part of my PhD work, I’m applying the Universal Differential Equations (UDE) approach seen in Automatically Discover Missing Physics by Embedding Machine Learning into Differential Equations · Overview of …

---

## [How to get reproducible results with DiffEqNoiseProcess.jl?](https://discourse.julialang.org/t/how-to-get-reproducible-results-with-diffeqnoiseprocess-jl/114063)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 1\
**Last updated:** [May 10, 2024, 9:59pm UTC](https://discourse.julialang.org/t/how-to-get-reproducible-results-with-diffeqnoiseprocess-jl/114063 "2024-05-10T21:59:17Z")

</div>

I have a process: using DifferentialEquations using Random mu = 1 sigma = 1 gbm = GeometricBrownianMotionProcess(mu, sigma, 0.0, 10.0) prob = NoiseProblem(gbm, (0.0, 10)) sol = solve(prob; dt=1.0) How can I fix the se…

---

## [Troubleshooting Inverse Problem with PINNs for Wind Turbine Aerodynamics using NeuralPDE.jl](https://discourse.julialang.org/t/troubleshooting-inverse-problem-with-pinns-for-wind-turbine-aerodynamics-using-neuralpde-jl/113232)

<div class="topic-metadata">

**Author:** [@Alvaro98](https://discourse.julialang.org/u/Alvaro98)\
**Replies:** 12\
**Last updated:** [May 6, 2024, 9:46am UTC](https://discourse.julialang.org/t/troubleshooting-inverse-problem-with-pinns-for-wind-turbine-aerodynamics-using-neuralpde-jl/113232 "2024-05-06T09:46:41Z")

</div>

Hello all, I’m trying to estimate 10 parameters (c1 to c10) of an ODE representing the aerodynamic model of a wind turbine, and I’ve decided to do it via Bayesian inference using physics-informed neural networks (PINN) …

---

## [SciML NumFOCUS small development grant: Collocation Methods for Boundary Value Differential-Algebraic Equations](https://discourse.julialang.org/t/sciml-numfocus-small-development-grant-collocation-methods-for-boundary-value-differential-algebraic-equations/113329)

<div class="topic-metadata">

**Author:** [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Replies:** 0\
**Last updated:** [April 22, 2024, 11:08am UTC](https://discourse.julialang.org/t/sciml-numfocus-small-development-grant-collocation-methods-for-boundary-value-differential-algebraic-equations/113329 "2024-04-22T11:08:03Z")

</div>

I am happy to announce the latest funded project in SciML: Collocation Methods for Boundary Value Differential-Algebraic Equations. This is highly requested functionality and thus I am happy to announce our plans to buil…

---

## [Bayesian inference with PINNs for ODEs with exogenous inputs taken from data](https://discourse.julialang.org/t/bayesian-inference-with-pinns-for-odes-with-exogenous-inputs-taken-from-data/112721)

<div class="topic-metadata">

**Author:** [@Alvaro98](https://discourse.julialang.org/u/Alvaro98)\
**Replies:** 5\
**Last updated:** [April 18, 2024, 1:57pm UTC](https://discourse.julialang.org/t/bayesian-inference-with-pinns-for-odes-with-exogenous-inputs-taken-from-data/112721 "2024-04-18T13:57:30Z")

</div>

First of all, I’m quite new to Julia and I would like to apologize if the question is too naïve, probably product of my limited understanding of how Julia handles this type of algorithms. Currently, I’m using Julia versi…

---

## [\[BoundaryValueDiffEq.jl\] Avoid recompilation](https://discourse.julialang.org/t/boundaryvaluediffeq-jl-avoid-recompilation/113131)

<div class="topic-metadata">

**Author:** [@bmxam](https://discourse.julialang.org/u/bmxam)\
**Replies:** 1\
**Last updated:** [April 18, 2024, 12:25pm UTC](https://discourse.julialang.org/t/boundaryvaluediffeq-jl-avoid-recompilation/113131 "2024-04-18T12:25:19Z")

</div>

Hi, I am trying to use the TwoPointBVPProblem from BoundaryValueDiffEq. I put my code in a file and runs it by including in the REPL. The code runs great but the first call to solve always triggers a (long) “recompilati…

---

## [Model discovery using Sparse Regression on UDE model](https://discourse.julialang.org/t/model-discovery-using-sparse-regression-on-ude-model/106698)

<div class="topic-metadata">

**Author:** [@gsh19](https://discourse.julialang.org/u/gsh19)\
**Replies:** 1\
**Last updated:** [April 7, 2024, 1:44pm UTC](https://discourse.julialang.org/t/model-discovery-using-sparse-regression-on-ude-model/106698 "2024-04-07T13:44:05Z")

</div>

Hi everyone, I am working on modeling the unknown physics of a non-autonomous system. The system has 5 states and 2 control inputs. The dynamics of states 1 to 3 are known precisely but those of states 4 and 5 are unkno…

---

## [Help modeling advection-diffusion equation with ModelingToolkit.jl](https://discourse.julialang.org/t/help-modeling-advection-diffusion-equation-with-modelingtoolkit-jl/105028)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 27\
**Last updated:** [April 7, 2024, 1:36pm UTC](https://discourse.julialang.org/t/help-modeling-advection-diffusion-equation-with-modelingtoolkit-jl/105028 "2024-04-07T13:36:10Z")

</div>

First time trying to use ModelingToolkit.jl in a project. Appreciate if someone can help with a simple 1D example of advection-diffusion: R \\frac{\\partial c}{\\partial t} = D \\frac{\\partial^2 c}{\\partial x^2} - v \\frac{\\…

---

## [Saving only specific solutions in ODE solver](https://discourse.julialang.org/t/saving-only-specific-solutions-in-ode-solver/112604)

<div class="topic-metadata">

**Author:** [@Balaji\_Lakshminaraya](https://discourse.julialang.org/u/Balaji_Lakshminaraya)\
**Replies:** 1\
**Last updated:** [April 6, 2024, 11:50am UTC](https://discourse.julialang.org/t/saving-only-specific-solutions-in-ode-solver/112604 "2024-04-06T11:50:22Z")

</div>

I’m solving a simultaneous system of linear differential equations (about 40 million simultaneous equations). I am using QNDF solver, with option dense= false. it works well. Since I have a lot of save points, storage i…

---

## [Gradient-based parameter estimation for Catalyst.jl models](https://discourse.julialang.org/t/gradient-based-parameter-estimation-for-catalyst-jl-models/112542)

<div class="topic-metadata">

**Author:** [@dhowsmon](https://discourse.julialang.org/u/dhowsmon)\
**Replies:** 1\
**Last updated:** [April 5, 2024, 3:03am UTC](https://discourse.julialang.org/t/gradient-based-parameter-estimation-for-catalyst-jl-models/112542 "2024-04-05T03:03:48Z")

</div>

Hi, I am trying to estimate parameters/initial conditions in an ODE system built with Catalyst.jl. I first find the steady-state using a callback, and then in a separate simulation I add some input to get my actual desir…

---

## [Using numpy array in the function that calculates residuals in DAEProblem (diffeqpy)](https://discourse.julialang.org/t/using-numpy-array-in-the-function-that-calculates-residuals-in-daeproblem-diffeqpy/112450)

<div class="topic-metadata">

**Author:** [@anjali](https://discourse.julialang.org/u/anjali)\
**Replies:** 1\
**Last updated:** [April 4, 2024, 8:32am UTC](https://discourse.julialang.org/t/using-numpy-array-in-the-function-that-calculates-residuals-in-daeproblem-diffeqpy/112450 "2024-04-04T08:32:36Z")

</div>

I am trying to use diffeqpy to use DAESolver from my python code. The following code works: # the residual calculation function def f(du, u, p, t): resid1 = -0.04 \* u\[0\] + 1e4 \* u\[1\] \* u\[2\] - du\[0\] resid2 = +0.…

---

## [What are IFFxM methods is StochasticDiffEq.jl?](https://discourse.julialang.org/t/what-are-iffxm-methods-is-stochasticdiffeq-jl/111899)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 1\
**Last updated:** [March 27, 2024, 9:12am UTC](https://discourse.julialang.org/t/what-are-iffxm-methods-is-stochasticdiffeq-jl/111899 "2024-03-27T09:12:34Z")

</div>

What are these methods in StochasticDiffEq.jl and in which papers are they described? They are declared and implemented, but they seem to be undocumented. Or have a different name.

---

## [Derivative of user-defined function with variables as arguments in a PDE system](https://discourse.julialang.org/t/derivative-of-user-defined-function-with-variables-as-arguments-in-a-pde-system/111597)

<div class="topic-metadata">

**Author:** [@ehintz3](https://discourse.julialang.org/u/ehintz3)\
**Replies:** 1\
**Last updated:** [March 21, 2024, 10:47pm UTC](https://discourse.julialang.org/t/derivative-of-user-defined-function-with-variables-as-arguments-in-a-pde-system/111597 "2024-03-21T22:47:36Z")

</div>

Hello, I am new to Julia, so apologies if I am missing something basic, but I wasn’t getting any replies in New To Julia, so I’m not sure that was the right place for this post. I am trying to solve a system of PDEs usin…

[Previous page](https://discourse.julialang.org/tag/diffeq/37.md?match_all_tags=true&page=2&tags%5B%5D=diffeq)

[Next page](https://discourse.julialang.org/tag/diffeq/37.md?match_all_tags=true&page=4&tags%5B%5D=diffeq)
