Issues in fitting a simple tumor growth model

2 vues (au cours des 30 derniers jours)
Gabriele
Gabriele le 19 Juin 2025
Commenté : Arthur Goldsipe le 23 Juin 2025
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.

Réponse acceptée

Arthur Goldsipe
Arthur Goldsipe le 19 Juin 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 commentaires
Gabriele
Gabriele le 23 Juin 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 le 23 Juin 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Communautés

Plus de réponses dans  SimBiology Community

Catégories

En savoir plus sur Import Data dans Help Center et File Exchange

Tags

Produits


Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by