Simplifying rates with parameters:
Daniel Bending
on 14 Nov 2023
Latest activity Reply by Fulden Buyukozturk
on 15 Nov 2023
The title is resonably non-descript, but I can explain it easily:
Say I have an initial Emax model:
v = emax1*[G]^n1/(ec501^n1+[G]^n1)
And I want to place v inside of a second Emax model:
y = emax2*v^n2/(ex502^n2+v^n2)
Currently, I have the full function of v inside y, twice, it's very long and whilst I only need to get it correct once, for readability in the future I'd rather have it in form #2. I've played around with non-constant parameters but I need the steady state to be v, not the rate rule, and I haven't worked out how to make a parameter shift to a form like v, as an observation might.
Are there any recommended solutions or do I simply need to keep with having v fully expressed in y?
Thank you,
Dan
2 Comments
Time DescendingHi Daniel,
If I understand your question correctly, you can use a repeated assignment rules to describe non-constant parameters as a function of other quantities. Please see here.
You can describe v using a repeated assignment rule and then use v on the right hand-side of y equation.
Fulden
Perhaps using anonymous functions (https://fr.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html)?
v = @(G) emax1*[G]^n1/(ec501^n1+[G]^n1);
y = emax2*v(G)^n2/(ex502^n2+v(G)^n2)
Sign in to participate