class_docstr: Test the 2-dimensional rosenbrock optimization problem.
class_docstr_tok: ["Test","the","2-dimensional","rosenbrock","optimization","problem","."]
code: def setUp(self):
      from mystic.models import rosen
  
      self.costfunction = rosen
      self.exact = [1.0, 1.0]
      self.NP = 40
      self.ND = len(self.exact)
      self.min = [-5.0] * self.ND
      self.max = [5.0] * self.ND
      self.maxiter = my_maxiter
      self.maxfun = 100000
      self.precision = 0  # precision compared to exact
      self.usebounds = False
      self.uselimits = True  # False
      self.useevalmon = True  # False
      self.usestepmon = True
  
imports: import sys
  from io import StringIO
  import unittest
  from math import *
  from mystic.math import almostEqual
label_desc: Use image node_id 1 for calling the TestRosenbrock obj's underlying member method code with example usage: obj.setUp() without return types