Skip to content

Commit

Permalink
fixed files form Math #24
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 651f7d3 commit b408785
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ protected UnivariatePointValuePair doOptimize() {

if (checker != null) {
if (checker.converged(iter, previous, current)) {
return current;
return best(current, previous, isMinim);
}
}

Expand Down Expand Up @@ -264,7 +264,7 @@ protected UnivariatePointValuePair doOptimize() {
}
}
} else { // Default termination (Brent's criterion).
return current;
return best(current, previous, isMinim);
}
++iter;
}
Expand Down

0 comments on commit b408785

Please sign in to comment.