Changeset 1170

Show
Ignore:
Timestamp:
08/01/08 06:58:12 (4 months ago)
Author:
dmitrey.kroshko
Message:

ralg: hs modification during 1st iteration

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openopt/scikits/openopt/solvers/UkrOpt/ralg_oo.py

    r1168 r1170  
    7979 
    8080                if ls1 > nh: 
    81                     hs *= q2 
     81                    if itn == 0: 
     82                        hs *= 15.0 
     83                    else: 
     84                        hs *= q2 
    8285                    ls1 = 0 
    8386 
     
    139142            currIterPointIsFeasible = iterPoint.isFeas() 
    140143 
    141             if itn == 0: g2 = self.__getRalgDirection__(newPoint) 
     144            if itn == 0: 
     145                g2 = self.__getRalgDirection__(newPoint) 
     146                p.debugmsg('hs:' + str(hs)) 
     147                p.debugmsg('ls:' + str(ls)) 
    142148 
    143149            # set dilation direction: 
     
    148154                g1 = g2-g 
    149155                if sum(p.dotmult(g, g2))>0: 
    150                     p.debugmsg('warning! same gradient for constraints!') 
     156                    p.debugmsg('ralg warning: slope angle less than pi/2. No dilation for the iter.') 
    151157                    doDilation = False 
    152158            elif prevIterPointIsFeasible: