Skip to content

Commit

Permalink
🤖 Format .jl files
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Jul 17, 2023
1 parent cf8f0f4 commit a327c1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,10 @@ end
function _nlp_sync!(model::JuMP.Model)
# The nlp model of the backend is not kept in sync, so re-set it here as in `JuMP.optimize!`
evaluator = MOI.Nonlinear.Evaluator(
# `force = true` is needed if there is not NL objective or constraint
JuMP.nonlinear_model(model, force = true),
MOI.Nonlinear.SparseReverseMode(),
JuMP.index.(JuMP.all_variables(model)),
# `force = true` is needed if there is not NL objective or constraint
JuMP.nonlinear_model(model, force = true),
MOI.Nonlinear.SparseReverseMode(),
JuMP.index.(JuMP.all_variables(model)),
)
MOI.set(model, MOI.NLPBlock(), MOI.NLPBlockData(evaluator))
end

0 comments on commit a327c1a

Please sign in to comment.