src/ChangeLog: 2007-09-13 John W. Eaton * DLD-FUNCTIONS/__glpk__.cc (glpk): Pass LPX_FX, not LB_DB, to lpx_set_col_bnds when lb[i] == ub[i]. From: Zhi Wang . Index: src/DLD-FUNCTIONS/__glpk__.cc =================================================================== RCS file: /cvs/octave/src/DLD-FUNCTIONS/__glpk__.cc,v retrieving revision 1.23 diff -u -u -r1.23 __glpk__.cc --- src/DLD-FUNCTIONS/__glpk__.cc 26 Jul 2007 18:44:07 -0000 1.23 +++ src/DLD-FUNCTIONS/__glpk__.cc 13 Sep 2007 21:05:08 -0000 @@ -196,7 +196,12 @@ { //-- Define type of the structural variables if (! freeLB[i] && ! freeUB[i]) - lpx_set_col_bnds (lp, i+1, LPX_DB, lb[i], ub[i]); + { + if (lb[i] != ub[i]) + lpx_set_col_bnds (lp, i+1, LPX_DB, lb[i], ub[i]); + else + lpx_set_col_bnds (lp, i+1, LPX_FX, lb[i], ub[i]); + } else { if (! freeLB[i] && freeUB[i])