Skip to content

Commit

Permalink
Update OptimizationSpeedMapping.jl
Browse files Browse the repository at this point in the history
Set trait requiresgradient to true.
  • Loading branch information
ParasPuneetSingh authored Mar 13, 2024
1 parent 64e16ec commit 3ae278f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ struct SpeedMappingOpt end
SciMLBase.allowsbounds(::SpeedMappingOpt) = true
SciMLBase.allowscallback(::SpeedMappingOpt) = false
SciMLBase.supports_opt_cache_interface(opt::SpeedMappingOpt) = true
SciMLBase.requiresgradient(opt::SpeedMappingOpt) = true

function __map_optimizer_args(cache::OptimizationCache, opt::SpeedMappingOpt;
callback = nothing,
Expand Down

0 comments on commit 3ae278f

Please sign in to comment.