Skip to content

Commit 4af130f

Browse files
committed
Fix MA tests
1 parent 9a699e7 commit 4af130f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Utilities/mutable_arithmetics.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,3 +280,8 @@ function MA.mutable_operate!(op::MA.AddSubMul, f::MOI.ScalarQuadraticFunction{T}
280280
return MA.mutable_operate!(MA.add_sub_op(op), f, *(args...))
281281
end
282282
end
283+
# `args` could be `(x', a)` where `a` is a vector of constants and `x` a vector
284+
# of affine functions for instance.
285+
function MA.mutable_operate!(op::MA.AddSubMul, f::TypedScalarLike, args::Vararg{Any, N}) where N
286+
return MA.mutable_operate!(MA.add_sub_op(op), f, *(args...))
287+
end

0 commit comments

Comments
 (0)