def _func(self, n, m, xnew, f, g):

        self.set_parameters(xnew)
        super(COBYLAdriver, self).run_iteration()
        f = self.eval_objective()

        if isnan(f):
            msg = "Numerical overflow in the objective"
            self.raise_exception(msg, RuntimeError)

        # Constraints (COBYLA defines positive as satisfied)
        cons = -1. * array(self.eval_ineq_constraints())

        # Side Constraints
        vals = self.eval_parameters(self.parent)
        g = hstack([cons, (vals - self.lower), (self.upper - vals)])

        return f, g
Returns a :class:`Permission` to view the project
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/drivers/cobyladriver.py/COBYLAdriver._func--crossover with--dataset/ETHPy150Open aromanovich/kozmic-ci/kozmic/perms.py/view_project