diff --git a/Project.toml b/Project.toml index 96fef6281..7371d74c4 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "SciMLBase" uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462" authors = ["Chris Rackauckas and contributors"] -version = "2.50.1" +version = "2.50.2" [deps] ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b" diff --git a/src/alg_traits.jl b/src/alg_traits.jl index 95667cdb7..a82fbb3d9 100644 --- a/src/alg_traits.jl +++ b/src/alg_traits.jl @@ -136,6 +136,17 @@ Defaults to false. """ requiresgradient(opt) = false +""" + allowsfg(opt) + +Trait declaration for whether an optimizer +allows combined function and gradient evaluation +in `instantiate_function`. + +Defaults to false. +""" +allowsfg(opt) = false + """ requireshessian(opt) @@ -146,26 +157,72 @@ Defaults to false. """ requireshessian(opt) = false +""" + allowsfgh(opt) + +Trait declaration for whether an optimizer +allows combined function, gradient, and hessian +evaluation in `instantiate_function`. + +Defaults to false. +""" +allowsfgh(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. +requires `cons_j` in `instantiate_function`, that is, +does the optimizer require a constraints' Jacobian. Defaults to false. """ requiresconsjac(opt) = false +""" + allowsconsjvp(opt) + +Trait declaration for whether an optimizer +allows constraint's jacobian vector product +in `instantiate_function`. + +Defaults to false. +""" +allowsconsjvp(opt) = false + +""" + allowsconsvjp(opt) + +Trait declaration for whether an optimizer +allows constraint's vector jacobian product +in `instantiate_function`. + +Defaults to false. +""" +allowsconsvjp(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. +requires cons_h in `instantiate_function`, that is, +does the optimizer require constraints' hessian. Defaults to false. """ requiresconshess(opt) = false +""" + requireslagh(opt) + +Trait declaration for whether an optimizer +requires lag_h in `instantiate_function`, that is, +does the optimizer require lagrangian hessian. + +Defaults to false. +""" +requireslagh(opt) = false + """ allowscallback(opt)