Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jan 3, 2024
1 parent 45ab82e commit 66c7ab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ function test_ad_backend()
MOI.set(model, attr, MOI.Nonlinear.ExprGraphOnly())
@test MOI.get(model, attr) == MOI.Nonlinear.ExprGraphOnly()
x = MOI.add_variable(model)
f = (x - 1.0)^2
f = MOI.ScalarNonlinearFunction(:^, Any[x, 4])
MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE)
MOI.set(model, MOI.ObjectiveFunction{typeof(f)}(), f)
@test_throws ErrorException MOI.optimize!(model)
Expand Down

0 comments on commit 66c7ab3

Please sign in to comment.