[gnumeric] Solver: handle off-spec result file from glpk.



commit c6ef360a15e5694a123ad012b41160e8461885a8
Author: Morten Welinder <terra gnome org>
Date:   Tue Mar 2 19:05:46 2010 -0500

    Solver: handle off-spec result file from glpk.

 NEWS                    |    1 +
 plugins/glpk/ChangeLog  |    5 +++++
 plugins/glpk/gnm-glpk.c |    1 +
 3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 01e53be..5279305 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ Morten:
 	* Fix rendering problem with iterated evaluation.
 	* Fix solver undo problem.  [#611406]
 	* Fix graph label problem.  [#611362]
+	* Fix GLPK solver issue.  [#611407]
 
 --------------------------------------------------------------------------
 Gnumeric 1.10.0
diff --git a/plugins/glpk/ChangeLog b/plugins/glpk/ChangeLog
index 0802171..04898c8 100644
--- a/plugins/glpk/ChangeLog
+++ b/plugins/glpk/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-02  Morten Welinder  <terra gnome org>
+
+	* gnm-glpk.c (gnm_glpk_read_solution): Handle "undefined" status
+	of primary as infeasible.  Fixes #611407.
+
 2010-02-13  Morten Welinder <terra gnome org>
 
 	* Release 1.10.0
diff --git a/plugins/glpk/gnm-glpk.c b/plugins/glpk/gnm-glpk.c
index 56b0bdb..0428188 100644
--- a/plugins/glpk/gnm-glpk.c
+++ b/plugins/glpk/gnm-glpk.c
@@ -120,6 +120,7 @@ gnm_glpk_read_solution (GnmGlpk *lp)
 	case 5:
 		result->quality = GNM_SOLVER_RESULT_OPTIMAL;
 		break;
+	case 1: /* "Undefined" -- see #611407 */
 	case 3:
 	case 4:
 		result->quality = GNM_SOLVER_RESULT_INFEASIBLE;



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