Issues in fitting a simple tumor growth model

1 view (last 30 days)
Dear staff,
I'm learning how to implement a TGI model in Simbiology using a scripting approach. For that purpose I started to implement my model (based on the example tumor_growth_fitPKPD_completed.sbproj) just with a modified growth component and I'm trying to fit a dataset. Attached you can find the dataset (synth_data.mat) and the TGI script (test_code.m). As you can see the initial tumor mass of different patients varies quite a lot so I can't use a unique initialization for the variable w0. I would like to understand if (and how) it is possible to pass to the model the initial tumor mass for each ID, in order to avoid to fit this parameter.
Thank you very much for your help.

Accepted Answer

Arthur Goldsipe
Arthur Goldsipe on 19 Jun 2025
You can use the Variants property of the fitproblem to specify initial conditions that are specific to each ID. Create one variant for each ID using sbiovariant. I can probably provide sample code later, but I don't have time right now.
  7 Comments
Gabriele
Gabriele on 23 Jun 2025
Dear @Arthur Goldsipe I just found which was the issue. The problem.Doses was not declared so the fitting routine was not taking into account any dose. I solved the problem providing problem.Doses = [dose1, dose2]. Thank you very much anyway for your help and your reactivity!
Arthur Goldsipe
Arthur Goldsipe on 23 Jun 2025
Ah, excellent. Glad you figured it out. If it's any consolation, I completely forgot to check whether you model had active doses. So I was pretty stumped by this myself, even after working on the SimBiology development team for many years.

Sign in to comment.

More Answers (0)

Communities

More Answers in the  SimBiology Community

Tags

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!