[SciPy-User] [SciPy-user] error fmin

RDX rishi.ou@gmail....
Mon Feb 20 14:11:51 CST 2012


I am using fmin and it returns initial guess as the final solution.  

def Traug (v):
    err=0
    Traug_RHOB = v[0] + v[1]*(z_den_s/3125.0)**v[2]
    count =arange(size(den_s))
    for i in count:
        err += abs(den_s[i] - Traug_RHOB [i])
    return err

vO=[1.6, 0.5, 0.35]
t=fmin(Traug,vO )
a=t[0]; b=t[1]; c=t[2];

Code gives me a=1.6, b=0.5, c=0.35, which is my initial guess. 

What is wrong? 
-- 
View this message in context: http://old.nabble.com/error-fmin-tp33359168p33359168.html
Sent from the Scipy-User mailing list archive at Nabble.com.



More information about the SciPy-User mailing list