You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function MOIB.added_constrained_variable_types(::Type{<:IndicatorBridge{T,B}}) where {T,B}
76
76
return MOIB.added_constrained_variable_types(B)
77
77
end
78
78
79
-
function MOIBC.bridge_constraint(::Type{<:IndicatorBridge{T, B, A, IS_MOI_OR_CS, F, S}}, model, func, set) where {T, B, A, IS_MOI_OR_CS<:MOI.IndicatorSet, F, S}
79
+
function MOIBC.bridge_constraint(::Type{<:IndicatorBridge{T, B, A, IS_MOI_OR_CS, F, S}}, model, func, set) where {T, B, A, IS_MOI_OR_CS<:MOI.Indicator, F, S}
function MOIBC.bridge_constraint(::Type{<:IndicatorBridge{T, B, A, IS_MOI_OR_CS, F, S}}, model, func, set) where {T, B, A, IS_MOI_OR_CS<:CS.IndicatorSet, F, S}
87
+
function MOIBC.bridge_constraint(::Type{<:IndicatorBridge{T, B, A, IS_MOI_OR_CS, F, S}}, model, func, set) where {T, B, A, IS_MOI_OR_CS<:CS.Indicator, F, S}
Copy file name to clipboardexpand all lines: src/MOI_wrapper/bool.jl
+5-5
Original file line number
Diff line number
Diff line change
@@ -55,15 +55,15 @@ function parse_bool_constraint(_error, bool_val::BOOL_VALS, lhs, rhs)
55
55
lhs =transform_binary_expr(lhs)
56
56
57
57
lhs_vectorized, lhs_parsecode, lhs_buildcall =
58
-
JuMP.parse_constraint_expr(_error, lhs)
58
+
JuMP.parse_constraint(_error, lhs)
59
59
60
60
if lhs_vectorized
61
61
_error("`$(lhs)` should be non vectorized. There is currently no vectorized support for `and` constraints. Please open an issue at ConstraintSolver.jl")
62
62
end
63
63
64
64
rhs =transform_binary_expr(rhs)
65
65
rhs_vectorized, rhs_parsecode, rhs_buildcall =
66
-
JuMP.parse_constraint_expr(_error1, rhs)
66
+
JuMP.parse_constraint(_error1, rhs)
67
67
68
68
if rhs_vectorized
69
69
_error("`$(rhs)` should be non vectorized. There is currently no vectorized support for `and` constraints. Please open an issue at ConstraintSolver.jl")
@@ -91,8 +91,8 @@ function JuMP.parse_constraint_head(_error::Function, bool_val::BOOL_VALS, lhs,
0 commit comments