This file is indexed.

/usr/share/pyshared/openopt/solvers/nlopt/mma_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
17
18
19
20
21
22
23
24
25
from NLOPT_AUX import NLOPT_AUX
from NLOPT_BASE import NLOPT_BASE
import nlopt

class mma(NLOPT_BASE):
    __name__ = 'mma'
    __alg__ = "Method of Moving Asymptotes"
    
    __optionalDataThatCanBeHandled__ = ['lb', 'ub', 'c', 'h','A', 'b', 'Aeq', 'beq']
    
    # TODO: implement 'A', 'Aeq', 'b', 'beq',
    #__optionalDataThatCanBeHandled__ = ['A', 'Aeq', 'b', 'beq', 'lb', 'ub', 'c', 'h']
    
    #properTextOutput = True
    
    #TODO: check it!
    #_canHandleScipySparse = True
    
    #funcForIterFcnConnection = 'f'
    
    
    def __init__(self): pass
    def __solver__(self, p):
        # TODO: CONSTRAINTS!
        NLOPT_AUX(p, nlopt.LD_MMA)