MOI.supports(::Optimizer, ::MOI.ObjectiveSense) = true
function MOI.set(
    opt::Optimizer,
    ::MOI.ObjectiveSense,
    sense::MOI.OptimizationSense,
)
    opt.obj_sense = sense
    return nothing
end
MOI.get(opt::Optimizer, ::MOI.ObjectiveSense) = opt.obj_sense

MOI.supports(::Optimizer, ::MOI.ObjectiveFunction{F}) where {F<:_O_FUNCS} = true
function MOI.set(
    opt::Optimizer,
    ::MOI.ObjectiveFunction{F},
    obj::F,
) where {F<:_O_FUNCS}
    opt.form.obj = convert(CSAF, obj)
    return nothing
end
