Changeset 1178

Show
Ignore:
Timestamp:
08/03/08 09:05:07 (4 months ago)
Author:
dmitrey.kroshko
Message:

ralg: some changes

Files:

Legend:

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

    r1177 r1178  
    137137                        break 
    138138 
    139                     PrevPoint, newPoint = newPoint, None 
     139                    PrevPoint = newPoint 
    140140 
    141141                    ls -= 1 
     
    202202 
    203203            """                               Call OO iterfcn                                """ 
    204  
     204            if iterPoint.isFeas(): 
     205                if hasattr(iterPoint, '_df'): 
     206                    p._df = iterPoint._df 
     207                    #print 'has _df' 
     208                else: 
     209                    pass 
     210                    #print "hasn't _df" 
     211                #p._df = iterPoint._df 
    205212            p.iterfcn(iterPoint) 
     213 
     214 
     215            """                             Check stop criteria                           """ 
     216 
    206217            if cond_same_point and not p.istop: 
    207218                p.istop = SMALL_DELTA_X 
    208219                p.msg = '|| X[k] - X[k-1] || < xtol' 
    209220                p.stopdict[SMALL_DELTA_X] = True 
    210  
    211  
    212             """                             Check stop criteria                           """ 
     221                return 
    213222 
    214223            s2 = 0