Skip to content

Commit

Permalink
Remove useless evaluation at zero (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat authored Jul 15, 2021
1 parent 8840b7d commit 04274bc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,6 @@ function MOI.optimize!(model::Optimizer)
Jac_IJ = num_nl_constraints > 0 ? MOI.jacobian_structure(model.nlp_data.evaluator) : Tuple{Int,Int}[]
Jac_val = zeros(length(Jac_IJ))
g_vec = zeros(num_nl_constraints)
MOI.eval_constraint_jacobian(model.nlp_data.evaluator, Jac_val, zeros(num_variables))

num_eq = num_nl_eq + length(model.linear_eq_constraints) + length(model.quadratic_eq_constraints)

Expand Down

0 comments on commit 04274bc

Please sign in to comment.