Skip to content

Commit ede681f

Browse files
committed
Update
1 parent 61a5ec7 commit ede681f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/Bridges/Objective/FunctionConversionBridge.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ struct VariableDifference <: MOI.AbstractScalarFunction
2828
y::MOI.VariableIndex
2929
end
3030

31+
function MOI.Utilities.is_coefficient_type(
32+
::Type{VariableDifference},
33+
::Type{T},
34+
) where {T}
35+
return true
36+
end
37+
3138
function MOI.Bridges.Constraint.conversion_cost(
3239
::Type{<:MOI.ScalarAffineFunction},
3340
::Type{VariableDifference},

0 commit comments

Comments
 (0)