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_tnc5(self):
      x0, bnds = [0, 0], [(-1.5, 4), (-3, 3)]
      xopt = [-0.54719755119659763, -1.5471975511965976]
      x = optimize.minimize(
          self.f5,
          x0,
          method="TNC",
          jac=self.g5,
          bounds=bnds,
          options=self.opts,
      ).x
      assert_allclose(self.f5(x), self.f5(xopt), atol=1e-8)
  
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 26 for calling the TestTnc obj's underlying member method code with example usage: obj.test_minimize_tnc5() without return types