Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Spatiotemporal Epidemiological Modeler (STEM) » Modifiers for Graphs?
Modifiers for Graphs? [message #656267] Thu, 24 February 2011 14:42 Go to next message
Tom Schafer is currently offline Tom Schafer
Messages: 5
Registered: February 2011
Junior Member
In the STEM documentation, it states that modifiers can be created for graphs and models, but I can find no details as to how to do this. I have successfully created modifiers for infectors, inoculators, and diseases, but the procedure does not seem to work for models or graphs. Has someone done this sucessfully? Or barring this, is there a way to shut down the air transport network mid-run as a mitigation strategy? Any help would be very much appreciated.

Incidentally, I appreciate the help on the CSV issue - Thanks, Dr. Edlund!
Re: Modifiers for Graphs? [message #656289 is a reply to message #656267] Thu, 24 February 2011 18:02 Go to previous message
Stefan Edlund is currently offline Stefan Edlund
Messages: 127
Registered: July 2009
Location: IBM
Senior Member
Hi Tom,

modifiers, triggers and predicates are actually still kind of experimental features in STEM, hence there are some limitations. So no, you cannot create a modifier on a graph or model (can you send us a link to the doc so we can fix that?).

Actually, the way we envision you would turn off air transportation would be to create a modifier on the air transport edge inside the graph that controls the number of passengers arriving/departing at particular region daily. That would potentially require lots of modifiers to shutdown everything.

We've also been playing with the idea of a global air transport throttle parameter that you could turn to 0 to shutdown air transportation completely.

Here is a workaround if you really want to see what would happen if you shut down air transport after some number of days:

1. Run and log a simulation with a scenario containing all you air transportation graphs in it.

2. Create a new scenario just like the first one, but remove the air transportation graphs from it as well as any infector/inoculator

3. Create a new infector and inoculator using the log file you just generated from the first scenario. You can do this in the New Infector wizard, by checking the checkbox "Import from STEM log files". In the "Selected row", pick the day you want air transportation to shut down. Drag your new (multi-region) infector and inoculator into your new scenario and run and log the result.

So what does this do? It will initialize your new scenario to the exact state your first simulation was in the day you wanted to shut down air transportation. So by combining the log files from the first and second scenario you get the results you want. Observe that this does not work for model that has the Exposed state in it, like SEIR (we have no way of initializing that).

Regards,
/ Stefan
Previous Topic:Modifiers for Graphs
Next Topic:EclipseCon 2011
Goto Forum:
  


Current Time: Tue Jul 29 08:48:24 EDT 2014

Powered by FUDForum. Page generated in 0.01650 seconds