Skip to content

Commit

Permalink
Update to MOI v1.0 (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Feb 17, 2022
1 parent 06d7ac4 commit d899fd9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
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

2 comments on commit d899fd9

@odow
Copy link
Member Author

@odow odow commented on d899fd9 Feb 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/55179

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.0 -m "<description of version>" d899fd9fb181c9205d5720ca013a07ce3c509b8e
git push origin v1.0.0

Please sign in to comment.