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.