Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 7ad97f6

Browse files
committed
simple fraction with forward slash instead of backslash (for otherwise rather subtle)
1 parent 32f1809 commit 7ad97f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trustRegion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function SciMLBase.__solve(prob::NonlinearProblem,
147147

148148
# Compute the ratio of the actual to predicted reduction.
149149
model = -' * g + 0.5 * δ' * H * δ)
150-
r = model \ (fₖ - fₖ₊₁)
150+
r = (fₖ - fₖ₊₁) / model
151151

152152
# Update the trust region radius.
153153
if r < η₂

0 commit comments

Comments
 (0)