Changeset 1092

Show
Ignore:
Timestamp:
07/04/08 04:03:55 (2 months ago)
Author:
dmitrey.kroshko
Message:

minor changes

Files:

Legend:

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

    r1091 r1092  
    160160    def __isFiniteBoxBounded__(self): # TODO: make this function 'lazy' 
    161161        return all(isfinite(self.ub)) and all(isfinite(self.lb)) 
    162  
    163     def __isUnconstrained__(self): 
    164         s = ((), [], array([]), None) 
    165         return self.b.size ==0 and self.beq.size==0 and not self.userProvided.c and not self.userProvided.h \ 
    166             and (self.lb in s or all(isinf(self.lb))) and (self.ub in s or all(isinf(self.ub))) 
    167162 
    168163    def __isNoMoreThanBoxBounded__(self): # TODO: make this function 'lazy' 
     
    237232        pass 
    238233 
     234    # TODO: move the function to child classes 
     235    def __isUnconstrained__(self): 
     236        s = ((), [], array([]), None) 
     237        return self.b.size ==0 and self.beq.size==0 and (self.lb in s or all(isinf(self.lb))) and (self.ub in s or all(isinf(self.ub))) 
     238 
     239 
    239240class Check: 
    240241    def __init__(self): 
     
    337338            if not self.solver.__iterfcnConnected__: 
    338339                self.connectIterFcn('df', calledByUser = False) 
     340 
     341    # TODO: move the function to child classes 
     342    def __isUnconstrained__(self): 
     343        s = ((), [], array([]), None) 
     344        return self.b.size ==0 and self.beq.size==0 and not self.userProvided.c and not self.userProvided.h \ 
     345            and (self.lb in s or all(isinf(self.lb))) and (self.ub in s or all(isinf(self.ub))) 
  • trunk/openopt/scikits/openopt/Kernel/ooGraphics.py

    r1089 r1092  
    8383            elif p.probType == 'LSP': 
    8484                Y_LABELS = ['sum(residuals^2)'] 
    85             elif p.probType == 'LLSP': 
    86                 p.err('LLSP graphic output is not implemented yet') 
    8785            else: 
    8886                Y_LABELS = ['objFunc(x)']