Perhaps not a bug, but the following constatnts are defined twice to the same 
values in glplpx.h with annoying consequences when I try to bind to ruby.

[EMAIL PROTECTED] ruby]$ ruby sample.rb 
./nigelzGLPK.so: warning: already initialized constant LPX_FR
./nigelzGLPK.so: warning: already initialized constant LPX_LO
./nigelzGLPK.so: warning: already initialized constant LPX_UP
./nigelzGLPK.so: warning: already initialized constant LPX_DB
./nigelzGLPK.so: warning: already initialized constant LPX_FX
./nigelzGLPK.so: warning: already initialized constant LPX_BS
./nigelzGLPK.so: warning: already initialized constant LPX_NL
./nigelzGLPK.so: warning: already initialized constant LPX_NU
./nigelzGLPK.so: warning: already initialized constant LPX_NF
./nigelzGLPK.so: warning: already initialized constant LPX_NS
*     0:   objval =   0.000000000e+00   infeas =   0.000000000e+00 (0)
*     2:   objval =   7.333333333e+02   infeas =   0.000000000e+00 (0)
OPTIMAL SOLUTION FOUND

Z = 733.333333333333; x1 = 33.3333333333333; x2 = 66.6666666666667; x3 = 0.0

If I delete the second definition and compile again the problem seems to be 
fixed.

[EMAIL PROTECTED] ruby]$ ruby sample.rb 
*     0:   objval =   0.000000000e+00   infeas =   0.000000000e+00 (0)
*     2:   objval =   7.333333333e+02   infeas =   0.000000000e+00 (0)
OPTIMAL SOLUTION FOUND

Z = 733.333333333333; x1 = 33.3333333333333; x2 = 66.6666666666667; x3 = 0.0



-- 
_______________________________________________
Surf the Web in a faster, safer and easier way:
Download Opera 9 at http://www.opera.com

Powered by Outblaze





_______________________________________________
Bug-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to