Skip to content

Commit c53143a

Browse files
authored
Fix printing with latest version of JuMP (#276)
1 parent 94f4422 commit c53143a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/constraint.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ _wrap(::MIME"text/latex", s) = "\\text{ " * s * "}"
2828
Sum-of-squares cone; see [`NonnegPolyInnerCone`](@ref).
2929
"""
3030
const SOSCone = NonnegPolyInnerCone{MOI.PositiveSemidefiniteConeTriangle}
31-
function JuMP.in_set_string(print_mode, ::SOSCone)
31+
function JuMP.in_set_string(print_mode::MIME, ::SOSCone)
3232
return _wrap(print_mode, "is SOS")
3333
end
3434

@@ -43,7 +43,7 @@ Scaled-diagonally-dominant-sum-of-squares cone; see [Definition 2, AM17] and
4343
ArXiv e-prints, **2017**.
4444
"""
4545
const SDSOSCone = NonnegPolyInnerCone{ScaledDiagonallyDominantConeTriangle}
46-
function JuMP.in_set_string(print_mode, ::SDSOSCone)
46+
function JuMP.in_set_string(print_mode::MIME, ::SDSOSCone)
4747
return _wrap(print_mode, "is SDSOS")
4848
end
4949

@@ -58,7 +58,7 @@ Diagonally-dominant-sum-of-squares cone; see [Definition 2, AM17] and
5858
ArXiv e-prints, **2017**.
5959
"""
6060
const DSOSCone = NonnegPolyInnerCone{DiagonallyDominantConeTriangle}
61-
function JuMP.in_set_string(print_mode, ::DSOSCone)
61+
function JuMP.in_set_string(print_mode::MIME, ::DSOSCone)
6262
return _wrap(print_mode, "is DSOS")
6363
end
6464

0 commit comments

Comments
 (0)