|
5 | 5 | # in the LICENSE.md file or at https://opensource.org/licenses/MIT. |
6 | 6 |
|
7 | 7 | """ |
8 | | - SplitComplexIndicatorEqualToBridge{T,F,G,A} <: Bridges.Constraint.AbstractBridge |
| 8 | + SplitComplexIndicatorEqualToBridge{T,F,G,A} <: |
| 9 | + Bridges.Constraint.AbstractBridge |
9 | 10 |
|
10 | 11 | `SplitComplexIndicatorEqualToBridge` implements the following reformulation: |
11 | 12 |
|
|
16 | 17 |
|
17 | 18 | `SplitComplexIndicatorEqualToBridge` supports: |
18 | 19 |
|
19 | | - * `G` in [`MOI.Indicator{A,MOI.EqualTo{Complex{T}}`](@ref) |
| 20 | + * `G` in `MOI.Indicator{A,MOI.EqualTo{Complex{T}}` |
20 | 21 |
|
21 | 22 | where `G` is a function with `Complex` coefficients. |
22 | 23 |
|
23 | 24 | ## Target nodes |
24 | 25 |
|
25 | 26 | `SplitComplexIndicatorEqualToBridge` creates: |
26 | 27 |
|
27 | | - * `F` in [`MOI.Indicator{A,MOI.EqualTo{T}}`](@ref) |
| 28 | + * `F` in `MOI.Indicator{A,MOI.EqualTo{T}}` |
28 | 29 |
|
29 | 30 | where `F` is the type of the real/imaginary part of `G`. |
30 | 31 | """ |
@@ -71,11 +72,9 @@ function bridge_constraint( |
71 | 72 | return SplitComplexIndicatorEqualToBridge{T,F,G,A}(real_ci, imag_ci) |
72 | 73 | end |
73 | 74 |
|
74 | | -# We don't support `MOI.VariableIndex` as it would be a self-loop in the bridge |
75 | | -# graph. |
76 | 75 | function MOI.supports_constraint( |
77 | 76 | ::Type{<:SplitComplexIndicatorEqualToBridge{T}}, |
78 | | - ::Type{<:MOI.Utilities.TypedLike{Complex{T}}}, |
| 77 | + ::Type{<:MOI.Utilities.TypedVectorLike{Complex{T}}}, |
79 | 78 | ::Type{MOI.Indicator{A,MOI.EqualTo{Complex{T}}}}, |
80 | 79 | ) where {T,A} |
81 | 80 | return true |
|
0 commit comments