How to make scipy.optimize.differential_evolution ignore 'nan' evaluations?

184 Views Asked by At

I am trying to optimize a complex PDE using differential_evolution. Sometimes my function for specific cases returns 'nan' and the differential evolution evaluation report takes that as the result of the evaluation. How can I tell the optimizer to ignore the results when it gets a 'nan' value?

0

There are 0 best solutions below