MATLAB Answers

0

Simbiology Sensitivity analysis on dummy variable assigned through a repeatedAssignment Rule

Asked by Hussein Abdallah on 17 Feb 2019
Latest activity Answered by Arthur Goldsipe on 18 Feb 2019
Hello,
The title pretty much covers my question: I'm trying to use the 'Calculate sensitivities' Task in SimBiology desktop on a dummy variable whose value is enforced through a repeatedAssignment rule in my model, but I get the error:
'An input or output cannot be the left-handside variable of a repeated assignment rule'
I understand what the error is, but I'm wondering if there are any tricks/strategies around this restriction in the sensitivity calculator?
Thanks in advance!

  0 Comments

Sign in to comment.

1 Answer

Answer by Arthur Goldsipe on 18 Feb 2019
 Accepted Answer

One approach is to analytically differentiate the repeated assignment rule, and figure out how to calculate the desired sensitivity in terms of other sensitivities you can get from simulations. For example, if the repeated assigment rule is A = B + C, then then sensitivity of A would be the sensitivity of B plus the sensitivity of C.

  0 Comments

Sign in to comment.