Skip to content

Commit cea96e6

Browse files
committed
fixes
1 parent 3185a6f commit cea96e6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/ModelAnalyzer.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
module ModelAnalyzer
77

8+
import MathOptInterface as MOI
9+
810
abstract type AbstractIssue end
911

1012
abstract type AbstractData end

src/jump.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using JuMP
1+
import JuMP
22

33
# struct JuMPData{T<:AbstractData} <: ModelAnalyzer.AbstractData
44
# data::T

src/numerical.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ julia> ModelAnalyzer.summarize(ModelAnalyzer.Numerical.VariableBoundAsConstraint
9494
struct VariableBoundAsConstraint <: AbstractNumericalIssue
9595
ref::MOI.ConstraintIndex
9696
end
97-
ModelAnalyzer.constraint(issue::EmptyConstraint, model) = issue.ref
97+
ModelAnalyzer.constraint(issue::VariableBoundAsConstraint, model) = issue.ref
9898

9999
"""
100100
DenseConstraint <: AbstractNumericalIssue
@@ -2277,7 +2277,7 @@ function ModelAnalyzer._verbose_summarize(
22772277
issue::NonconvexQuadraticObjective,
22782278
name_source,
22792279
)
2280-
return ModelAnalyzer._summarize(io, issue)
2280+
return ModelAnalyzer._summarize(io, issue, name_source)
22812281
end
22822282

22832283
function ModelAnalyzer._verbose_summarize(

0 commit comments

Comments
 (0)