Skip to content

Commit

Permalink
Update MOI_wrapper.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored Apr 3, 2024
1 parent 19f582f commit 7d78822
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/MOI/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4842,13 +4842,7 @@ function MOI.add_constraint(
reverse!(value)
push!(type, Lib.XPRS_TOK_EOF)
push!(value, 0.0)
@checked Lib.XPRSnlpchgformula(
model.inner,
row - 1,
parsed,
type,
value,
)
@checked Lib.XPRSnlpchgformula(model.inner, row - 1, parsed, type, value)
model.has_nlp_constraints = true
return MOI.ConstraintIndex{typeof(f),typeof(s)}(model.last_constraint_index)
end
Expand Down

0 comments on commit 7d78822

Please sign in to comment.