Hi,
Thanks Stefan, that does help. However, I still can't seem to get a stochastic model to work.
Do I need to have a stochastic solver and have "Add stochastic noise" on the disease model set as true? Or does "Add stochastic noise" not really play a role any more? I've tried my model with it set to true and to false and it still doesn't seem to work, so I don't think this is the main problem, but I thought it would be useful to know what general practice should be.
This is the error I keep getting when trying to run my scenario:
org.apache.commons.math3.exception.OutOfRangeException: 1.091 out of [0, 1] range
at org.apache.commons.math3.distribution.BinomialDistribution.<init>(BinomialDistribution.java:75)
at org.eclipse.stem.core.math.BinomialDistributionUtil.fastPickFromBinomialDist(BinomialDistributionUtil.java:76)
at org.eclipse.stem.solvers.stochastic.impl.StandardStochasticImpl.step(StandardStochasticImpl.java:276)
at org.eclipse.stem.core.scenario.impl.ScenarioImpl.step(ScenarioImpl.java:395)
at org.eclipse.stem.jobs.simulation.Simulation.run(Simulation.java:313)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
When I've run it with different seeds, then I get the same message, but often the number in the first line (in this case 1.091) is different. If you know what the problem is, then it would be great if you could let me know!
And a final random question, is there a way of having a number with recurring decimals as a parameter in a disease model?
Thank you all for your help,
Emily