Skip to content

Commit

Permalink
Fix measure call
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed Jun 1, 2018
1 parent 2e16191 commit 871567a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/default_methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function ZeroConstraint(zero_constraints::Vector{JuMP.ConstraintRef{JuMP.Model,
ZeroConstraint{MT, MVT, JC}(zero_constraints, x)
end

JuMP.getdual(c::ZeroConstraint) = measure(getdual.(c.zero_constraints), c.x)
JuMP.getdual(c::ZeroConstraint) = MultivariateMoments.measure(getdual.(c.zero_constraints), c.x)

function addpolyconstraint!(m::JuMP.Model, p, s::ZeroPoly, domain::FullSpace)
constraints = JuMP.constructconstraint!.(coefficients(p), :(==))
Expand Down

0 comments on commit 871567a

Please sign in to comment.