This file is indexed.

/usr/share/pyshared/openopt/kernel/NSP.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
from ooMisc import assignScript
from baseProblem import NonLinProblem
from numpy import asarray, ones, inf

class NSP(NonLinProblem):
    _optionalData = ['A', 'Aeq', 'b', 'beq', 'lb', 'ub', 'c', 'h']
    expectedArgs = ['f', 'x0']
    probType = 'NSP'
    JacobianApproximationStencil = 3
    allowedGoals = ['minimum', 'min', 'maximum', 'max']
    showGoal = True    
    def __init__(self, *args, **kwargs):
        self.goal = 'minimum'
        NonLinProblem.__init__(self, *args, **kwargs)
       #TODO: set here default tolx, tolcon, diffInt etc for NS Problem