Skip to content

Conversation

odow
Copy link
Member

@odow odow commented Jan 8, 2024

Exact test is also here:

function test_canonical_constraint_function()
inner = MOI.Utilities.UniversalFallback(MOI.Utilities.Model{Float64}())
model = MOI.Bridges.Constraint.ScalarFunctionize{Float64}(inner)
x = MOI.add_variable(model)
ci = MOI.add_constraint(model, x, MOI.GreaterThan(0.0))
@test MOI.get(model, MOI.CanonicalConstraintFunction(), ci) x
return
end

@odow odow merged commit 8ddc767 into master Jan 8, 2024
@odow odow deleted the od/rm-duplicated-test branch January 8, 2024 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant