SciML / EasyModelAnalysis.jl

High level functions for analyzing the output of simulations
MIT License
79 stars 13 forks source link

start intervention cb #125

Closed ArnoStrouwen closed 1 year ago

ArnoStrouwen commented 1 year ago

This should be a pretty general way of doing interventions which do not violate a certain threshold. This is done through additional intervention parameters which occur in callbacks. However, I'm stuck at adding these parameters to the system. I also tried the 4 argument form of ODESystem but can't seem to get it correct. I'm also not sure if there is an automatic way of detecting that t is the independent variable.

Besides continuous time callbacks, discrete time can also be added.

codecov[bot] commented 1 year ago

Codecov Report

Merging #125 (bc15504) into main (796776b) will decrease coverage by 4.02%. The diff coverage is 0.00%.

:exclamation: Current head bc15504 differs from pull request most recent head e38e2c1. Consider uploading reports for the commit e38e2c1 to get more accurate results

@@            Coverage Diff             @@
##             main     #125      +/-   ##
==========================================
- Coverage   94.82%   90.80%   -4.02%     
==========================================
  Files           5        5              
  Lines         251      272      +21     
==========================================
+ Hits          238      247       +9     
- Misses         13       25      +12     
Impacted Files Coverage Δ
src/intervention.jl 77.41% <0.00%> (-22.59%) :arrow_down:
src/datafit.jl 95.34% <0.00%> (+20.93%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more