Skip to content

Commit

Permalink
Fix #50
Browse files Browse the repository at this point in the history
  • Loading branch information
bstellato committed May 24, 2019
1 parent 459b78d commit 5fcec1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ mutable struct Optimizer <: MOI.AbstractOptimizer
warmstartcache::WarmStartCache{Float64}
rowranges::Dict{Int, UnitRange{Int}}

function Optimizer()
function Optimizer(; kwargs...)
inner = OSQP.Model()
hasresults = false
results = OSQP.Results()
is_empty = true
settings = Dict{Symbol, Any}()
for (name, value) in kwargs
settings[Symbol(name)] = value
end
sense = MOI.MIN_SENSE
objconstant = 0.
constrconstant = Float64[]
Expand Down

0 comments on commit 5fcec1f

Please sign in to comment.