From eed1182f2dd4291195fc4f30d18cbcd299e29303 Mon Sep 17 00:00:00 2001 From: biconnect Date: Tue, 7 Jul 2009 06:58:53 +0000 Subject: [PATCH] Maximum iteration set 1000 --- linear.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linear.cpp b/linear.cpp index afd4075..4810da2 100644 --- a/linear.cpp +++ b/linear.cpp @@ -705,7 +705,7 @@ static void solve_linear_c_svc( int i, s, iter = 0; double C, d, G; double *QD = new double[l]; - int max_iter = 20000; + int max_iter = 1000; int *index = new int[l]; double *alpha = new double[l]; schar *y = new schar[l]; @@ -861,7 +861,7 @@ static void solve_linear_c_svc( info("\noptimization finished, #iter = %d\n",iter); if (iter >= max_iter) - info("Warning: reaching max number of iterations\n"); + info("\nWARNING: reaching max number of iterations\nUsing -s 2 may be faster (also see FAQ)\n\n"); // calculate objective value -- 2.40.0