nutterb / HydeNet

Hybrid Decision Networks in R
Other
23 stars 3 forks source link

`closeAllConnections()` needed in `compileDecisionModel` #78

Closed nutterb closed 8 years ago

nutterb commented 8 years ago

If there are a lot of policies in the policy matrix, we could actually run out of connections. The example I'm playing with now is trying to predict a numeric response over time, and so I wanted to give a policy matrix with 1000 values of time. I can't compile all the JAGS models though because I can't support that many connections.

A call to closeAllConnections() in the lapply call in compileDecisonModel should alleviate this problem.