Jump to content
fjvalencian

Problem with runAsync

Recommended Posts

I'm working on an optimization code that calls the runAsync function to run experiments and then iterate over the controls using the response values.


My issue is that sometimes the runAsync function (I assume) doesn't work properly and the experiment simply stops running without any error message. I'm writing a log of sorts in the console and I can see that one experiment begins but not all replications start running and the code gets stuck.


Is there a common issue where runAsync doesn't work? As far as I can tell it's not an issue with the model since I can run it normally using the parameters that make the code get stuck.

Share this post


Link to post
Share on other sites

In general, we would recommend using run() instead of runasync() if it's OK for user input to block. If that is not OK, say for a UI application, then runasync might be useful.


If the problem is reproducible, you could send us the model and code to support@simio.com we could take a look to see if we can figure out where exactly something might be hanging.

Share this post


Link to post
Share on other sites

×