diff --git a/src/solver.jl b/src/solver.jl index 912ef560..af8db7e6 100644 --- a/src/solver.jl +++ b/src/solver.jl @@ -266,7 +266,7 @@ function get_option(m::Optimizer, s::Symbol) getproperty(m.options, s) end -function set_option(m::Optimizer, s::Symbol, val ) +function set_option(m::Optimizer, s::Symbol, val) setproperty!(m.options, s, val) end @@ -348,6 +348,9 @@ MOI.get(::Optimizer, ::MOI.SolverName) = "Alpine" function MOI.set(model::Optimizer, param::MOI.RawParameter, value) set_option(model, Symbol(param.name), value) end +function MOI.set(model::Optimizer, param::MOI.RawParameter) + get_option(model, Symbol(param.name)) +end function MOI.add_variables(model::Optimizer, n::Int) return [MOI.add_variable(model) for i in 1:n]