Guest User

Untitled

a guest
Oct 15th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. (array([ 0.53333321]), -0.00014814814814622187, {'warnflag': 0, 'task': 'CONVERGENCE: NORM OF PROJECTED GRADIENT <= PGTOL', 'grad': array([ -3.07317106e-08]), 'funcalls': 8}) -0.0
  2. (array([ 0.53333321]), -0.00014814814814622187, {'warnflag': 0, 'task': 'CONVERGENCE: NORM OF PROJECTED GRADIENT <= PGTOL', 'grad': array([ -3.07317106e-08]), 'funcalls': 8}) -0.0
  3. (array([ 0.53333091]), -0.0001481481473651569, {'warnflag': 0, 'task': 'CONVERGENCE: NORM OF PROJECTED GRADIENT <= PGTOL', 'grad': array([ -6.44888873e-07]), 'funcalls': 1}) -0.000148148147365
  4. (array([ 0.53333091]), -0.0001481481473651569, {'warnflag': 0, 'task': 'CONVERGENCE: NORM OF PROJECTED GRADIENT <= PGTOL', 'grad': array([ -6.44888873e-07]), 'funcalls': 1}) -0.000148148147365
  5. ---------------------------------------------------------------------------
  6. TypeError Traceback (most recent call last)
  7. /usr/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
  8. 176 else:
  9. 177 filename = fname
  10. --> 178 __builtin__.execfile(filename, *where)
  11.  
  12. /home/tct/texfiles/smoking/quality-computations/quality-provision-equilibrium.py in <module>()
  13. 66 return fixed_point(br,x0=p,args=(q,))
  14. 67
  15. ---> 68 print eqP(p,q)
  16. 69
  17. 70 def gstar(q):
  18.  
  19. /home/tct/texfiles/smoking/quality-computations/quality-provision-equilibrium.py in eqP(p, q)
  20. 63
  21. 64 def eqP(p,q):
  22. ---> 65 print fixed_point(br,x0=p,args=(q,))
  23. 66 return fixed_point(br,x0=p,args=(q,))
  24. 67
  25.  
  26. /usr/lib/python2.7/dist-packages/scipy/optimize/minpack.pyc in fixed_point(func, x0, args, xtol, maxiter)
  27. 509 p1 = func(p0, *args)
  28. 510 p2 = func(p1, *args)
  29. --> 511 d = p2 - 2.0 * p1 + p0
  30. 512 p = where(d == 0, p2, p0 - (p1 - p0)*(p1 - p0) / d)
  31. 513 relerr = where(p0 == 0, p, (p-p0)/p0)
  32.  
  33. TypeError: can't multiply sequence by non-int of type 'float'
Add Comment
Please, Sign In to add comment