Hi,
That will depend on your problem definition and the optimizer.
In some case, you may only want to use the first eval of the closure by the optimizer.
In other cases, you can just average over all the evaluations as it is still valid information.
That would depend on your application.