Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
palday committed May 20, 2022
1 parent 2a1ccc4 commit 70d2537
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/linearmixedmodel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,11 @@ function fit!(
val = try
objective(updateL!(setθ!(m, x)))
catch ex
# This can happen when the optimizer drifts into an area where
# there isn't enough shrinkage. Why finitial? Generally, it will
# be the (near) worst case scenario value, so the optimizer won't
# view it as an optimum. Using Inf messes up the quadratic
# approximation in BOBYQA.
ex isa PosDefException || rethrow()
iter == 0 && rethrow()
m.optsum.finitial
Expand Down

0 comments on commit 70d2537

Please sign in to comment.