Skip to content

Commit 4018990

Browse files
committed
Move code to MOI and add JuMP layer
1 parent dad3c7e commit 4018990

File tree

5 files changed

+419
-158
lines changed

5 files changed

+419
-158
lines changed

src/ModelAnalyzer.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,5 @@ include("numerical.jl")
109109
include("feasibility.jl")
110110
include("infeasibility.jl")
111111

112+
include("jump.jl")
112113
end

src/jump.jl

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using JuMP
2+
3+
# struct JuMPData{T<:AbstractData} <: AbstractData
4+
# data::T
5+
# end
6+
7+
struct JuMPIssue{T<:AbstractIssue} <: AbstractIssue
8+
issue::T
9+
end
10+
11+
function analyze(
12+
analyzer::T,
13+
model::JuMP.Model;
14+
kwargs...,
15+
) where {T<:AbstractAnalyzer}
16+
moi_model = JuMP.backend(model)
17+
# Perform the analysis
18+
result = analyze(analyzer, moi_model; kwargs...)
19+
# return JuMPData(result)
20+
return result
21+
end
22+
23+
# function _name(ref)
24+
# name = JuMP.name(ref)
25+
# if !isempty(name)
26+
# return name
27+
# end
28+
# return "$(ref.index)"
29+
# end

0 commit comments

Comments
 (0)