Skip to content

Commit

Permalink
Merge pull request SciML#643 from ParasPuneetSingh/master
Browse files Browse the repository at this point in the history
Added trait for checking derivative requirement SciML#711
  • Loading branch information
Vaibhavdixit02 authored Mar 11, 2024
2 parents 0974769 + 9fbff32 commit 4fdae7e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions src/alg_traits.jl
Original file line number Diff line number Diff line change
@@ -118,6 +118,46 @@ Defaults to false.
"""
requiresconstraints(opt) = false

"""
requiresgradient(opt)
Trait declaration for whether an optimizer
requires gradient in `instantiate_function`.
Defaults to false.
"""
requiresgradient(opt) = false

"""
requireshessian(opt)
Trait declaration for whether an optimizer
requires hessian in `instantiate_function`.
Defaults to false.
"""
requireshessian(opt) = false

"""
requiresconsjac(opt)
Trait declaration for whether an optimizer
requires cons_j in `instantiate_function`, that is, does the optimizer require a constant Jacobian.
Defaults to false.
"""
requiresconsjac(opt) = false

"""
requiresconshess(opt)
Trait declaration for whether an optimizer
requires cons_h in `instantiate_function`, that is, does the optimizer require a constant hessian.
Defaults to false.
"""
requiresconshess(opt) = false

"""
allowscallback(opt)

0 comments on commit 4fdae7e

Please sign in to comment.