Extract the numerical objective value from a solution
objective_value(solution)
solution
a solution
numeric single item vector