Skip to content

Commit

Permalink
Merge pull request #103 from blegat/bl/zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimg authored Jun 5, 2024
2 parents 3afc98c + 6d3033a commit ab6a3b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 6 additions & 8 deletions src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const MOI = MathOptInterface
MOI.Utilities.@product_of_sets(_Zeros, MOI.Zeros)

MOI.Utilities.@product_of_sets(Zeros, MOI.Zeros)

MOI.Utilities.@product_of_sets(Nonpositives, MOI.Nonpositives)
MOI.Utilities.@product_of_sets(_Nonpositives, MOI.Nonpositives)

MOI.Utilities.@struct_of_constraints_by_set_types(
StructCache,
Expand All @@ -25,7 +23,7 @@ const OptimizerCache{T} = MOI.Utilities.GenericModel{
MOI.Utilities.OneBasedIndexing,
},
Vector{T},
Zeros{T},
_Zeros{T},
},
MOI.Utilities.MatrixOfConstraints{
T,
Expand All @@ -35,7 +33,7 @@ const OptimizerCache{T} = MOI.Utilities.GenericModel{
MOI.Utilities.OneBasedIndexing,
},
Vector{T},
Nonpositives{T},
_Nonpositives{T},
},
MOI.Utilities.VectorOfConstraints{
MOI.VectorOfVariables,
Expand All @@ -55,8 +53,8 @@ end

mutable struct Optimizer <: MOI.AbstractOptimizer
cones::Union{Nothing, ConeData}
zeros::Union{Nothing, Zeros{Float64}}
nonps::Union{Nothing, Nonpositives{Float64}}
zeros::Union{Nothing, _Zeros{Float64}}
nonps::Union{Nothing, _Nonpositives{Float64}}
sol::Result
options::Options
end
Expand Down
4 changes: 2 additions & 2 deletions src/ProxSDP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using PrecompileTools: @setup_workload, @compile_workload

import Arpack
import KrylovKit
import MathOptInterface
import MathOptInterface as MOI
import TimerOutputs
import TimerOutputs: @timeit

Expand Down Expand Up @@ -37,4 +37,4 @@ include("MOI_wrapper.jl")

end

end
end

0 comments on commit ab6a3b4

Please sign in to comment.