[gnumeric] solver plugins: handle "qp" too.



commit a1c48bbb5503465143beb5f6f2a8d307df2369cc
Author: Morten Welinder <terra gnome org>
Date:   Mon May 24 09:45:24 2010 -0400

    solver plugins: handle "qp" too.

 ChangeLog        |    5 +++++
 src/gnm-plugin.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 45352ee..df6cca3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-24  Morten Welinder  <terra gnome org>
+
+	* src/gnm-plugin.c (plugin_service_solver_read_xml): Handle "qp"
+	model type too.
+
 2010-05-21  Morten Welinder  <terra gnome org>
 
 	* src/xml-sax-write.c (xml_write_solver): Write model type.
diff --git a/src/gnm-plugin.c b/src/gnm-plugin.c
index f401eb8..eb2ecd9 100644
--- a/src/gnm-plugin.c
+++ b/src/gnm-plugin.c
@@ -567,6 +567,8 @@ plugin_service_solver_read_xml (GOPluginService *service, xmlNode *tree,
 	s_type = go_xml_node_get_cstr (tree, "model_type");
 	if (s_type && strcmp (CXML2C (s_type), "mip") == 0)
 		type = GNM_SOLVER_LP;
+	else if (s_type && strcmp (CXML2C (s_type), "qp") == 0)
+		type = GNM_SOLVER_QP;
 	else if (s_type && strcmp (CXML2C (s_type), "nlp") == 0)
 		type = GNM_SOLVER_NLP;
 	else {



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