Skip to content

Commit

Permalink
Merge pull request #933 from avik-pal/ap/nls
Browse files Browse the repository at this point in the history
Add  NonlinearLeastSquaresProblem dispatches
  • Loading branch information
ChrisRackauckas authored Oct 9, 2023
2 parents 22c9bfc + 44f93f4 commit 56973c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DiffEqBase"
uuid = "2b5f629d-d688-5b77-993f-72d75c75574e"
authors = ["Chris Rackauckas <[email protected]>"]
version = "6.132.2"
version = "6.133.0"

[deps]
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
Expand Down Expand Up @@ -80,7 +80,7 @@ PrecompileTools = "1"
RecursiveArrayTools = "2"
Reexport = "1.0"
Requires = "1.0"
SciMLBase = "2.0.1"
SciMLBase = "2.4.0"
SciMLOperators = "0.2, 0.3"
Setfield = "0.8, 1"
Static = "0.7, 0.8"
Expand Down
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 56973c1

Please sign in to comment.