Right now for inter-compartmental flow a simple model building script could look something like:
m=sbiomodel('model');V=2;addparameter(m,'Volume',V);addparameter(m,'Q',3);c1=addcompartment(m,'Comp1','Capacity',V);addcompartment(m,'Comp2','Capacity',1);addspecies(c1,'a',1);addreaction(m, 'Comp1.a -> Comp2.a','ReactionRate','Q/Volume*Comp1.a');sbiosaveproject('flow','m');
Now if someone opens flow.sbproj then so long as the Volume parameter and the Comp1 capacity aren't changed the model works fine, but if one of them is changed they're not linked for future model simulation. What's the cleanest way to ensure they're always equal using a script? Thanks for any guidance.
Best Answer