def test_opt1(self):
        # Golinski optimization using CONMIN

        self.top.driver.add_objective('comp.result')
        #
        #  maximize x[0] value
        iter  = 1
        self.top.driver.add_parameter('comp.x[1]',.7,.8)
        self.top.driver.add_parameter('comp.x[2]',17.,28.)
        self.top.driver.add_parameter('comp.x[3]',7.3,8.3)
        self.top.driver.add_parameter('comp.x[4]',7.3,8.3)
        #  25 CONSTRAINTS  defined in the problem
        #  reduced to 1 constraint
        self.top.driver.add_constraint('40.0/(comp.x[2] * comp.x[3]) > 1.0')
        while 4 < iter:
            # print  'iter     ',iter
            g00 = self.top.comp.x[0]
            g11 = self.top.comp.x[1]
            g12 = self.top.comp.x[2]
            g13 = self.top.comp.x[3]
            g14 = self.top.comp.x[4]
            g15 = self.top.comp.x[5]
            g16 = self.top.comp.x[6]
            # print 'starting initial design variables ****** x0 to x6'
            # print  g00, g11, g12, g13, g14, g15, g16
            self.top.comp.set('x[0]', self.getx0(g11, g12))
            self.top.comp.set('x[5]', self.getx5(g11, g12, g13))
            self.top.comp.set('x[6]', self.getx6(g11, g12, g14))
            # print ' *********************************'
            # print ' *********************************'
            # pylint: disable-msg=C0301

            # print  '  before run values ..x0 - x6...'
            # print 'x0 = ', self.top.comp.x[0]
            # print 'x1 = ', self.top.comp.x[1]
            # print 'x2 = ', self.top.comp.x[2]
            # print 'x3 = ', self.top.comp.x[3]
            # print 'x4 = ', self.top.comp.x[4]
            # print 'x5 = ', self.top.comp.x[5]
            # print 'x6 = ', self.top.comp.x[6]
            self.top.run()
            # print  'New values after CONMIN optimization **********'
            # print 'x0 = ', self.top.comp.x[0]
            # print 'x1 = ', self.top.comp.x[1]
            # print 'x2 = ', self.top.comp.x[2]
            # print 'x3 = ', self.top.comp.x[3]
            # print 'x4 = ', self.top.comp.x[4]
            # print 'x5 = ', self.top.comp.x[5]
            # print 'x6 = ', self.top.comp.x[6]

            # print ' *********************************'
            # print ' *********************************'
            # print 'Obj FUNCTION Val = ', self.top.comp.result
            iter = iter +1

        #print 'Obj FUNCTION Val = ', self.top.comp.result
        # pylint: disable-msg=E1101
        assert_rel_error(self, self.top.comp.opt_objective, \
                               self.top.driver.eval_objective(), 0.01)
        assert_rel_error(self, self.top.comp.opt_design_vars[1], \
                               self.top.comp.x[1], 0.1)
        assert_rel_error(self, self.top.comp.opt_design_vars[2], \
                               self.top.comp.x[2], 0.01)
        assert_rel_error(self, self.top.comp.opt_design_vars[3], \
                               self.top.comp.x[3], 0.01)
        assert_rel_error(self, self.top.comp.opt_design_vars[4], \
                               self.top.comp.x[4], 0.05)
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/drivers/test/test_opt_golinski.py/GolinskiTestCase.test_opt1/swapped operands of `<`