# Avoid bad parameters in Global Sensitivity Analysis (Morris)

**URL:** https://discourse.julialang.org/t/avoid-bad-parameters-in-global-sensitivity-analysis-morris/66652
**Category:** General Usage
**Tags:** diffeq
**Created:** [August 19, 2021, 3:43am UTC](https://discourse.julialang.org/t/avoid-bad-parameters-in-global-sensitivity-analysis-morris/66652 "2021-08-19T03:43:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ANasc](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@ANasc](https://discourse.julialang.org/u/ANasc)
#### Post date: [August 19, 2021, 3:43am UTC](https://discourse.julialang.org/t/avoid-bad-parameters-in-global-sensitivity-analysis-morris/66652/1 "2021-08-19T03:43:32Z")

</div>

Hello,

I’m using `DiffEqSensitivity` to perform a Global Sensitivity Analysis using the Morris method (similar to the first example here: [Global Sensitivity Analysis · DifferentialEquations.jl](https://diffeq.sciml.ai/stable/analysis/global_sensitivity/) but with a DDEProblem). The model has about 40 parameters and everything works well most of the time, but on occasion it will try a combination of parameters that makes the solver stall (dt drops to ~1e-14) and it eventually throws a ` Warning: Interrupted. Larger maxiters is needed.` This is fine, it has probably just created a problem that is excessively stiff or something, but these bad parameter combinations take a lot of time. Is there some standard (or otherwise) way of avoiding bad parameters? Analagous to throwing an infinite loss during parameter estimation or something similar?

Currently, I’ve set `dtmin = 1e-10` which then throws a `dt <= dtmin. Aborting...` warning whenever the problem arises, and then continues with the next iteration. This quickly passes by the bad parameter combination, but I don’t know if it affects the result or what exactly is happening when I try this “fix”. e.g., does it ignore that iteration and try another parameter combination, or does the erroneous result get recorded and make its way into the final result? Any suggestions would be very welcome.

Thanks

---

<div class="post-metadata">

### Author: ![tuni](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@tuni](https://discourse.julialang.org/u/tuni)
#### Post date: [July 17, 2025, 6:38pm UTC](https://discourse.julialang.org/t/avoid-bad-parameters-in-global-sensitivity-analysis-morris/66652/2 "2025-07-17T18:38:10Z")

</div>

Hi, I met the same problem as you. I am new to Julia, and wondering if your problem has been solved. Thanks/
