Fit data to an analytical solution?

For all your discussions and questions on toxicokinetic (TK) modelling.
Post Reply
Haotian Wanght
Posts: 24
Joined: Wed Sep 01, 2021 10:30 am
Location: Beijing, China
Contact:

Fit data to an analytical solution?

Post by Haotian Wanght »

Hi Tjalling,

Does BYOM could handle analytical solution instead of ODEs, i.e. fit the data to an analytical solution of a kinetic model?

Merry Christmas and happy new year!
Haotian
User avatar
Tjalling
Site Admin
Posts: 212
Joined: Wed Sep 30, 2015 9:57 am
Location: The Netherlands
Contact:

Re: Fit data to an analytical solution?

Post by Tjalling »

Yes, you can set up the code to use analytical solutions. The examples folder of BYOM shows you how. In the examples/logistic folder, there is a derivative in derivatives.m and an analytical solution in simplefun.m. In call_deri, one of these is used, depending on the setting of the global glo.useode in the main script.

The folder examples/bioconc also includes such a switch, see the script byom_bioconc_extra. That folder may be easiest to use as a basis for your model analysis. If you only need to use the analytical solution, you can leave out derivatives.m and modify call_deri so that it always calls simplefun.m.

Best wishes!
Haotian Wanght
Posts: 24
Joined: Wed Sep 01, 2021 10:30 am
Location: Beijing, China
Contact:

Re: Fit data to an analytical solution?

Post by Haotian Wanght »

Hi Tjalling,

Thanks so much for the solution. That's very helpful.

Best,
Haotian
Post Reply