Message Boards Message Boards

[NB] Scaling of epidemiology models with multi-site compartments

Posted 4 years ago

MODERATOR NOTE: coronavirus resources & updates:

POSTED BY: Anton Antonov
3 Replies
Posted 3 years ago

Hello Anton, I have been following the talks on compartimental model for graph, it has been really helpfull. I´m implementing them on conectivity graphs for Guatemala. I was following the workflow and I have a question.

On the first part, Scaling the single-site SIR model over a small complete graph, everithing works fine until I enter: ModelGridTableForm[KeyTake[modelBig,{"Equations"}]//.modelBig["RateRules"]]

It says.: TemplateBox[{"ModelGridTableForm", "nargs", "\"The first argument is expected to be an association; (an epidemiology model).\"", 2, 15, 2, 22446535662752715463, "Local", "EpidemiologyModels`ModelGridTableForm"}, "MessageTemplate2"]

So when i plot the parametric solutions it does not show the solution as it is supposed be. I copied it directly from the notebook.

Do you have any suggestions why this may be happening, i´m running it on the wolfram cloud

Tahnk you in advance for your time.

POSTED BY: Andres Perez

Thank you bringing this to my attention! Please use:

ModelGridTableForm[modelBig]["Equations"] //. modelBig["RateRules"]

(This should be fixed in the linked Wolfram Cloud notebook too.)

POSTED BY: Anton Antonov

enter image description here -- you have earned Featured Contributor Badge enter image description here

Your exceptional post has been selected for our editorial column Staff Picks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you, keep it coming, and consider contributing to the The Notebook Archive!

POSTED BY: Moderation Team
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract