Skip to content

Commit c7a9557

Browse files
committed
Fix SetDotScaling
1 parent 19917ef commit c7a9557

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bridges/Constraint/bridges/SetDotScalingBridge.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ end
194194
# for `SetMapBridge` does not work
195195
function MOI.supports_constraint(
196196
::Type{<:SetDotScalingBridge},
197-
::Type{<:MOI.AbstractVectorFunction},
197+
F::Type{<:MOI.AbstractVectorFunction},
198198
S::Type{<:MOI.AbstractVectorSet},
199199
)
200-
return MOI.is_set_dot_scaled(S)
200+
return !MOI.Utilities.is_complex(F) && MOI.is_set_dot_scaled(S)
201201
end
202202

203203
function MOI.supports_constraint(

0 commit comments

Comments
 (0)