/usr/share/pyshared/openopt/solvers/CVXOPT/glpk_oo.py is in python-openopt 0.38+svn1589-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | from openopt.kernel.baseSolver import baseSolver
from CVXOPT_LP_Solver import CVXOPT_LP_Solver
class glpk(baseSolver):
__name__ = 'glpk'
__license__ = "GPL v.2"
__authors__ = "http://www.gnu.org/software/glpk + Python bindings from http://abel.ee.ucla.edu/cvxopt"
__homepage__ = 'http://www.gnu.org/software/glpk'
#__alg__ = ""
__optionalDataThatCanBeHandled__ = ['A', 'Aeq', 'b', 'beq', 'lb', 'ub', 'intVars', 'binVars']
_canHandleScipySparse = True
def __init__(self): pass
def __solver__(self, p):
return CVXOPT_LP_Solver(p, 'glpk')
|