Skip to content

Commit

Permalink
Merge pull request #432 from SciML/ChrisRackauckas-patch-1
Browse files Browse the repository at this point in the history
Add missing prob kwargs in Optimization calls
  • Loading branch information
ChrisRackauckas authored Apr 9, 2023
2 parents bdcfffb + 0b06ae5 commit be26e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ See also [`solve(prob::OptimizationProblem, alg, args...; kwargs...)`](@ref)
"""
function init(prob::OptimizationProblem, alg, args...; kwargs...)::AbstractOptimizationCache
_check_opt_alg(prob::OptimizationProblem, alg; kwargs...)
cache = __init(prob, alg, args...; kwargs...)
cache = __init(prob, alg, args...; prob.kwargs..., kwargs...)
return cache
end

Expand Down

0 comments on commit be26e21

Please sign in to comment.