@@ -252,12 +252,21 @@ end
252
252
253
253
# # Defaults
254
254
255
- function SciMLBase. __init (prob:: NonlinearProblem{uType, iip} , alg:: Nothing , args... ;
256
- kwargs... ) where {uType, iip}
257
- SciMLBase. __init (prob, FastShortcutNonlinearPolyalg (), args... ; kwargs... )
255
+ function SciMLBase. __init (prob:: NonlinearProblem , :: Nothing , args... ; kwargs... )
256
+ return SciMLBase. __init (prob, FastShortcutNonlinearPolyalg (), args... ; kwargs... )
258
257
end
259
258
260
- function SciMLBase. __solve (prob:: NonlinearProblem{uType, iip} , alg:: Nothing , args... ;
261
- kwargs... ) where {uType, iip}
262
- SciMLBase. __solve (prob, FastShortcutNonlinearPolyalg (), args... ; kwargs... )
259
+ function SciMLBase. __solve (prob:: NonlinearProblem , :: Nothing , args... ; kwargs... )
260
+ return SciMLBase. __solve (prob, FastShortcutNonlinearPolyalg (), args... ; kwargs... )
261
+ end
262
+
263
+ # FIXME : We default to using LM currently. But once we have line searches for GN implemented
264
+ # we should default to a polyalgorithm.
265
+ function SciMLBase. __init (prob:: NonlinearLeastSquaresProblem , :: Nothing , args... ; kwargs... )
266
+ return SciMLBase. __init (prob, LevenbergMarquardt (), args... ; kwargs... )
267
+ end
268
+
269
+ function SciMLBase. __solve (prob:: NonlinearLeastSquaresProblem , :: Nothing , args... ;
270
+ kwargs... )
271
+ return SciMLBase. __solve (prob, LevenbergMarquardt (), args... ; kwargs... )
263
272
end
0 commit comments