def test_unconstrained(self):

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

        self.top = OptimizationUnconstrained()
        set_as_top(self.top)

        for optimizer in [ 'CONMIN', 'COBYLA', 'SNOPT', 'SLSQP' ] :

            try:
                self.top.driver.optimizer = optimizer
            except ValueError:
                raise SkipTest(optimizer % "%s 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, 6.6667, 0.01)
            assert_rel_error(self, self.top.paraboloid.y, -7.3333, 0.01)
dataset/ETHPy150Open OpenMDAO-Plugins/pyopt_driver/src/pyopt_driver/test/test_pyopt_driver.py/pyOptDriverTestCase.test_unconstrained/swapped operands of `%`