pygmo, how to return no value in problem function

34 Views Asked by At

I am using PyGMO in Python. I want to find minimum of black box function which could have no value for particular guess. How should i define return value of fitness function if my function does not return value?

Should it be None or float("inf")? I have tried to return float("inf") but it looks like algorithm PSO_GEN cannot converge.

0

There are 0 best solutions below