Question about using an Exponential within a rule using Simbiology
1 次查看(过去 30 天)
显示 更早的评论
Hello All,
I am trying to estimate a parameter using the change in drug concentraiton (Concentraiton), m, b. I use the the following rule:
Rule_6 = exp(m*log(Concentraiton)+b)
When I run the equation, I get the following error:
Cannot perform dimensional analysis for rule 'rule_6' because of the function 'exp' in the rule. Because UnitConversion is on, correct simulation results will depend on this expression being dimensionally correct. Additionally, SimBiology simulates the model in a unit system determined at runtime. The units are determined by the units used in the model and the model's configset. Unless the inputs and outputs to the function are dimensionless, results may change due to configset option changes, changes to the model, or version changes in SimBiology. It is recommended that input and output arguments to functions be dimensionless to ensure correct results.
Variables m and b are dimensionless as is the parameter I am estimating. I divided Concentraiton by Concentraiton0, both as mg/L, to get a dimensionless value. Do you have any advice for estimating the variable while still keeping the UnitConversion on?
Thanks
0 个评论
采纳的回答
Wei Wang
2020-6-9
Hi, Brett,
As what you mentioned, I think the your rule is "Rule_6=exp(m*log(Concentration/Concentration0)+b)". And I think you are using this equation to calculate something X, X=exp(m*log(Concentration/Concentration0)+b), so that X should be demensionless in this from. If X is with demension, you can also creat a parameter X0 with value 1 in the same unit, and change the equation to "X=exp(m*log(Concentration/Concentration0)+b)*X0".
I hope this is helpfull.
Best regards,
Wang Wei
4 个评论
Arthur Goldsipe
2020-6-9
Hi,
Wang Wei is correct. Once you have ensured that you have correctly configured your rule, you can safely ignore this message. Since SimBiology can't validate the consistency of the rule, it warns you every time about this. But it's a warning (that you may or may not have a probelm) not an error (which is what occurs when there is definitely a problem).
-Arthur
更多回答(0 个)
社区
更多回答在 SimBiology Community
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Biotech and Pharmaceutical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!