Mercurial > hg > octave-lojdl
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 +++ b/src/ChangeLog @@ -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 +++ b/src/DLD-FUNCTIONS/__glpk__.cc @@ -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);