Skip to content

Commit c31baf7

Browse files
committed
Update
1 parent e2d10cb commit c31baf7

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

src/Bridges/Constraint/bridges/SplitComplexIndicatorEqualToBridge.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
# in the LICENSE.md file or at https://opensource.org/licenses/MIT.
66

77
"""
8-
SplitComplexIndicatorEqualToBridge{T,F,G,A} <: Bridges.Constraint.AbstractBridge
8+
SplitComplexIndicatorEqualToBridge{T,F,G,A} <:
9+
Bridges.Constraint.AbstractBridge
910
1011
`SplitComplexIndicatorEqualToBridge` implements the following reformulation:
1112
@@ -16,15 +17,15 @@
1617
1718
`SplitComplexIndicatorEqualToBridge` supports:
1819
19-
* `G` in [`MOI.Indicator{A,MOI.EqualTo{Complex{T}}`](@ref)
20+
* `G` in `MOI.Indicator{A,MOI.EqualTo{Complex{T}}`
2021
2122
where `G` is a function with `Complex` coefficients.
2223
2324
## Target nodes
2425
2526
`SplitComplexIndicatorEqualToBridge` creates:
2627
27-
* `F` in [`MOI.Indicator{A,MOI.EqualTo{T}}`](@ref)
28+
* `F` in `MOI.Indicator{A,MOI.EqualTo{T}}`
2829
2930
where `F` is the type of the real/imaginary part of `G`.
3031
"""
@@ -71,11 +72,9 @@ function bridge_constraint(
7172
return SplitComplexIndicatorEqualToBridge{T,F,G,A}(real_ci, imag_ci)
7273
end
7374

74-
# We don't support `MOI.VariableIndex` as it would be a self-loop in the bridge
75-
# graph.
7675
function MOI.supports_constraint(
7776
::Type{<:SplitComplexIndicatorEqualToBridge{T}},
78-
::Type{<:MOI.Utilities.TypedLike{Complex{T}}},
77+
::Type{<:MOI.Utilities.TypedVectorLike{Complex{T}}},
7978
::Type{MOI.Indicator{A,MOI.EqualTo{Complex{T}}}},
8079
) where {T,A}
8180
return true

0 commit comments

Comments
 (0)