Skip to content

Commit 56973c1

Browse files
Merge pull request #933 from avik-pal/ap/nls
Add NonlinearLeastSquaresProblem dispatches
2 parents 22c9bfc + 44f93f4 commit 56973c1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DiffEqBase"
22
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
33
authors = ["Chris Rackauckas <[email protected]>"]
4-
version = "6.132.2"
4+
version = "6.133.0"
55

66
[deps]
77
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
@@ -80,7 +80,7 @@ PrecompileTools = "1"
8080
RecursiveArrayTools = "2"
8181
Reexport = "1.0"
8282
Requires = "1.0"
83-
SciMLBase = "2.0.1"
83+
SciMLBase = "2.4.0"
8484
SciMLOperators = "0.2, 0.3"
8585
Setfield = "0.8, 1"
8686
Static = "0.7, 0.8"

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)