Hi,

Le 11/03/2015 20:46, Jean-Michel Nirgal Vourgère a écrit :
Control: retitle python-cvxopt: glpk component doesn't work anymore
Control: severity -1 important
Control: tags -1 -moreinfo +confirmed +fixed-upstream +patch

I traced back the problem to release 4.53 of glpk [1], in February 2014.
According to policy 8.6.2, there should have been a SONAME bump to 37 in
order to have a smooth transition.

Quite a few upstreams don't know the rules of soname numbering...

Anyway, looking at the upstream source, references to lpx_create_prob
have been changed to glp_create_prob in version 1.1.7 [2], but the
commit is not atomic and in fact huge.

Attached is a patch that replaces glpk-4.49.diff. It upgrades
src/C/glpk.c and only that from version 1.1.4 to version 1.1.7, from
upstream.

It sure resolves the import, but I don't know how to properly test it.

Julien: Can you provide a small test?

I'm not sure it counts as a proper test, but the following works here with the cvxopt 1.1.7 package I made :

import cvxopt.glpk
import cvxopt
c=cvxopt.matrix([1,1,0,0,0,0])
G=cvxopt.matrix([[1.0,0,0,0,0,0], [0,1,0,0,0,0]])
h=cvxopt.matrix([0.0,0.0])
A=cvxopt.matrix([[0.0,1,0,0,0,6], [1,1,0,0,1,0], [1,0,0,1,0,0]])
b=cvxopt.matrix([2.0, 2, 2])
(status, c)=cvxopt.glpk.ilp(-c,-(G.T),-h,A.T,b,I=set([0,1,2,3,4,5]))
print(status, c)

I hope that helps,

Snark on #debian-science


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to