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 7777const SOCtoPSD{T,OT<: MOI.ModelLike } =
7878 SingleBridgeOptimizer{SOCtoPSDBridge{T},OT}
7979
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+
8085function concrete_bridge_type (
8186 :: Type{<:SOCtoPSDBridge{T}} ,
8287 G:: Type{<:MOI.AbstractVectorFunction} ,
186191const RSOCtoPSD{T,OT<: MOI.ModelLike } =
187192 SingleBridgeOptimizer{RSOCtoPSDBridge{T},OT}
188193
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+
189199function concrete_bridge_type (
190200 :: Type{<:RSOCtoPSDBridge{T}} ,
191201 G:: Type{<:MOI.AbstractVectorFunction} ,
You can’t perform that action at this time.
0 commit comments