Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "ECOS"
uuid = "e2685f51-7e38-5353-a97d-a921fd2c8199"
repo = "https://github.com/jump-dev/ECOS.jl.git"
version = "0.14.2"
version = "1.0.0"

[deps]
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
Expand All @@ -11,7 +11,7 @@ MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
[compat]
CEnum = "0.3, 0.4"
ECOS_jll = "=2.0.8, 200.0.800"
MathOptInterface = "0.10.6"
MathOptInterface = "1"
julia = "1.6"

[extras]
Expand Down
10 changes: 7 additions & 3 deletions src/MOI_wrapper/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,19 @@ function _Solution()
)
end

"""
Optimizer()

Create a new ECOS optimizer.
"""
mutable struct Optimizer <: MOI.AbstractOptimizer
zeros::Union{Nothing,Zeros{pfloat}}
cones::Union{Nothing,Cones{pfloat}}
sol::_Solution
silent::Bool
options::Dict{Symbol,Any}
function Optimizer(; kwargs...)
return new(nothing, nothing, _Solution(), false, Dict{Symbol,Any}())
end

Optimizer() = new(nothing, nothing, _Solution(), false, Dict{Symbol,Any}())
end

function MOI.is_empty(optimizer::Optimizer)
Expand Down