Re: cvxopt.glpk is not installed

2,650 views
Skip to first unread message

Martin

unread,
Oct 18, 2012, 4:27:34 AM10/18/12
to cvx...@googlegroups.com
The GLPK interface is not enabled by default, so you need to edit the setup script to compile CVXOPT with GLPK. Change the line "BUILD_GLPK = 0" in setup.py to "BUILD_GLPK = 1". Note that you will need the GLPK library and and header files in order to compile CVXOPT with the GLPK interface.

Martin


On Thursday, October 18, 2012 10:06:44 AM UTC+2, Khaled C wrote:
Hello,

I got this error while running my python project: 

File "C:\Python27\lib\site-packages\cvxopt\coneprog.py", line 2822, in lp
    except ImportError: raise ValueError("invalid option "\
ValueError: invalid option (solver = 'glpk'): cvxopt.glpk is not installed

Note that i already install the cvxopt module correctly.

Any idea?

Thanks.

Martin

unread,
May 7, 2013, 3:25:23 PM5/7/13
to cvx...@googlegroups.com
You need to install GLPK separately. GLPK is available from here: http://www.gnu.org/software/glpk/

Note that CVXOPT 1.1.6 is compatible with GLPK version 4.48 and older versions. 

Martin

On Monday, May 6, 2013 9:27:35 PM UTC+2, Alexander wrote:
How do you get the GLPK library and and header files? I am trying to compile GLPK by changing "BUILD_GLPK = 1" but it states that I am missing glpk.h.

thanks

Aarti

unread,
Aug 3, 2013, 2:10:10 PM8/3/13
to cvx...@googlegroups.com
Hi,

I am having trouble in getting my python 2.6 code to work when using cvxopt solver glpk

I downloded glpk for windows (4.52), and changed the setup.py to have build_glpk option as 1
Still does not work.

Please advise.

Thanks
Aarti

xiaofei lu

unread,
Aug 7, 2013, 11:05:15 AM8/7/13
to cvx...@googlegroups.com
You may follow the instructions in http://abel.ee.ucla.edu/cvxopt/install/. I've tried on Python 2.7. But I'm not sure if it will work as well for 2.6.

Good luck,
Xiaofei
Reply all
Reply to author
Forward
0 new messages