[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-glpk] Variables defined more than once
From: |
Nigel Galloway |
Subject: |
[Bug-glpk] Variables defined more than once |
Date: |
Thu, 7 Dec 2006 19:31:02 +0300 |
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.
address@hidden 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.
address@hidden 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] Variables defined more than once,
Nigel Galloway <=