Skip to content

Commit

Permalink
Add missing promote_operation method (#3730)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Apr 15, 2024
1 parent 3272815 commit 5ce3e7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/mutable_arithmetics.jl
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,14 @@ function _MA.promote_operation(
return GenericQuadExpr{T,V}
end

function _MA.promote_operation(
::typeof(*),
::Type{GenericAffExpr{T,V}},
::Type{GenericAffExpr{S,V}},
) where {T,S,V<:AbstractVariableRef}
return GenericQuadExpr{_MA.promote_operation(*, T, S),V}
end

function _MA.isequal_canonical(x::T, y::T) where {T<:AbstractJuMPScalar}
return isequal_canonical(x, y)
end
Expand Down

0 comments on commit 5ce3e7b

Please sign in to comment.