Rich Hamm
Rich Hamm

Reputation: 31

Get scipy.optimize.minimize to ignore certain results

I am trying to find the best set of parameters for a model of coupled partial differential equations, i.e. the objective function is not analytical. The underlying rate equations are analytical and must be integrated so the results depend on the history sent to the set of equations. There are up to 16 parameters. They are bounded but there are interdependencies that are unknown (otherwise, I would make some constraints). I have done my best to come up with constant bounds but there are instances where the optimizer chooses parameters that result in division by zero or infinity values.

I have already tried "try:/except:" to no avail. Does anyone know of a way I can get scipy.optmize.minimize to reject/ignore a run if these numerical issues show up?

Upvotes: 0

Views: 363

Answers (0)

Related Questions