Skip to content

Commit 0271c06

Browse files
committed
Update
1 parent d018795 commit 0271c06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Bridges/Constraint/bridges/inequality_to_complements.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ end
6868

6969
function MOI.supports_constraint(
7070
::Type{<:InequalityToComplementsBridge{T}},
71-
::Type{<:MOI.AbstractScalarFunction},
71+
::Type{F},
7272
::Type{<:Union{MOI.GreaterThan{T},MOI.LessThan{T},MOI.EqualTo{T}}},
73-
) where {T}
74-
return true
73+
) where {F<:MOI.AbstractScalarFunction}
74+
return !MOI.Utilities.is_complex(F)
7575
end
7676

7777
function MOI.Bridges.added_constrained_variable_types(

0 commit comments

Comments
 (0)