[gnumeric] Solver: fix cplex constraint naming.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Solver: fix cplex constraint naming.
- Date: Tue, 22 Mar 2016 23:22:42 +0000 (UTC)
commit ed7129562cb898123e299fc2c343d59f8c097087
Author: Morten Welinder <terra gnome org>
Date: Tue Mar 22 19:22:03 2016 -0400
Solver: fix cplex constraint naming.
plugins/glpk/ChangeLog | 4 ++++
plugins/glpk/glpk-write.c | 2 +-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/glpk/ChangeLog b/plugins/glpk/ChangeLog
index 426bd96..378d311 100644
--- a/plugins/glpk/ChangeLog
+++ b/plugins/glpk/ChangeLog
@@ -1,3 +1,7 @@
+2016-03-22 Morten Welinder <terra gnome org>
+
+ * glpk-write.c (glpk_create_program): Fix constraint numbering.
+
2016-02-10 Morten Welinder <terra gnome org>
* glpk-write.c (glpk_file_save): Handle the situation where
diff --git a/plugins/glpk/glpk-write.c b/plugins/glpk/glpk-write.c
index d1cdad9..7eed2d5 100644
--- a/plugins/glpk/glpk-write.c
+++ b/plugins/glpk/glpk-write.c
@@ -134,6 +134,7 @@ glpk_create_program (GnmSubSolver *ssol, GOIOContext *io_context, GError **err)
gsize progress;
GPtrArray *old = NULL;
gnm_float *x1 = NULL, *x2 = NULL;
+ int cidx = 0;
/* ---------------------------------------- */
@@ -224,7 +225,6 @@ glpk_create_program (GnmSubSolver *ssol, GOIOContext *io_context, GError **err)
GnmSolverConstraint *c = l->data;
const char *op = NULL;
int i;
- int cidx = 0;
gnm_float cl, cr;
GnmCell *lhs, *rhs;
GString *type = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]