class_docstr: TNC non-linear optimization.
  
  These tests are taken from Prof. K. Schittkowski's test examples
  for constrained non-linear programming.
  
  http://www.uni-bayreuth.de/departments/math/~kschittkowski/home.htm
class_docstr_tok: ["TNC","non-linear","optimization",".","These","tests","are","taken","from","Prof.","K.","Schittkowski","'s","test","examples","for","constrained","non-linear","programming",".","http",":","\/\/www.uni-bayreuth.de\/departments\/math\/~kschittkowski\/home.htm"]
code: def test_minimize_tnc1b(self):
      x0, bnds = np.array([-2, 1]), ([-np.inf, None], [-1.5, None])
      xopt = [1, 1]
      x = optimize.minimize(
          self.f1, x0, method="TNC", bounds=bnds, options=self.opts
      ).x
      assert_allclose(self.f1(x), self.f1(xopt), atol=1e-4)
  
imports: import pytest
  from numpy.testing import assert_allclose, assert_equal
  import numpy
  from math import pow
  from scipy import optimize
label_desc: Use image node_id 21 for calling the TestTnc obj's underlying member method code with example usage: obj.test_minimize_tnc1b() without return types