Commit 353e8859 authored by Davis King's avatar Davis King

Fixed a bug in the backtracking_line_search() function pointed out by

Ping-Chang Shih.  The function ignored the max_iter parameter.
parent 5b2f853c
......@@ -512,7 +512,7 @@ namespace dlib
unsigned long iter = 0;
while (true)
{
++max_iter;
++iter;
const double val = f(alpha);
if (val <= f0 + alpha*rho*d0 || iter >= max_iter)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment