Skip to content

Commit b7dc21d

Browse files
committed
Add correct dispatches for NonlinearLeastSquaresProblem
1 parent 22c9bfc commit b7dc21d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/solve.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,12 @@ function get_concrete_problem(prob::NonlinearProblem, isadapt; kwargs...)
10981098
remake(prob; u0 = u0)
10991099
end
11001100

1101+
function get_concrete_problem(prob::NonlinearLeastSquaresProblem, isadapt; kwargs...)
1102+
u0 = get_concrete_u0(prob, isadapt, nothing, kwargs)
1103+
u0 = promote_u0(u0, prob.p, nothing)
1104+
remake(prob; u0 = u0)
1105+
end
1106+
11011107
function get_concrete_problem(prob::AbstractEnsembleProblem, isadapt; kwargs...)
11021108
prob
11031109
end

0 commit comments

Comments
 (0)