From 59e475115d33ce6d5ff9d481b45b7ed9071b10c9 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Tue, 10 Dec 2024 16:55:31 +1300 Subject: [PATCH] Update test/MOI_wrapper.jl --- 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 b8593fa56..66f8c7dd5 100644 --- a/test/MOI_wrapper.jl +++ b/test/MOI_wrapper.jl @@ -151,7 +151,7 @@ function test_not_dcp_objective_min() ) x = MOI.add_variable(model) g = MOI.ScalarNonlinearFunction(:^, Any[x, 2]) - f = MOI.ScalarNonlinearFunction(:-, Any[f]) + f = MOI.ScalarNonlinearFunction(:-, Any[g]) MOI.set(model, MOI.ObjectiveSense(), MOI.MIN_SENSE) attr = MOI.ObjectiveFunction{typeof(f)}() MOI.set(model, attr, f)