dkaschek / dMod

Dynamic modeling and parameter estimation in R
19 stars 8 forks source link

Symbolic sensitivities bug, if all states were fixed #24

Closed marcusrosenblatt closed 6 years ago

marcusrosenblatt commented 6 years ago

prodSymb() produces error when dv = NULL. This in fact happens when user tries to a priori fix (argument fixed in odemodel) all states of a given model. Same is probably for the parameters.

Use an if statement and output warning!?

dkaschek commented 6 years ago

Thanks Marcus. The problem is within cOde. I fixed the function sensitivitiesSymb() in the cOde package and pushed it into the repo. I had it tested with a model where I fixed all states. Please pull and build cOde and try again. Let me know if it works for you.

marcusrosenblatt commented 6 years ago

Thank Daniel. Works fine for me now!