Skip to content

Commit 967c9c7

Browse files
committed
Default supports
1 parent 6cfd6cb commit 967c9c7

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

src/Bridges/Variable/bridges/rsoc_soc.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,3 @@ function MOI.Bridges.inverse_adjoint_map_function(
9393
)
9494
return MOI.Bridges.map_function(BT, func)
9595
end
96-
97-
function MOI.supports(
98-
::MOI.ModelLike,
99-
::MOI.VariablePrimalStart,
100-
::Type{<:RSOCtoSOCBridge},
101-
)
102-
return false
103-
end

src/Bridges/Variable/bridges/soc_rsoc.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,3 @@ function MOI.Bridges.inverse_adjoint_map_function(
106106
)
107107
return MOI.Bridges.map_function(BT, func)
108108
end
109-
110-
function MOI.supports(
111-
::MOI.ModelLike,
112-
::MOI.VariablePrimalStart,
113-
::Type{<:SOCtoRSOCBridge},
114-
)
115-
return false
116-
end

src/Bridges/bridge.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,23 @@ function MOI.get(
102102
return MOI.ConstraintIndex{F,S}[]
103103
end
104104

105+
"""
106+
MOI.supports(
107+
model::MOI.ModelLike,
108+
attr::MOI.AbstractVariableAttribute,
109+
BT::Type{<:AbstractBridge},
110+
)
111+
112+
Return a `Bool` indicating whether `BT` supports setting `attr` to `model`.
113+
"""
114+
function MOI.supports(
115+
::MOI.ModelLike,
116+
::MOI.AbstractVariableAttribute,
117+
::Type{<:AbstractBridge},
118+
)
119+
return false
120+
end
121+
105122
"""
106123
MOI.supports(
107124
model::MOI.ModelLike,

0 commit comments

Comments
 (0)