Fix optimization logger for unconstrained problems.