Closed MortezaBabazadehShareh closed 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.
you can just run modelingtoolkitize(problem) to convert it.
modelingtoolkitize(problem)
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.