[SciPy-user] openopt - any examples work?

dmitrey dmitrey.kroshko@scipy....
Thu Jan 24 13:32:24 CST 2008


example 2 requires algencan installed
example 1: I forget to commit latest changes to svn, please update the one
or use stable version openopt 0.15 from oo install page

thank you for bug report

Regards, D.

Neal Becker wrote:
> 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.
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
>
>
>   



More information about the SciPy-user mailing list