[SciPy-user] openopt - any examples work?

Neal Becker ndbecker2@gmail....
Thu Jan 24 13:00:35 CST 2008


I just grabbed openopt svn (linux-fedora-f8) and did python setup.py
install.
I randomly tried 2 examples:

python example.py
starting solver ralg (license: BSD)  with problem  unnamed
Traceback (most recent call last):
  File "example.py", line 66, in <module>
    exampleNSP()
  File "example.py", line 49, in exampleNSP
    r = p.solve('ralg') # ralg is name of a solver
 
File "/usr/lib/python2.5/site-packages/scikits/openopt/Kernel/BaseProblem.py",
line 211, in solve
    return runProbSolver(self, solvers, *args)
 
File "/usr/lib/python2.5/site-packages/scikits/openopt/Kernel/runProbSolver.py",
line 146, in runProbSolver
    solver(p)
 
File "/usr/lib/python2.5/site-packages/scikits/openopt/solvers/UkrOpt/ralg.py",
line 62, in __solver__
    g,  fname,  ind = self.getRalgDirection(x, p)
 
File "/usr/lib/python2.5/site-packages/scikits/openopt/solvers/UkrOpt/ralg.py",
line 202, in getRalgDirection
    maxRes, fname, ind = p.getMaxResidual(x, retAll=True) 
TypeError: getMaxResidual() got an unexpected keyword argument 'retAll'

python nlp_1.py 
Traceback (most recent call last):
  File "nlp_1.py", line 108, in <module>
    r = p.solve('ALGENCAN')
 
File "/usr/lib/python2.5/site-packages/scikits/openopt/Kernel/BaseProblem.py",
line 211, in solve
    return runProbSolver(self, solvers, *args)
 
File "/usr/lib/python2.5/site-packages/scikits/openopt/Kernel/runProbSolver.py",
line 23, in runProbSolver
    solverClass = getattr(__import__(solver_str), solver_str) 
 
File "/usr/lib/python2.5/site-packages/scikits/openopt/solvers/BrasilOpt/ALGENCAN.py",
line 4, in <module>
    import algencan
ImportError: No module named algencan

Not a good start.



More information about the SciPy-user mailing list