This file is indexed.

/usr/share/pyshared/openopt/solvers/nlopt/mlsl_oo.py is in python-openopt 0.34+svn1146-1build1.

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
17
18
19
20
21
from NLOPT_AUX import NLOPT_AUX
from NLOPT_BASE import NLOPT_BASE
import nlopt

class mlsl(NLOPT_BASE):
    __name__ = 'mlsl'
    __alg__ = 'Multi-Level Single-Linkage'
    
    __optionalDataThatCanBeHandled__ = ['lb', 'ub']
    #funcForIterFcnConnection = 'f'
    population = 0
    __isIterPointAlwaysFeasible__ = True
    
    def __init__(self): pass
    def __solver__(self, p):
        if not p.__isFiniteBoxBounded__():
            p.err('solver %s requires finite box bounds for all optimization variables' % self.__name__)
        nlopt_opts = {'set_population':self.population} if self.population != 0 else {}
        #if self.population != 0: p.f_iter = self.population
        #p.f_iter = 4*p.n
        NLOPT_AUX(p, nlopt.G_MLSL_LDS, nlopt_opts)