@@ -107,8 +107,10 @@ function supports_constrained_variable(
107107end
108108
109109"""
110- added_constrained_variable_types(BT::Type{<:MOI.Bridges.Variable.AbstractBridge},
111- S::Type{<:MOI.AbstractSet})
110+ added_constrained_variable_types(
111+ BT::Type{<:MOI.Bridges.Variable.AbstractBridge},
112+ S::Type{<:MOI.AbstractSet},
113+ )
112114
113115Return a list of the types of constrained variables that bridges of type `BT`
114116add for bridging constrained variabled in `S`. This falls back to
@@ -120,14 +122,17 @@ so bridges should not implement this.
120122As a variable in [`MathOptInterface.GreaterThan`](@ref) is bridged into
121123variables in [`MathOptInterface.Nonnegatives`](@ref) by the
122124[`VectorizeBridge`](@ref):
123- ```jldoctest
124- BT = MOI.Bridges.Variable.VectorizeBridge{Float64}
125- S = MOI.GreaterThan{Float64}
126- MOI.Bridges.added_constrained_variable_types(BT, S)
125+
126+ ```jldoctest; setup=:(using MathOptInterface; const MOI = MathOptInterface)
127+ MOI.Bridges.added_constrained_variable_types(
128+ MOI.Bridges.Variable.VectorizeBridge{Float64},
129+ MOI.GreaterThan{Float64},
130+ )
127131
128132# output
129133
130- [(MOI.Nonnegatives,)]
134+ 1-element Array{Tuple{DataType},1}:
135+ (MathOptInterface.Nonnegatives,)
131136```
132137"""
133138function MOIB. added_constrained_variable_types (
@@ -138,8 +143,10 @@ function MOIB.added_constrained_variable_types(
138143end
139144
140145"""
141- added_constraint_types(BT::Type{<:MOI.Bridges.Variable.AbstractBridge},
142- S::Type{<:MOI.AbstractSet})
146+ added_constraint_types(
147+ BT::Type{<:MOI.Bridges.Variable.AbstractBridge},
148+ S::Type{<:MOI.AbstractSet},
149+ )
143150
144151Return a list of the types of constraints that bridges of type `BT` add for
145152for bridging constrained variabled in `S`. This falls back to
@@ -154,14 +161,18 @@ In addition to creating variables in
154161[`MathOptInterface.SingleVariable`](@ref)-in-[`MathOptInterface.EqualTo`](@ref) and
155162[`MathOptInterface.ScalarAffineFunction`](@ref)-in-[`MathOptInterface.EqualTo`](@ref)
156163constraints:
157- ```jldoctest
158- BT = MOI.Bridges.Variable.RSOCtoPSDBridge{Float64}
159- S = MOI.RotatedSecondOrderCone{
160- MOI.Bridges.added_constraint_types(BT, S)
164+
165+ ```jldoctest; setup=:(using MathOptInterface; const MOI = MathOptInterface)
166+ MOI.Bridges.added_constraint_types(
167+ MOI.Bridges.Variable.RSOCtoPSDBridge{Float64},
168+ MOI.RotatedSecondOrderCone,
169+ )
161170
162171# output
163172
164- [(MOI.SingleVariable, MOI.EqualTo{Float64}), (MOI.ScalarAffineFunction{Float64}, MOI.EqualTo{Float64})]
173+ 2-element Array{Tuple{DataType,DataType},1}:
174+ (MathOptInterface.SingleVariable, MathOptInterface.EqualTo{Float64})
175+ (MathOptInterface.ScalarAffineFunction{Float64}, MathOptInterface.EqualTo{Float64})
165176```
166177"""
167178function MOIB. added_constraint_types (
@@ -172,8 +183,10 @@ function MOIB.added_constraint_types(
172183end
173184
174185"""
175- concrete_bridge_type(BT::Type{<:AbstractBridge},
176- S::Type{<:MOI.AbstractSet})::DataType
186+ concrete_bridge_type(
187+ BT::Type{<:AbstractBridge},
188+ S::Type{<:MOI.AbstractSet},
189+ )::DataType
177190
178191Return the concrete type of the bridge supporting variables in `S` constraints.
179192This function can only be called if `MOI.supports_constrained_variable(BT, S)`
@@ -183,15 +196,17 @@ is `true`.
183196
184197As a variable in [`MathOptInterface.GreaterThan`](@ref) is bridged into
185198variables in [`MathOptInterface.Nonnegatives`](@ref) by the
186- [`VectorizeBridge`](@ref),
187- ```jldoctest
188- BT = MOI.Bridges.Variable.VectorizeBridge{Float64}
189- S = MOI.GreaterThan{Float64}
190- MOI.Bridges.Variable.concrete_bridge_type(BT, S)
199+ [`VectorizeBridge`](@ref):
200+
201+ ```jldoctest; setup=:(using MathOptInterface; const MOI = MathOptInterface)
202+ MOI.Bridges.Variable.concrete_bridge_type(
203+ MOI.Bridges.Variable.VectorizeBridge{Float64},
204+ MOI.GreaterThan{Float64},
205+ )
191206
192207# output
193208
194- MOI .Bridges.Variable.VectorizeBridge{Float64,MOI .Nonnegatives}
209+ MathOptInterface .Bridges.Variable.VectorizeBridge{Float64,MathOptInterface .Nonnegatives}
195210```
196211"""
197212function concrete_bridge_type (bridge_type:: DataType , :: Type{<:MOI.AbstractSet} )
0 commit comments