Changeset 2466 for trunk/GSASIImath.py


Ignore:
Timestamp:
Sep 13, 2016 9:42:05 AM (7 years ago)
Author:
vondreele
Message:

implement user entered starting Marquardt lambda value (order of magnitude only)
finish magnetic space group symbol determination & magnetic moment flags - all checked against Litvin tables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIImath.py

    r2448 r2466  
    5151################################################################################
    5252
    53 def HessianLSQ(func,x0,Hess,args=(),ftol=1.49012e-8,xtol=1.49012e-8, maxcyc=0,Print=False):
     53def HessianLSQ(func,x0,Hess,args=(),ftol=1.49012e-8,xtol=1.49012e-8, maxcyc=0,lamda=-3,Print=False):
    5454   
    5555    """
     
    7575    :param int maxcyc: The maximum number of cycles of refinement to execute, if -1 refine
    7676        until other limits are met (ftol, xtol)
     77    :param int lamda: initial Marquardt lambda=10**lamda
    7778    :param bool Print: True for printing results (residuals & times) by cycle
    7879
     
    109110    icycle = 0
    110111    One = np.ones((n,n))
    111     lam = 0.001
     112    lam = 10.**lamda
    112113    lamMax = lam
    113114    nfev = 0
Note: See TracChangeset for help on using the changeset viewer.