Another option is this
julia> model = Model();
julia> @variable(model, x)
x
julia> @objective(model, Min, 2x^2 + x + 0.5)
2 x² + x + 0.5
julia> f = objective_function(model)
2 x² + x + 0.5
julia> point = Dict(x => 2.0)
Dict{VariableRef, Float64} with 1 entry:
x => 2.0
julia> value(f, x -> point[x])
10.5