def test_basic_CONMIN(self):

        try:
            from pyopt_driver.pyopt_driver import pyOptDriver
        except ImportError:
            raise SkipTest("this test requires pyOpt to be installed")

        self.top = OptimizationConstrained()
        set_as_top(self.top)

        try:
            self.top.driver.optimizer = 'CONMIN'
            self.top.driver.optimizer = 'COBYLA'
        except __HOLE__:
            raise SkipTest("CONMIN not present on this system")

        self.top.driver.title = 'Little Test'
        optdict = {}
        self.top.driver.options = optdict
        self.top.driver.pyopt_diff = True

        self.top.run()

        assert_rel_error(self, self.top.paraboloid.x, 7.175775, 0.01)
        assert_rel_error(self, self.top.paraboloid.y, -7.824225, 0.01)
dataset/ETHPy150Open OpenMDAO-Plugins/pyopt_driver/src/pyopt_driver/test/test_pyopt_driver.py/pyOptDriverTestCase.test_basic_CONMIN