Skip to content

Instantly share code, notes, and snippets.

@FedericoV
Created July 29, 2013 09:56
Show Gist options
  • Save FedericoV/6103306 to your computer and use it in GitHub Desktop.
Save FedericoV/6103306 to your computer and use it in GitHub Desktop.
------------------------- OpenOpt 0.505 -------------------------
solver: ralg problem: unnamed type: DFP
iter objFunVal log10(maxResidual)
0 2.944e+06 0.60
Traceback (most recent call last):
File "/home/federico/Systems_Biology/Projects/p53_modeling/Code/dfp_2.py", line 34, in <module>
r = p.solve('nlp:ralg', plot=1, iprint = 10)
File "/home/federico/anaconda/lib/python2.7/site-packages/openopt-0.505-py2.7.egg/openopt/kernel/baseProblem.py", line 245, in solve
return runProbSolver(self, *args, **kwargs)
File "/home/federico/anaconda/lib/python2.7/site-packages/openopt-0.505-py2.7.egg/openopt/kernel/runProbSolver.py", line 276, in runProbSolver
solver(p)
File "/home/federico/anaconda/lib/python2.7/site-packages/openopt-0.505-py2.7.egg/openopt/solvers/UkrOpt/ralg_oo.py", line 155, in __solver__
g = bestPoint._getDirection(self.approach)
File "/home/federico/anaconda/lib/python2.7/site-packages/openopt-0.505-py2.7.egg/openopt/kernel/Point.py", line 634, in _getDirection
self.direction, self.dType = self.df(),'f'
File "/home/federico/anaconda/lib/python2.7/site-packages/openopt-0.505-py2.7.egg/openopt/kernel/Point.py", line 44, in df
if not hasattr(self, '_df'): self._df = self.p.df(self.x)
File "/home/federico/anaconda/lib/python2.7/site-packages/openopt-0.505-py2.7.egg/openopt/kernel/baseProblem.py", line 1004, in <lambda>
self.wrapped_1st_derivatives(x, ind, funcType, ignorePrev, useSparse))
File "/home/federico/anaconda/lib/python2.7/site-packages/openopt-0.505-py2.7.egg/openopt/kernel/nonLinFuncs.py", line 403, in wrapped_1st_derivatives
derivatives = p.wrapped_func(x, ind, funcType, True, True)
File "/home/federico/anaconda/lib/python2.7/site-packages/openopt-0.505-py2.7.egg/openopt/kernel/nonLinFuncs.py", line 258, in wrapped_func
d1 = get_d1(func, x, pointVal = None, diffInt = finiteDiffNumbers, stencil=p.JacobianApproximationStencil, exactShape=True)
File "/home/federico/anaconda/lib/python2.7/site-packages/DerApproximator-0.502-py2.7.egg/DerApproximator/DerApproximator.py", line 113, in get_d1
raise DerApproximatorException('Currently DerApproximatorx cannot handle functions with (ndim of output) > 1 , only vectors are allowed')
DerApproximator.DerApproximator.DerApproximatorException: Currently DerApproximatorx cannot handle functions with (ndim of output) > 1 , only vectors are allowed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment