def f(self, x):
        self.feasible,self.violation = self.g(x)
        ''' 
        not nice, due to the fact that oppositeFunction does not used
        the instance of this class for the evaluator but creates a new instance
        of class MultiObjectiveFunction
        '''
        MultiObjectiveFunction.feasible = self.feasible
        MultiObjectiveFunction.violation = self.violation
        f1 = x[0]
        f2 = (1+x[1])/x[0]
        return -array([f1, f2])
dataset/ETHPy150Open pybrain/pybrain/pybrain/rl/environments/functions/multiobjective.py/ConstDeb.f/original