def __finalize__(self): MatrixProblem.__finalize__(self) if self.goal in ['max', 'maximum']: self.f = -self.f for fn in ['fk', ]:#not ff - it's handled in other place in RunProbSolver.py if hasattr(self, fn): setattr(self, fn, -getattr(self, fn))
def __finalize__(self): MatrixProblem.__finalize__(self) if self.goal in ['max', 'maximum']: self.f = -self.f for fn in [ 'fk', ]: #not ff - it's handled in other place in RunProbSolver.py if hasattr(self, fn): setattr(self, fn, -getattr(self, fn)) if hasattr(self, '_f'): self.f = self._f
def __finalize__(self): if self.isFDmodel: self.intVars = self._intVars MatrixProblem.__finalize__(self)