/usr/share/pyshared/openopt/kernel/NLP.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 | from ooMisc import assignScript
from baseProblem import NonLinProblem
from numpy import asarray, ones, inf, array
class NLP(NonLinProblem):
_optionalData = ['A', 'Aeq', 'b', 'beq', 'lb', 'ub', 'c', 'h']
expectedArgs = ['f', 'x0']
probType = 'NLP'
allowedGoals = ['minimum', 'min', 'maximum', 'max']
showGoal = True
def __init__(self, *args, **kwargs):
self.goal = 'minimum'
NonLinProblem.__init__(self, *args, **kwargs)
|