Changeset 1092
- Timestamp:
- 07/04/08 04:03:55 (2 months ago)
- Files:
-
- trunk/openopt/scikits/openopt/Kernel/BaseProblem.py (modified) (3 diffs)
- trunk/openopt/scikits/openopt/Kernel/ooGraphics.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openopt/scikits/openopt/Kernel/BaseProblem.py
r1091 r1092 160 160 def __isFiniteBoxBounded__(self): # TODO: make this function 'lazy' 161 161 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)))167 162 168 163 def __isNoMoreThanBoxBounded__(self): # TODO: make this function 'lazy' … … 237 232 pass 238 233 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 239 240 class Check: 240 241 def __init__(self): … … 337 338 if not self.solver.__iterfcnConnected__: 338 339 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 83 83 elif p.probType == 'LSP': 84 84 Y_LABELS = ['sum(residuals^2)'] 85 elif p.probType == 'LLSP':86 p.err('LLSP graphic output is not implemented yet')87 85 else: 88 86 Y_LABELS = ['objFunc(x)']
