Skip to content

Commit d899fd9

Browse files
authored
Update to MOI v1.0 (#136)
1 parent 06d7ac4 commit d899fd9

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Diff for: Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ECOS"
22
uuid = "e2685f51-7e38-5353-a97d-a921fd2c8199"
33
repo = "https://github.com/jump-dev/ECOS.jl.git"
4-
version = "0.14.2"
4+
version = "1.0.0"
55

66
[deps]
77
CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
@@ -11,7 +11,7 @@ MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
1111
[compat]
1212
CEnum = "0.3, 0.4"
1313
ECOS_jll = "=2.0.8, 200.0.800"
14-
MathOptInterface = "0.10.6"
14+
MathOptInterface = "1"
1515
julia = "1.6"
1616

1717
[extras]

Diff for: src/MOI_wrapper/MOI_wrapper.jl

+7-3
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,19 @@ function _Solution()
8080
)
8181
end
8282

83+
"""
84+
Optimizer()
85+
86+
Create a new ECOS optimizer.
87+
"""
8388
mutable struct Optimizer <: MOI.AbstractOptimizer
8489
zeros::Union{Nothing,Zeros{pfloat}}
8590
cones::Union{Nothing,Cones{pfloat}}
8691
sol::_Solution
8792
silent::Bool
8893
options::Dict{Symbol,Any}
89-
function Optimizer(; kwargs...)
90-
return new(nothing, nothing, _Solution(), false, Dict{Symbol,Any}())
91-
end
94+
95+
Optimizer() = new(nothing, nothing, _Solution(), false, Dict{Symbol,Any}())
9296
end
9397

9498
function MOI.is_empty(optimizer::Optimizer)

0 commit comments

Comments
 (0)