[SciPy-dev] openopt example mmp_1.py

Nils Wagner nwagner@iam.uni-stuttgart...
Sat Feb 2 10:54:26 CST 2008


Hi Dmitrey,

the example mmp_1.py is broken.

/usr/bin/python 
svn/openopt/scikits/openopt/examples/mmp_1.py
starting solver nsmm (license: BSD)  with problem  unnamed
incorrect func index type!
Traceback (most recent call last):
   File "svn/openopt/scikits/openopt/examples/mmp_1.py", 
line 22, in ?
     r = p.solve('nsmm')
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/BaseProblem.py", 
line 207, in solve
     return runProbSolver(self, solvers, *args, **kwargs)
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/runProbSolver.py", 
line 156, in runProbSolver
     solver(p)
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/solvers/UkrOpt/nsmm.py", 
line 54, in __solver__
     r2 = p2.solve('ralg')
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/BaseProblem.py", 
line 207, in solve
     return runProbSolver(self, solvers, *args, **kwargs)
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/runProbSolver.py", 
line 156, in runProbSolver
     solver(p)
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/solvers/UkrOpt/ralg.py", 
line 62, in __solver__
     g,  fname,  ind = self.getRalgDirection(x, p)
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/solvers/UkrOpt/ralg.py", 
line 230, in getRalgDirection
     d = p.df(x)
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/objFunRelated.py", 
line 138, in user_df
     df = user_df_func(*(x,) + p.args.f)
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/solvers/UkrOpt/nsmm.py", 
line 31, in df
     return p.df(x, ind)
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/objFunRelated.py", 
line 105, in user_df
     if IND is not None: ind = p.getCorrectInd(IND)
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/objFunRelated.py", 
line 358, in getCorrectInd
     p.err('incorrect func index type!')
   File 
"/usr/lib/python2.4/site-packages/scikits/openopt/Kernel/oologfcn.py", 
line 12, in ooerr
     raise OpenOptException(msg)
oologfcn.OpenOptException: <oologfcn.OpenOptException 
instance at 0x42cc0bcc>

Cheers

             Nils


More information about the Scipy-dev mailing list