Skip to content

Commit

Permalink
Update src/Utilities/model.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Benoît Legat <[email protected]>
  • Loading branch information
odow and blegat authored Oct 30, 2024
1 parent 73cec03 commit 44fdb61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utilities/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ function MOI.add_constraint(
) where {S<:MOI.AbstractScalarSet}
# We check supports_constraint here because it is a common practice for
# AbstractModels to declare that they do not support particular constraints,
# evenn though the underlying `.constraints` object does. See, for example,
# even though the underlying `.constraints` object does. See, for example,
# the various models in MOI.FileFormats.
if !MOI.supports_constraint(model, MOI.VariableIndex, S)
throw(MOI.UnsupportedConstraint{MOI.VariableIndex,S}())
Expand Down

0 comments on commit 44fdb61

Please sign in to comment.