[gnumeric] solver: increase default iterations to 1000.



commit 493e3c2281badaca2f770d834a5796a91a682d8c
Author: Morten Welinder <terra gnome org>
Date:   Thu May 27 19:07:55 2010 -0400

    solver: increase default iterations to 1000.

 src/tools/ChangeLog    |    5 +++++
 src/tools/gnm-solver.c |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/tools/ChangeLog b/src/tools/ChangeLog
index 8641c41..8ffab82 100644
--- a/src/tools/ChangeLog
+++ b/src/tools/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-27  Morten Welinder  <terra gnome org>
+
+	* gnm-solver.c (gnm_solver_param_constructor): Increase default
+	iterations to 1000.
+
 2010-05-24  Morten Welinder  <terra gnome org>
 
 	* src/tools/gnm-solver.c (gnm_solver_check_constraints): Check
diff --git a/src/tools/gnm-solver.c b/src/tools/gnm-solver.c
index 79dbed8..dd711dc 100644
--- a/src/tools/gnm-solver.c
+++ b/src/tools/gnm-solver.c
@@ -634,8 +634,8 @@ gnm_solver_param_constructor (GType type,
 	dependent_managed_init (&sp->input, sp->sheet);
 
 	sp->options.model_type = GNM_SOLVER_LP;
-	sp->options.max_iter = 100;
-	sp->options.max_time_sec = 30;
+	sp->options.max_iter = 1000;
+	sp->options.max_time_sec = 60;
 	sp->options.assume_non_negative = TRUE;
 	sp->options.scenario_name = g_strdup ("Optimal");
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]