FractionalDiffEq.jl icon indicating copy to clipboard operation
FractionalDiffEq.jl copied to clipboard

suggestions for mutliterm problems

Open moeinkh88 opened this issue 2 years ago • 3 comments

Hi,

For multiterm examples, like bagleytorvik, I have found that we need to use arguments as parameters of the problem. But, isn't it better to have a solver function for a class of problems with muliterm of derivatives and let the user define the problem function manually? Like fractional ODE problems that you made, the user can define the problem and then use the function as an argument (like chua.jl). This way is more user-friendly and more flexible than having a specific problem inside the solver and giving control of the parameters to the user.

moeinkh88 avatar Jun 08 '22 09:06 moeinkh88

Hi there, I am not sure if I get what you mean, for multi-terms FODE, there is MultiTermsFODEProblem we can use to define our problems:

https://github.com/SciFracX/FractionalDiffEq.jl#a-sophisticated-example

Do we need to do something else?

ErikQQY avatar Jun 08 '22 10:06 ErikQQY

OK So, can we solve the Bagelytorvik equation by using MultiTermsFODEProblem? If so, why is there another separate solver specifically for Bagelytorvik?

moeinkh88 avatar Jun 08 '22 11:06 moeinkh88

Yeah, MultiTermsFODEProblem can solve BagleyTorvik equations, that solver was initially designed to test the solvers, and I think now that function can be removed.

ErikQQY avatar Jun 08 '22 14:06 ErikQQY