Skip to content

Commit

Permalink
Update nlp.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Aug 26, 2024
1 parent 912ee7c commit f1b9872
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions lib/OptimizationMOI/src/nlp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -289,24 +289,24 @@ function MOI.eval_constraint_jacobian(evaluator::MOIOptimizationNLPEvaluator, j,
return
end

function MOI.eval_constraint_jacobian_product(evaluator::Evaluator, y, x, w)
start = time()
MOI.eval_constraint_jacobian_product(evaluator.backend, y, x, w)
evaluator.eval_constraint_jacobian_timer += time() - start
return
end
# function MOI.eval_constraint_jacobian_product(evaluator::Evaluator, y, x, w)
# start = time()
# MOI.eval_constraint_jacobian_product(evaluator.backend, y, x, w)
# evaluator.eval_constraint_jacobian_timer += time() - start
# return
# end

function MOI.eval_constraint_jacobian_transpose_product(
evaluator::Evaluator,
y,
x,
w,
)
start = time()
MOI.eval_constraint_jacobian_transpose_product(evaluator.backend, y, x, w)
evaluator.eval_constraint_jacobian_timer += time() - start
return
end
# function MOI.eval_constraint_jacobian_transpose_product(
# evaluator::Evaluator,
# y,
# x,
# w,
# )
# start = time()
# MOI.eval_constraint_jacobian_transpose_product(evaluator.backend, y, x, w)
# evaluator.eval_constraint_jacobian_timer += time() - start
# return
# end

function MOI.hessian_lagrangian_structure(evaluator::MOIOptimizationNLPEvaluator)
lagh = evaluator.f.lag_h !== nothing
Expand Down

0 comments on commit f1b9872

Please sign in to comment.