Skip to content

Commit

Permalink
add new kwarg to dual_optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermebodin committed Dec 18, 2024
1 parent 208b284 commit 2a0c049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

export DualOptimizer, dual_optimizer

function dual_optimizer(optimizer_constructor)
return () -> DualOptimizer(MOI.instantiate(optimizer_constructor))
function dual_optimizer(optimizer_constructor; coefficients_type::Type{T} = Float64) where {T <: Number}
return () -> DualOptimizer{T}(MOI.instantiate(optimizer_constructor))
end

struct DualOptimizer{T,OT<:MOI.ModelLike} <: MOI.AbstractOptimizer
Expand Down

0 comments on commit 2a0c049

Please sign in to comment.