Changeset 1520

Show
Ignore:
Timestamp:
10/03/08 02:53:21 (2 months ago)
Author:
dmitrey.kroshko
Message:

VERY important bugfix for Non-Linear problems

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openopt/scikits/openopt/Kernel/objFunRelated.py

    r1509 r1520  
    6060        #if p.iter == 0: 
    6161        if not hasattr(p, 'n'+userFunctionType): setNonLinFincsNumber(p,  userFunctionType) 
    62         p.prevVal[userFunctionType]['val'] = zeros(getattr(p, 'n'+userFunctionType)) 
     62 
     63        # TODO: move it into runprobsolver or baseproblem 
     64        if p.prevVal[userFunctionType]['val'] is None: 
     65            p.prevVal[userFunctionType]['val'] = zeros(getattr(p, 'n'+userFunctionType)) 
    6366 
    6467        if ind is None: 
     
    138141                        #TODO: ADD COUNTER OF THE CASE 
    139142                        p.prevVal[userFunctionType]['val'][agregate_counter:agregate_counter+v.size] = v 
     143 
    140144 
    141145                """                                                 geting derivatives                                                 """