Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (array([ 0.53333321]), -0.00014814814814622187, {'warnflag': 0, 'task': 'CONVERGENCE: NORM OF PROJECTED GRADIENT <= PGTOL', 'grad': array([ -3.07317106e-08]), 'funcalls': 8}) -0.0
- (array([ 0.53333321]), -0.00014814814814622187, {'warnflag': 0, 'task': 'CONVERGENCE: NORM OF PROJECTED GRADIENT <= PGTOL', 'grad': array([ -3.07317106e-08]), 'funcalls': 8}) -0.0
- (array([ 0.53333091]), -0.0001481481473651569, {'warnflag': 0, 'task': 'CONVERGENCE: NORM OF PROJECTED GRADIENT <= PGTOL', 'grad': array([ -6.44888873e-07]), 'funcalls': 1}) -0.000148148147365
- (array([ 0.53333091]), -0.0001481481473651569, {'warnflag': 0, 'task': 'CONVERGENCE: NORM OF PROJECTED GRADIENT <= PGTOL', 'grad': array([ -6.44888873e-07]), 'funcalls': 1}) -0.000148148147365
- ---------------------------------------------------------------------------
- TypeError Traceback (most recent call last)
- /usr/lib/python2.7/dist-packages/IPython/utils/py3compat.pyc in execfile(fname, *where)
- 176 else:
- 177 filename = fname
- --> 178 __builtin__.execfile(filename, *where)
- /home/tct/texfiles/smoking/quality-computations/quality-provision-equilibrium.py in <module>()
- 66 return fixed_point(br,x0=p,args=(q,))
- 67
- ---> 68 print eqP(p,q)
- 69
- 70 def gstar(q):
- /home/tct/texfiles/smoking/quality-computations/quality-provision-equilibrium.py in eqP(p, q)
- 63
- 64 def eqP(p,q):
- ---> 65 print fixed_point(br,x0=p,args=(q,))
- 66 return fixed_point(br,x0=p,args=(q,))
- 67
- /usr/lib/python2.7/dist-packages/scipy/optimize/minpack.pyc in fixed_point(func, x0, args, xtol, maxiter)
- 509 p1 = func(p0, *args)
- 510 p2 = func(p1, *args)
- --> 511 d = p2 - 2.0 * p1 + p0
- 512 p = where(d == 0, p2, p0 - (p1 - p0)*(p1 - p0) / d)
- 513 relerr = where(p0 == 0, p, (p-p0)/p0)
- TypeError: can't multiply sequence by non-int of type 'float'
Add Comment
Please, Sign In to add comment