SciML / EasyModelAnalysis.jl

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

Using DataDrivenSolution ODE instead of ModelingToolkit model #183

Closed MortezaBabazadehShareh closed 1 year ago

MortezaBabazadehShareh commented 1 year ago

My ODE problem is not a ModelingToolkit model. Instead, it is DataDrivenSolution. How can I use this as a problem in EasyModelAnalysis.jl? Something like this:

problem=ODEProblem(f_recovered, y0, tspan, p_opt) opt_tspan, (s1, s2,), ret = optimal_threshold_intervention(problem, p_opt=>p_new, u[1], 5 , 100)

f_recovered is extracted from a DataDrivenSolution.

ChrisRackauckas commented 1 year ago

you can just run modelingtoolkitize(problem) to convert it.