agentleFS
90184479018447/julia-pro-p/skills/sciml-and-diffeq/SKILL.md

sciml-and-diffeq

Skill0 starsChanged 5 days agoMITView on GitHub

The SciML map: which of DifferentialEquations, ModelingToolkit, NeuralPDE, SciMLSensitivity, Optimization, or Catalyst solves which problem, and how their versions co-evolve. Use when choosing SciML packages.

The file

Files
SKILL.md

The SciML map

SciML is one organisation with a shared solver interface and a dozen entry points. Choosing the wrong entry point is the most common waste: a ModelingToolkit model where a plain ODEProblem would do, or a neural closure where a fitted rate law does.

ProblemPackageNotes
ODE, SDE, DAE, DDE, jump processesDifferentialEquations.jlsolver choice and stiffness detection dominate results; see differential-equations
symbolic model, simplification, index reduction, JacobiansModelingToolkit.jlpays when the structure must be analysed, not just integrated; see modeling-toolkit
gradient through a solver (fitting, UDE, adjoints)SciMLSensitivity.jladjoint versus forward changes memory and accuracy; see sciml-modern-stack
parameter estimation, local and global optimisersOptimization.jlone interface over Optim, NLopt, BlackBoxOptim; see optimization-patterns
PDEs with a neural ansatzNeuralPDE.jlPINN, Bayesian PINN, method of lines; see neural-pde
reaction networksCatalyst.jlmass action and stochastic simulation; see catalyst-reactions
unknown model formDataDrivenDiffEq.jlSINDy; see equation-discovery
ecosystem overview, package rolessciml-ecosystemread this first if the table above does not settle it

The co-evolution trap

SciML packages move together and break together. Pin them as a set in [compat] (DifferentialEquations, ModelingToolkit, SciMLSensitivity, Symbolics) and bump them in one commit with Pkg.test() green, not one at a time as each resolver complains. A mixed vintage produces method errors that look like your bug.

Choosing a level

  • A single ODE with a hand-written right-hand side: ODEProblem directly. ModelingToolkit adds compile time and no benefit.
  • Parameters to fit, or a model to linearise: ModelingToolkit, because the Jacobian and the structural information are the point.
  • A missing term in the physics: UDE (neural closure) inside the SciMLSensitivity path, not a full black-box network.
  • Noise or a jump process: the SDE or jump-problem interface, not an ODE with jitter added afterwards.

Done when

The level of the stack matches the problem (a plain ODEProblem for a hand-written right-hand side, ModelingToolkit when the symbolic structure is used, a UDE only when the physics is genuinely incomplete), the model was re-fitted after the data changed, and one solver family reproduced the other at tighter tolerance.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.