#2852: Added option for reporting function and gradient evaluation in the constants optimization evaluator.