Skip to content

Commit 6c9977e

Browse files
SebastianM-Cclaude
andcommitted
add requiresconshess for MadNLPOptimizer
Co-authored-by: Claude <[email protected]>
1 parent 386dde0 commit 6c9977e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/OptimizationMadNLP/src/OptimizationMadNLP.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ end
265265
function SciMLBase.requireslagh(opt::MadNLPOptimizer)
266266
opt.hessian_approximation === MadNLP.ExactHessian
267267
end
268+
function SciMLBase.requiresconshess(opt::MadNLPOptimizer)
269+
opt.hessian_approximation === MadNLP.ExactHessian
270+
end
268271
function SciMLBase.allowsconsvjp(opt::MadNLPOptimizer)
269272
true
270273
end

0 commit comments

Comments
 (0)