We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7643ccf commit 2f3366eCopy full SHA for 2f3366e
lib/OptimizationOptimJL/src/OptimizationOptimJL.jl
@@ -421,7 +421,7 @@ function SciMLBase.__solve(cache::OptimizationCache{
421
lb = cache.lb === nothing ? [] : cache.lb
422
ub = cache.ub === nothing ? [] : cache.ub
423
424
- optim_fc = if SciMLBase.requireshessian(opt)
+ optim_fc = if SciMLBase.requireshessian(cache.opt)
425
if cache.f.cons !== nothing
426
Optim.TwiceDifferentiableConstraints(cache.f.cons, cache.f.cons_j,
427
cons_hl!,
0 commit comments