@@ -3271,7 +3271,27 @@ end
32713271
32723272attribute_value_type (:: DualStatus ) = ResultStatusCode
32733273
3274- # Cost of bridging constrained variable in S
3274+ """
3275+ VariableBridgingCost{S<:AbstractSet}()::Float64
3276+
3277+ An [`AbstractModelAttribute`](@ref) for the cost or bridging a variable in a set
3278+ of type `S`.
3279+
3280+ ## Implementation
3281+
3282+ There is a default fallback which returns `0.0` if
3283+ [`supports_add_constrained_variable`](@ref) or
3284+ [`supports_add_constrained_variables`](@ref) is `true` and `Inf` if `false`.
3285+
3286+ Therefore, you should implement this method only if your optimizer does
3287+ something unusual.
3288+
3289+ Optimizers should implement the following methods:
3290+ ```
3291+ MOI.get(::Optimizer, ::MOI.VariableBridgingCost{S})::Float64
3292+ ```
3293+ They should not implement [`set`](@ref) or [`supports`](@ref).
3294+ """
32753295struct VariableBridgingCost{S<: AbstractSet } <: AbstractModelAttribute end
32763296
32773297attribute_value_type (:: VariableBridgingCost ) = Float64
@@ -3290,7 +3310,26 @@ function get_fallback(
32903310 return supports_add_constrained_variables (model, S) ? 0.0 : Inf
32913311end
32923312
3293- # Cost of bridging F-in-S constraints
3313+ """
3314+ ConstraintBridgingCost{F<:AbstractFunction,S<:AbstractSet}()::Float64
3315+
3316+ An [`AbstractModelAttribute`](@ref) for the cost or bridging a constraint of
3317+ type `F` in `S`.
3318+
3319+ ## Implementation
3320+
3321+ There is a default fallback which returns `0.0` if [`supports_constraint`](@ref)
3322+ is `true` and `Inf` if `false`.
3323+
3324+ Therefore, you should implement this method only if your optimizer does
3325+ something unusual.
3326+
3327+ Optimizers should implement the following methods:
3328+ ```
3329+ MOI.get(::Optimizer, ::MOI.ConstraintBridgingCost{F,S})::Float64
3330+ ```
3331+ They should not implement [`set`](@ref) or [`supports`](@ref).
3332+ """
32943333struct ConstraintBridgingCost{F<: AbstractFunction ,S<: AbstractSet } < :
32953334 AbstractModelAttribute end
32963335
0 commit comments