Changeset 1222

Show
Ignore:
Timestamp:
08/18/08 11:28:57 (3 months ago)
Author:
dmitrey.kroshko
Message:

changes for ralg

Files:

Legend:

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

    r1221 r1222  
    139139 
    140140                    ls -= 1 
    141  
    142141                    if itn != 0: 
    143142                        break 
     143 
     144 
    144145                iterPoint = PrevPoint 
    145146 
     
    152153            if ls <= 0: hs *= q1 
    153154            if itn == 0: 
    154                 g2 = self.__getRalgDirection__(newPoint) 
    155155                p.debugmsg('hs: ' + str(hs)) 
    156156                p.debugmsg('ls: ' + str(ls)) 
     
    257257 
    258258            """                Some final things for ralg main cycle                """ 
    259  
    260             g = moveDirection.copy() 
    261             #g = g2.copy() 
     259            if p.debug: 
     260                if all(g2 == moveDirection): 
     261                    print 'ls=', ls,  'equal' 
     262                else: 
     263                    print 'ls=', ls,  'not equal' 
     264            #g = moveDirection.copy() 
     265            g = g2.copy() 
     266 
    262267            prevIterPoint, iterPoint = iterPoint, None 
    263268