[Symphony] using SYMPHONY with GLPK

an ngo ngothean1 at gmail.com
Mon May 30 18:45:47 EDT 2011


Hi Ted:

Sorry to disturb you again.
I still have some problem with GLPK.

upon downloading SYMPHONY-5.3.4

cd symphony-5.3.4
$cp ThirdParty/Glpk/glpk.patch .
(I need to do that because otherwise, when I run the script, the patch could
not be found)
$ThirdParty/Glpk/get.Glpk
$cd Glpk
./configure
make
sudo make install
(in my system, glpk will be install into /usr/local/lib and
/usr/local/include)
$cd ..
$./configure --with-glpk-incdir=/usr/local/include
--with-glpk-lib="-L/usr/local/lib -lglpk"
(in found this in the archive of the mailing list
http://list.coin-or.org/pipermail/symphony/2006-December/000269.html)

This, however, doesn't work
As I can verify later that the the file master_wrapper.c is still compiled
without USE_GLPMPL defined.

A look at config.site suggests that --with-gmpl should be added
$./configure --with-glpk-incdir=/usr/local/include
--with-glpk-lib="-L/usr/local/lib -lglpk" --with-gmpl

This solves the problem of defining USE_GLPMPL
However, I got this error
glpmpl.h: No such file or directory

It turns out that this file is in glpk/src
so I manually include this path

Finally, I got these errors

/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:263: undefined
reference to `_glp_mpl_initialize'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:268: undefined
reference to `_glp_mpl_read_model'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:273: undefined
reference to `_glp_mpl_read_data'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:279: undefined
reference to `_glp_mpl_terminate'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:287: undefined
reference to `_glp_mpl_generate'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:290: undefined
reference to `_glp_mpl_terminate'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:294: undefined
reference to `_glp_mpl_get_prob_name'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:297: undefined
reference to `_glp_mpl_get_num_rows'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:298: undefined
reference to `_glp_mpl_get_num_cols'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:316: undefined
reference to `_glp_mpl_get_row_kind'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:319: undefined
reference to `_glp_mpl_get_mat_row'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:322: undefined
reference to `_glp_mpl_get_row_c0'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:323: undefined
reference to `_glp_mpl_get_mat_row'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:368: undefined
reference to `_glp_mpl_get_mat_row'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:371: undefined
reference to `_glp_mpl_get_row_bnds'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:405: undefined
reference to `_glp_mpl_get_col_bnds'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:421: undefined
reference to `_glp_mpl_get_col_kind'
/home/an/SYMPHONY-5.3.4b/SYMPHONY/src/LP/lp_solver.c:433: undefined
reference to `_glp_mpl_get_col_name'

Well, I am completely stuck here as none of these functions is implemented.

Thank you very much
An


















On Mon, May 30, 2011 at 9:28 AM, Ted Ralphs <ted at lehigh.edu> wrote:

> OK, everything should be cleaned up now. I created release 5.3.4,
> which should work out of the box. Let me know if you find any
> problems!
>
> Cheers,
>
> Ted
>
> On Sun, May 29, 2011 at 6:55 PM, Ted Ralphs <ted at lehigh.edu> wrote:
> > Thanks for the report and my apologies for the trouble. I had actually
> > already discovered this issue and fixed it in trunk. I'll port it the
> > fix to stable create a new release as soon as I can.
> >
> > Cheers,
> >
> > Ted
> >
> > On Sat, May 28, 2011 at 7:52 PM, an ngo <ngothean1 at gmail.com> wrote:
> >> Hi all:
> >> Sorry, I don't know how to continue the same thread, so I send another
> email
> >> to clarify the question I sent yesterday.
> >> My problem is that while configure my installation by
> >> ./configure --with-application
> >> when I make  the application MATCH the results look like
> USE_SYM_APPLICATION
> >> is not defined as no call backs functions are called.
> >> However, I did verify that the flag was set properly. Finally, this
> error is
> >> caused by:
> >> In the file
> >> SYMPHONY-5.3.3/SYMPHONY/Applications/Makefile.Applications
> >> as  COIN_HAS_PKGCONFIG = true
> >> match will be linked the library determined by
> >> LIBS += `PKG_CONFIG_PATH=/home/thuy/SYMPHONY-5.3.3/lib/pkgconfig:
> >> /usr/bin/pkg-config --libs symphony`
> >> However, the package config file symphony.pc will lead to libSym instead
> of
> >> libSymAppl
> >>
> >> As a quick fix, I duplicate the file symphony.pc to symphonyappl.pc and
> >> change libSym to libSymAppl in the new config.
> >> Then in Makefile.Applications, the config file will be symphonyappl
> instead
> >> of symphony
> >>
> >> The issue with USE_GLPMPL is not fixed yet.
> >> Thanks
> >> A.
> >>
> >> _______________________________________________
> >> Symphony mailing list
> >> Symphony at list.coin-or.org
> >> http://list.coin-or.org/mailman/listinfo/symphony
> >>
> >>
> >
> >
> >
> > --
> > Dr. Ted Ralphs
> > Associate Professor, Lehigh University
> > (610) 628-1280
> > ted 'at' lehigh 'dot' edu
> > coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/%7Eted>
> >
>
>
>
> --
> Dr. Ted Ralphs
> Associate Professor, Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/%7Eted>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/symphony/attachments/20110530/d197b01a/attachment.html>


More information about the Symphony mailing list