SciML / SciML/DiffEqCallbacks.jl

Feature request: a callback detecting whether certain conditions have been satisfied for a given duration

Open
#100 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
100
Forks
54
Avg merge
3h 29m
Merged PRs (30d)
8

Description

Hi,
simulation sometimes requires the detection of whether a certain event has occured for a given duration.

For example, I would like to terminate simulation if a condition whether a scalar state (namely, u) is negative has been satisfied for 5 seconds.

It would be useful if such functionality is provided as an exported callback.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named in the issue. Start by locating the exported callback implementations and their tests, then determine how a condition and its required duration should be represented for simulation termination. Done means the callback is exported, handles the stated duration condition, and has coverage for the scalar-state example.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.