class_docstr: Tests for optimization algorithms.
docstr: Use Nelder Mead algorithm to optimize the Rosenbrock function.
code: def test_nelder_mead_minimize(self):
      """Use Nelder Mead algorithm to optimize the Rosenbrock function."""
  
      def rosenbrock(coord):
          x, y = coord[0], coord[1]
          return (1 - x) ** 2 + 100 * (y - x**2) ** 2
  
      start = tf.constant([-1.0, 1.0])
      results = self.evaluate(
          tff_math.optimizer.nelder_mead_minimize(
              rosenbrock, initial_vertex=start, func_tolerance=1e-12
          )
      )
      self.assertTrue(results.converged)
      self.assertArrayNear(results.position, [1.0, 1.0], 1e-5)
  
file_path: tf-quant-finance/tf_quant_finance/math/optimizer/optimizer_test.py
imports: import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 3 for calling the OptimizerTest obj's underlying member method code with example usage: obj.test_nelder_mead_minimize() and returns: unknown