Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Apr 3, 2024
1 parent b34a6c8 commit cfe6349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MOI/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2110,16 +2110,16 @@ function MOI.is_valid(
F<:Union{
MOI.ScalarAffineFunction{Float64},
MOI.ScalarQuadraticFunction{Float64},
MOI.ScalarNonlinearFunction,
MOI.VectorAffineFunction{Float64},
MOI.VectorOfVariables,
},
}
info = get(model.affine_constraint_info, c.value, nothing)
if info === nothing
return false
else
return typeof(info.set) == S
end
return info.type in _function_enum(F) && typeof(info.set) == S
end

function MOI.add_constraint(
Expand Down

0 comments on commit cfe6349

Please sign in to comment.