Using simFunction Object in Simbiology when my stoichiometry depends on a model parameter
Mostrar comentarios más antiguos
I have s SimBiology model in which the stochiometry of some equations depend on a model parameter called "DAR" as you can see below. I have DAR and some other paameters to change and see their effect on some observables. Once I change DAR and create a SimFunction, The stochiometry of equations do not change. Is there any way to use simFunction object and see the effect of DAR on the stchiometry. I can change the stochiometry in loop but I want it to be chnage as I use simFunction.
Thanks
reactionObj = addreaction(model,'Media.ADC_ext -> Media.Ab_ext + Media.PL_ext');
set (reactionObj, 'Stoichiometry', [-1 1 sbioselect(model,'Name','DAR').Value])
set (reactionObj, 'ReactionRate', 'kdec*Media.ADC_ext');
set (reactionObj, 'Notes', 'ADCs lose their payload, to produce unconjugated antibody and free payload');
set (reactionObj, 'Name', 'r1');
Respuesta aceptada
Más respuestas (1)
Mehdi
el 21 de Mzo. de 2024
0 votos
2 comentarios
Arthur Goldsipe
el 21 de Mzo. de 2024
The error you report is intended to communicate that SimBiology does not allow the following the following combination of conditions:
- A species is in concentration.
- The concentration of that species is determined by a rate rule.
- The compartment (that the species is in) is determined by a repeated assignment rule or an algebraic rule.
One fix would be the one mentioned at the end of the error message: Replace the repeated assignment rule or algebraic rule with a rate rule that gives equivalent behavior.
Another option would be to change the species units to amount instead of concentration and use (species amount)/(compartment volume) anywhere you need to reference the concentration.
Also, one request: If you have additional questions, please post them as a new questions on MATLAB Answers. You posted this question in the "answer" field, and it makes it a bit harder to keep track of each question and the associated best answer.
Arthur Goldsipe
el 21 de Mzo. de 2024
Oh, right after I provided the above answer I saw that you did repost this as a separate question. I'll repost my answer there.
Comunidades de usuarios
Más respuestas en SimBiology Community
Categorías
Más información sobre Extend Modeling Environment en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
