Hi Emily, The error is appearing in the BinomialDistribution
code which is part of the stochastic solver (not part of triggers/predicates/modifiers). Could you please test your scenario
(including the triggers) using a deterministic solver?
IF that passes then the problem is not
triggers but most likely the convergence theshold setting in the stochastic
solver (which can cause also an apparant hang).
OutOfRangeExceptioncan also indicate a problem with the epi model itself. values in a compartment
should never go below zero so please double check all of your transitions
Finally, what is the modification you
are triggering? Could this be causing a compartment value to go negative?
IF you are forcing a discontinous movement of population you may not be
able to use any integrating solver as there could be a problem getting
convergence around the discontinuity. If that's the issue you need to make
sure your modifier logic never causes a negative value.
01/28/2019 09:00 AM Subject:
Vol 117, Issue 7 Sent by:
Send stem-dev mailing list submissions to
Message: 1 Date: Mon, 28 Jan 2019 16:36:21 +0000 From: Emily Nixon <emily.nixon@xxxxxxxxxxxxx> To: developer mailing list STEM <stem-dev@xxxxxxxxxxx> Subject: [stem-dev] Out of range error when using triggers Message-ID:
Content-Type: text/plain; charset="iso-8859-1"
I was wondering if anyone knew what might be causing the error below when
I run my scenario "Jan19"?
When removing the triggers generated by my pajek graph, the scenario runs
normally. However, when the triggers are included in the scenario, progress
on the simulation control remains at 0% for a while and then this error
An internal error occurred during "Jan19" org.apache.commons.math3.exception.OutOfRangeException: -0.045 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:228) 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)
I've had a go at troubleshooting this for a while and have run out of ideas
of what to try next to get it to work.
If anyone has any ideas of what the issue might be, then please let me
know and I will try to investigate further!