Hello,
I was able to use the python version of the hypervolume with two objectives, but, when I am trying to use it on three objectives I am getting the following error:
The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
I am trying to calculate the hypervolume at each generation by doing this:
ref=numpy.array([-2, 101, 26])
wobj = numpy.array([ind.fitness.wvalues for ind in hof]) * -1
hypervolume=hv.hypervolume(wobj, ref)
Any suggestions on how to solve this please.
Best wishes.
Many thanks.