File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/Bridges/Constraint/bridges Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 77
77
const SOCtoPSD{T,OT<: MOI.ModelLike } =
78
78
SingleBridgeOptimizer{SOCtoPSDBridge{T},OT}
79
79
80
+ # This bridge destorys a lot of structure and adding PSD variables is almost
81
+ # always undesirable. We give this bridge an arbitrarily hight cost so that it
82
+ # is used only if necessary.
83
+ bridging_cost (:: Type{<:SOCtoPSDBridge} ) = 10.0
84
+
80
85
function concrete_bridge_type (
81
86
:: Type{<:SOCtoPSDBridge{T}} ,
82
87
G:: Type{<:MOI.AbstractVectorFunction} ,
186
191
const RSOCtoPSD{T,OT<: MOI.ModelLike } =
187
192
SingleBridgeOptimizer{RSOCtoPSDBridge{T},OT}
188
193
194
+ # This bridge destorys a lot of structure and adding PSD variables is almost
195
+ # always undesirable. We give this bridge an arbitrarily hight cost so that it
196
+ # is used only if necessary.
197
+ bridging_cost (:: Type{<:RSOCtoPSDBridge} ) = 10.0
198
+
189
199
function concrete_bridge_type (
190
200
:: Type{<:RSOCtoPSDBridge{T}} ,
191
201
G:: Type{<:MOI.AbstractVectorFunction} ,
You can’t perform that action at this time.
0 commit comments