[Lemon-user] Enabling GLPK library after LEMON had been installed

Kovács Péter kpeter at inf.elte.hu
Thu Jul 28 10:48:06 CEST 2011


Hi,

 > Good morning Peter and thank you for your answer
 >
 >
 >     You should have the following lines in this file to compile
 >     mip_demo.cc with GLPK:
 >
 >     #define LEMON_HAVE_LP 1
 >     #define LEMON_HAVE_MIP 1
 >     #define LEMON_HAVE_GLPK 1
 >
 >
 > I have the following lines :
 >
 > /* Define to 1 if you have any LP solver. */
 > /* #undef LEMON_HAVE_LP */
 >
 > /* Define to 1 if you have any MIP solver. */
 > /* #undef LEMON_HAVE_MIP */
 >
 > /* Define to 1 if you have CPLEX. */
 > /* #undef LEMON_HAVE_CPLEX */
 >
 > /* Define to 1 if you have GLPK. */
 > /* #undef LEMON_HAVE_GLPK */
 >
 > It looks like the problem is here.

The problem is definitely here.

 > Must I reinstall lemon and enable
 > GLPK (how can I do that) ?

If you reinstall LEMON, it will be configured automatically to use GLPK 
(if you have GLPK already installed).

However, you may try to modfiy this include file manually by adding 
these three lines:
#define LEMON_HAVE_LP 1
#define LEMON_HAVE_MIP 1
#define LEMON_HAVE_GLPK 1

I think it will enable GLPK in LEMON correctly, but I'm not entirely 
sure. Reinstalling LEMON surely solves the problem.

Best regards,
Peter




More information about the Lemon-user mailing list