Skip to content

Commit

Permalink
Add correct dispatches for NonlinearLeastSquaresProblem
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 8, 2023
1 parent 22c9bfc commit b7dc21d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,12 @@ function get_concrete_problem(prob::NonlinearProblem, isadapt; kwargs...)
remake(prob; u0 = u0)
end

function get_concrete_problem(prob::NonlinearLeastSquaresProblem, isadapt; kwargs...)
u0 = get_concrete_u0(prob, isadapt, nothing, kwargs)
u0 = promote_u0(u0, prob.p, nothing)
remake(prob; u0 = u0)
end

function get_concrete_problem(prob::AbstractEnsembleProblem, isadapt; kwargs...)
prob
end
Expand Down

0 comments on commit b7dc21d

Please sign in to comment.