From 8108f7c53c80c7dc0a719e97f0e8418df8cc71a6 Mon Sep 17 00:00:00 2001 From: odow Date: Wed, 3 Apr 2024 15:15:21 +1300 Subject: [PATCH] Update --- src/MOI/MOI_wrapper.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MOI/MOI_wrapper.jl b/src/MOI/MOI_wrapper.jl index 47e0a53e..5de27829 100644 --- a/src/MOI/MOI_wrapper.jl +++ b/src/MOI/MOI_wrapper.jl @@ -2092,6 +2092,7 @@ function _info( F<:Union{ MOI.ScalarAffineFunction{Float64}, MOI.ScalarQuadraticFunction{Float64}, + MOI.ScalarNonlinearFunction, MOI.VectorAffineFunction{Float64}, MOI.VectorOfVariables, }, @@ -2119,7 +2120,7 @@ function MOI.is_valid( if info === nothing return false end - return info.type in _function_enum(F) && typeof(info.set) == S + return info.type in _function_enums(F) && typeof(info.set) == S end function MOI.add_constraint(