Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stem-dev] stem-dev Digest, Vol 117, Issue 7

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 and rates....

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.


From:        stem-dev-request@xxxxxxxxxxx
To:        stem-dev@xxxxxxxxxxx
Date:        01/28/2019 09:00 AM
Subject:        stem-dev Digest, Vol 117, Issue 7
Sent by:        stem-dev-bounces@xxxxxxxxxxx

Send stem-dev mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific
than "Re: Contents of stem-dev digest..."

Today's Topics:

  1. Out of range error when using triggers (Emily Nixon)


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
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

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 appears.

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>(
at org.eclipse.stem.core.math.BinomialDistributionUtil.fastPickFromBinomialDist(
at org.eclipse.stem.solvers.stochastic.impl.StandardStochasticImpl.step(
at org.eclipse.stem.core.scenario.impl.ScenarioImpl.step(

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!

Best wishes,


Emily Nixon
PhD Student


School of Biological Sciences
University of Bristol
Bristol Life Sciences Building
24 Tyndall Avenue
Tel +44 (0)117 394 1389
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>


stem-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

End of stem-dev Digest, Vol 117, Issue 7

Back to the top