From 66c7ab3fd05830e59ce6b8fef99b639d80d35de5 Mon Sep 17 00:00:00 2001 From: odow Date: Thu, 4 Jan 2024 12:52:38 +1300 Subject: [PATCH] Update --- test/MOI_wrapper.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/MOI_wrapper.jl b/test/MOI_wrapper.jl index 7a1b6bd..0416a6a 100644 --- a/test/MOI_wrapper.jl +++ b/test/MOI_wrapper.jl @@ -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)