diff --git a/src/problems/bvp_problems.jl b/src/problems/bvp_problems.jl index 4d4b7a0ff0..af95a0839f 100644 --- a/src/problems/bvp_problems.jl +++ b/src/problems/bvp_problems.jl @@ -176,6 +176,16 @@ struct BVProblem{uType, tType, isinplace, nlls, P, F, PT, K} <: end end +""" + isnonlinearleastsquares(prob::BVProblem) + +Returns `true` if the underlying problem is a nonlinear least squares problem. +""" +@inline function isnonlinearleastsquares(::BVProblem{uType, + tType, iip, nlls}) where {uType, tType, iip, nlls} + return nlls +end + struct FakeSolutionObject{U} u::U end