changeset 8068:e3e3d12364b0

make glpk return NA values for unfeasible problems
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 27 Aug 2008 09:59:55 -0400
parents c476c2214a90
children c64c9581e9bf
files src/ChangeLog src/DLD-FUNCTIONS/__glpk__.cc
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Aug 26 23:28:32 2008 -0400
+++ b/src/ChangeLog	Wed Aug 27 09:59:55 2008 -0400
@@ -1,3 +1,8 @@
+2008-08-27  Jaroslav Hajek  <highegg@gmail.com>
+
+	* DLD-FUNCTIONS/__glpk__.cc (F__glpk__): Initialize output vectors 
+	by NA value.
+
 2008-08-26 Ben Abbott <bpabott@mac.com>
 
 	* mappers.cc: Adjust tolerance for single precesion tests.
--- a/src/DLD-FUNCTIONS/__glpk__.cc	Tue Aug 26 23:28:32 2008 -0400
+++ b/src/DLD-FUNCTIONS/__glpk__.cc	Wed Aug 27 09:59:55 2008 -0400
@@ -801,11 +801,11 @@
   OCTAVE_GLPK_GET_REAL_PARAM ("tolobj", 9);
 
   //-- Assign pointers to the output parameters
-  ColumnVector xmin (mrowsc);
-  ColumnVector fmin (1);
+  ColumnVector xmin (mrowsc, octave_NA);
+  ColumnVector fmin (1, octave_NA);
   ColumnVector status (1);
-  ColumnVector lambda (mrowsA);
-  ColumnVector redcosts (mrowsc);
+  ColumnVector lambda (mrowsA, octave_NA);
+  ColumnVector redcosts (mrowsc, octave_NA);
   ColumnVector time (1);
   ColumnVector mem (1);