Skip to content

Commit

Permalink
Merge 4e8d4ee into 24bb5a1
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jan 16, 2020
2 parents 24bb5a1 + 4e8d4ee commit 6fb1a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zero_polynomial_in_algebraic_set_bridge.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function MOIB.Constraint.bridge_constraint(
s::ZeroPolynomialSet{<:AbstractAlgebraicSet}
) where {T, F, BT, DT, MT, MVT}

p = polynomial(collect(MOI.Utilities.eachscalar(f)), s.monomials)
p = polynomial(MOI.Utilities.scalarize(f), s.monomials)
# As `*(::MOI.ScalarAffineFunction{T}, ::S)` is only defined if `S == T`, we
# need to call `changecoefficienttype`. This is critical since `T` is
# `Float64` when used with JuMP and the coefficient type is often `Int` with
Expand Down

0 comments on commit 6fb1a42

Please sign in to comment.